@lights-on-io/eslint-plugin
v3.0.0
Published
ESlint plugin used at LightOn. Based on Airbnb's ESlint config.
Downloads
2
Readme
ESlint Plugin
This plugin includes strict configs for javascript and typescript, which are used at LightsON. It is based on eslint-config-airbnb and eslint-config-airbnb-typescript.
Install
npm install --save-dev @lights-on-io/eslint-plugin
Install peer dependencies listed when executing the following command:
npm info @lights-on-io/eslint-plugin peerDependencies
Add @lights-on-io
to the plugins in your .eslintrc
and add the configs:
{
"plugins": ["@lights-on-io"],
"overrides": [
{
"files": ["*.ts", "*.tsx"],
"extends": ["plugin:@lights-on-io/typescript-strict"],
"parserOptions": {
"project": "./tsconfig.*?.json"
}
},
{
"files": ["*.js", "*.jsx"],
"extends": ["plugin:@lights-on-io/javascript-strict"]
}
]
}