ESLint Config

Disabling a rule in ESLint is super easy!
Jul 05, 2019

Disabling a rule

  1. Get the rule to be disabled. If using VSCode, you can see this when hovering over the error

Disable eslint rule

  1. Add to your package.json > eslintConfig section , or in a .eslintrc.* file
  "eslintConfig": {
    "rules": {
      "react/display-name": false
  1. Possible values:
  2. false to disable rule
  3. "error" to enable rule

Full guide:

⬅ Previous postNext post ➡