@kapouer/eslint-config
v2.0.0
Published
eslint config for usual nodejs/browser development
Downloads
92
Readme
eslint-config
How to use
npm install --save-dev @kapouer/eslint-config
In package.json:
"eslintConfig": {
"extends": "@kapouer/eslint-config",
"globals": {
"HttpError": true
},
"overrides": [
{
"files": [
"models/**",
"resources/**",
"routes/**",
"app.js"
],
"env": {
"node": true,
"es6": true
}
},
{
"files": [
"public/js/**"
],
"env": {
"browser": true
}
}
]
}
It's a good idea to override files/env as they usually depend on the project.
Using pnpm ?
Put these into your ~/.npmrc
public-hoist-pattern[]=eslint
public-hoist-pattern[]=eslint-*
public-hoist-pattern[]=@kapouer/eslint-plugin-no-return-in-loop