Koober ESLint configuration (@koober/eslint-config)
ESLint configuration presets
Installation
npm install --save-dev @koober/eslint-config
Usage
Default JS/TS project
For most kind of project, just edit eslintrc.json
and add default configuration
{
"extends": [
"@koober/eslint-config"
]
}
Features :
-
ES
andTS
validation -
Prettier
formatting -
JSX
andReact
syntax validation -
Jest
tests
Custom project
For most kind of project, just edit eslintrc.json
and cherry pick only configurations
{
"root": true,
"extends": [
"@koober/eslint-config/es",
"@koober/eslint-config/functional",
"@koober/eslint-config/jest",
"@koober/eslint-config/json",
"@koober/eslint-config/react",
"@koober/eslint-config/ts",
// include more configurations here
]
//...
}
Available configurations :
-
@koober/eslint-config/es
: for ECMA Script (ES) files -
@koober/eslint-config/jest
: for jest environment tests -
@koober/eslint-config/functional
: for pure functional programming -
@koober/eslint-config/react
: for react capability -
@koober/eslint-config/ts
: for typescript files
License
MIT © Julien Polo julien.polo@koober.com