Skip to content

Commit d153509

Browse files
author
Gonzalo Diaz
committed
[CONFIG] ESLint new rules discovered for typescript
1 parent b5fb42a commit d153509

File tree

1 file changed

+13
-4
lines changed

1 file changed

+13
-4
lines changed

.eslintrc

Lines changed: 13 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -40,10 +40,19 @@
4040
"no-restricted-syntax": 0,
4141
"no-console": "off",
4242
"no-underscore-dangle": 0,
43-
"no-plusplus": ["error", { "allowForLoopAfterthoughts": true }]
44-
// ,
45-
// "import/no-unresolved": [2, {"commonjs": true, "amd": true}],
46-
// "import/extensions": ["error", { "js": "always", "json": "always"}]
43+
"no-plusplus": ["error", { "allowForLoopAfterthoughts": true }],
44+
// Note: you must disable the base rule as it can report incorrect errors
45+
// https://stackoverflow.com/a/63961972/6366150
46+
"no-shadow": "off",
47+
"@typescript-eslint/no-shadow": "error",
48+
// Note: you must disable the base rule as it can report incorrect errors
49+
// https://github.com/typescript-eslint/typescript-eslint/issues/2621#issuecomment-701970389
50+
"no-unused-vars": "off",
51+
"@typescript-eslint/no-unused-vars": "error",
52+
// Note: you must disable the base rule as it can report incorrect errors
53+
// https://stackoverflow.com/a/77212380/6366150
54+
"no-use-before-define": "off",
55+
"@typescript-eslint/no-use-before-define": "error"
4756
},
4857
"overrides": [
4958
{

0 commit comments

Comments
 (0)