SlimIO ESLint configuration
- Node.js v12 or higher
This package is available in the Node Package Repository and can be easily installed with npm or yarn.
$ npm i @slimio/eslint-config -D
# or
$ yarn add @slimio/eslint-config -D
Create an .eslintrc
file at the root of your project with the following (JSON) content:
{
"extends": "@slimio/eslint-config"
}
Edit the file as you want by adding custom rules if required !
rule name | value | why we choose this configuration |
---|---|---|
indent | 4 | We are considering indent 2 not enougth for code visibility/readability |
semi | always | We are following the official TC39 ASI recommandation |
Name | Refactoring | Security Risk | Usage |
---|---|---|---|
@iarna/toml | Minor | Low | TBC |
babel-eslint | Minor | High | TBC |
eslint | Minor | High | TBC |
eslint-plugin-jsdoc | Minor | High | TBC |
MIT