fintory / eslint-config

ESLint configuration for (non-)typescript projects that are build at @fintory
MIT License
0 stars 0 forks source link

Disable `no-use-before-define` in favor of `@typescript-eslint/no-use-before-define` #176

Closed iduuck closed 4 years ago

iduuck commented 4 years ago

Reason for this is: https://github.com/typescript-eslint/typescript-eslint/issues/2540

Specific comment for fixing this issue: https://github.com/typescript-eslint/typescript-eslint/issues/2540#issuecomment-692866111

iduuck commented 4 years ago

Temporary fix is to add two lines to your .eslint configuration:

{
  "extends": "@fintory/eslint-config",
  "env": {
    "browser": true
  },
  "rules": {
    "import/extensions": "off",
    "no-use-before-define": "off", <---- THIS
    "@typescript-eslint/no-use-before-define": "error" <---- AND THIS
  }
}