1.0.4 • Published 3 years ago

@devstefancho/eslint-config-react v1.0.4

Weekly downloads
-
License
ISC
Repository
-
Last release
3 years ago

Install

  1. CRA
npx create-react-app my-app
  1. Intall package
npm i -D @devstefancho/eslint-config-react
  1. Create .eslintrc
{
  "extends": ["@devstefancho/eslint-config-react"]
}
  1. Add lint script to package.json
"scripts": {
  "lint": "eslint .",
  "lint:fix": "eslint . --fix"
},

Override prettier settings

Add rules in .eslintrc to override @devstefancho/eslint-config-react rules

{
  "extends": ["@devstefancho/eslint-config-react"],
  "rules": {
    "no-console": 2,
    "prettier/prettier": [
      "error",
      {
        "trailingComma": "es5",
        "singleQuote": true,
        "printWidth": 120,
        "tabWidth": 2,
      }
    ]
  }
}

Ref

Youtube

Docs

Github

1.0.4

3 years ago

1.0.3

3 years ago

1.0.2

3 years ago

1.0.1

3 years ago

1.0.0

3 years ago