@w5s/eslint-config
v2.0.17
Published
ESLint configuration presets
Downloads
5,001
Readme
W5S ESLint configuration (@w5s/eslint-config)
ESLint configuration presets
Installation
npm install --save-dev @w5s/eslint-config
Usage
Default JS/TS project
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
Custom project
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
License
MIT © Julien Polo [email protected]