Skip to content

Commit

Permalink
fix(typescript): turn off no-use-before-define explicitly (#752)
Browse files Browse the repository at this point in the history
The following error can be reported:

```
'React' was used before it was defined [no-use-before-define]
```
  • Loading branch information
ybiquitous authored Sep 8, 2020
1 parent e63b839 commit c70a2c2
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion rules/plugins/typescript.js
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,8 @@ module.exports = {
"@typescript-eslint/no-unsafe-return": "error",
"no-unused-expressions": "off",
"@typescript-eslint/no-unused-expressions": "error", // eslint-disable-line sort-keys
"@typescript-eslint/no-use-before-define": "off",
"no-use-before-define": "off",
"@typescript-eslint/no-use-before-define": "off", // eslint-disable-line sort-keys
"no-useless-constructor": "off",
"@typescript-eslint/no-useless-constructor": "error", // eslint-disable-line sort-keys
"@typescript-eslint/prefer-as-const": "error",
Expand Down

0 comments on commit c70a2c2

Please sign in to comment.