2.5.0 • Published 4 years ago

@grapes-agency/eslint-config-grapes v2.5.0

Weekly downloads
1
License
ISC
Repository
gitlab
Last release
4 years ago

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