0.1.0 • Published 4 years ago
eslint-plugin-ryanair-typescript v0.1.0
eslint-plugin-ryanair-typescript
Ryanair's custom eslint rules for TypeScript.
Installation
You'll first need to install ESLint:
npm i eslint --save-devNext, install eslint-plugin-ryanair-typescript and @typescript-eslint/parser:
npm install eslint-plugin-ryanair-typescript @typescript-eslint/parser --save-devUsage
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"
}
}Supported Rules
0.1.0
4 years ago