lennythedev

ESLint Config

July 05, 2019

Disabling a rule

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

2019 07 03 21 16 22

  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:

https://eslint.org/docs/user-guide/configuring


lenmorld
Full-stack ramblings and journal about anything web