eslint-plugin-ryanair-typescript
v0.1.0
Published
Ryanair's custom eslint rules for TypeScript.
Downloads
1
Maintainers
Readme
eslint-plugin-ryanair-typescript
Ryanair's custom eslint rules for TypeScript.
Installation
You'll first need to install ESLint:
npm i eslint --save-dev
Next, install eslint-plugin-ryanair-typescript
and @typescript-eslint/parser:
npm install eslint-plugin-ryanair-typescript @typescript-eslint/parser --save-dev
Usage
Add ryanair
to the plugins section of your .eslintrc
configuration file. You can omit the eslint-plugin-
prefix:
{
"plugins": ["ryanair"]
}
Set @typescript-eslint/parser in the parser configuration.
{
"parser": "@typescript-eslint/parser"
}
Then configure the rules you want to use under the rules section.
{
"rules": {
"ryanair/no-barrel-imports": "error"
}
}