- ESLint v8.57.0 or later, but less than v9.0.0
$ npm i eslint@^8.57.0 --save-dev
$ npm i eslint @byndyusoft/eslint-config --save-dev
Note: If you have React project created with create-react-app, then you haven't install eslint manually, because it comes with react-scripts. Otherwise it won't let you run eslint until you remove it from package.json
.
Node + TypeScript/JavaScript + Jest
{
"extends": [
"@byndyusoft/eslint-config/backend"
]
}
package.json
{
"engines": {
"node": ">=8.10.0"
}
}
React + TypeScript/JavaScript + Jest
{
"extends": [
"@byndyusoft/eslint-config/frontend"
]
}