@grapes-agency/eslint-config-grapes-react
Grapes company eslint rules including react
Last updated 14 days ago by tsollbach .
ISC · Repository · Original npm · Tarball · package.json
$ cnpm install @grapes-agency/eslint-config-grapes-react 
SYNC missed versions from official npm registry.

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-react
npx install-peerdeps --dev @grapes-agency/eslint-config-grapes-react

Add the configuration file .eslintrc.json with the following content:

{
  "extends": "@grapes-agency/eslint-config-grapes-react"
}

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, jsx, .ts and .tsx. For VSCode this can be achieved by adding the following to settings.json

"eslint.options": {
  "extensions": [
    ".js",
    ".jsx",
    ".ts",
    ".tsx"
  ]
},
"eslint.validate": [
  "javascript",
  "javascriptreact",
  "typescript",
  "typescriptreact",
]

At last do not forget to add .eslintcache to your .gitignore

Current Tags

  • 1.4.6                                ...           latest (14 days ago)

11 Versions

  • 1.4.6                                ...           14 days ago
  • 1.4.5                                ...           4 months ago
  • 1.4.3                                ...           5 months ago
  • 1.4.2                                ...           6 months ago
  • 1.4.1                                ...           6 months ago
  • 1.4.0                                ...           6 months ago
  • 1.3.1                                ...           6 months ago
  • 1.3.0                                ...           9 months ago
  • 1.2.0                                ...           9 months ago
  • 1.1.0                                ...           10 months ago
  • 1.0.0                                ...           a year ago
Downloads
Today 0
This Week 0
This Month 24
Last Day 0
Last Week 11
Last Month 0
Dependents (0)
None

Copyright 2014 - 2016 © taobao.org |