@grapes-agency/eslint-config-grapes

2.5.0 • Public • Published

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

Readme

Keywords

Package Sidebar

Install

npm i @grapes-agency/eslint-config-grapes

Weekly Downloads

16

Version

2.5.0

License

ISC

Unpacked Size

12 kB

Total Files

7

Last publish

Collaborators

  • tim.fullert
  • torsten4385
  • tsollbach
  • cpoyatos
  • jguse
  • grapes-gmbh