Skip to content

Commit 9b6f674

Browse files
committed
refactor(ts): update linter config for ts files
1 parent 1c7a6b1 commit 9b6f674

File tree

3 files changed

+339
-6
lines changed

3 files changed

+339
-6
lines changed

.eslintrc.json

Lines changed: 8 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
{
2-
"parser": "@babel/eslint-parser",
2+
"parser": "@typescript-eslint/parser",
33
"env": {
44
"node": true,
55
"browser": true,
@@ -9,6 +9,7 @@
99
},
1010
"extends": [
1111
"eslint:recommended",
12+
"plugin:@typescript-eslint/recommended",
1213
"plugin:react/recommended",
1314
"google",
1415
"prettier",
@@ -27,11 +28,15 @@
2728
"presets": ["@babel/preset-react"]
2829
}
2930
},
30-
"plugins": ["react", "prettier"],
31+
"plugins": ["@typescript-eslint", "react", "prettier"],
3132
"rules": {
3233
"react/prop-types": "off",
3334
"require-jsdoc": "off",
34-
"no-async-promise-executor": "off"
35+
"no-async-promise-executor": "off",
36+
"@typescript-eslint/no-explicit-any": "off", // temporary until TS refactor is complete
37+
"@typescript-eslint/no-unused-vars": "off", // temporary until TS refactor is complete
38+
"@typescript-eslint/no-require-imports": "off", // prevents error on old "require" imports
39+
"@typescript-eslint/no-unused-expressions": "off" // prevents error on test "expect" expressions
3540
},
3641
"settings": {
3742
"react": {

0 commit comments

Comments
 (0)