@grapes-agency/eslint-config-grapes
v2.5.0
Published
Grapes company eslint rules for node
Downloads
36
Readme
Grapes ESLint Config
Our standard eslint config. It is intended to be pretty strict.
Usage
Installing eslint:
npm i -D @grapes-agency/eslint-config-grapes
npx install-peerdeps --dev @grapes-agency/eslint-config-grapes
Add the configuration file .eslintrc.json
with the following content:
{
"extends": "@grapes-agency/eslint-config-grapes"
}
Add a lint script to your package.json like so
"lint": "eslint --ext js,jsx,ts,tsx --cache src"
Also configure your ESLint editor plugin to lint .js
and .ts
.
For VSCode this can be achieved by adding the following to settings.json
"eslint.options": {
"extensions": [
".js",
".ts",
]
},
"eslint.validate": [
"javascript",
"typescript",
]
At last do not forget to add .eslintcache
to your .gitignore