@slimio/eslint-config
v5.0.0
Published
Slimio ESLint configuration
Downloads
101
Readme
ESLint Configuration
SlimIO ESLint configuration
Requirements
- Node.js v12 or higher
Getting Started
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 -DUsage example
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 !
Why ?
| 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 |
Dependencies
|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|
License
MIT
