ESLint configuration presets
npm install --save-dev @w5s/eslint-config
For most kind of project, just edit eslintrc.json
and add default configuration
{
"extends": [
"@w5s/eslint-config"
]
}
Features :
ES
andTS
validationPrettier
formattingJSX
andReact
syntax validationJest
tests
For most kind of project, just edit eslintrc.json
and cherry pick only configurations
{
"root": true,
"extends": [
"@w5s/eslint-config/es",
"@w5s/eslint-config/jest",
"@w5s/eslint-config/json",
"@w5s/eslint-config/ts",
"@w5s/eslint-config/yml",
// include more configurations here
]
//...
}
Available configurations :
@w5s/eslint-config/es
: for ECMA Script (ES) files@w5s/eslint-config/jest
: for jest environment tests@w5s/eslint-config/json
: for json and jsonc files@w5s/eslint-config/ts
: for typescript files@w5s/eslint-config/yml
: for yaml files
MIT © Julien Polo julien.polo@gmail.com