|
1 | 1 | { |
2 | | - "parser": "@babel/eslint-parser", |
| 2 | + "parser": "@typescript-eslint/parser", |
3 | 3 | "env": { |
4 | 4 | "node": true, |
5 | 5 | "browser": true, |
|
9 | 9 | }, |
10 | 10 | "extends": [ |
11 | 11 | "eslint:recommended", |
| 12 | + "plugin:@typescript-eslint/recommended", |
12 | 13 | "plugin:react/recommended", |
13 | 14 | "google", |
14 | 15 | "prettier", |
15 | 16 | "plugin:json/recommended" |
16 | 17 | ], |
17 | | - "overrides": [], |
| 18 | + "overrides": [ |
| 19 | + { |
| 20 | + "files": ["test/**/*.js", "**/*.json"], |
| 21 | + "parser": "espree", |
| 22 | + "rules": { |
| 23 | + "@typescript-eslint/no-unused-expressions": "off" |
| 24 | + } |
| 25 | + } |
| 26 | + ], |
18 | 27 | "parserOptions": { |
| 28 | + "project": "./tsconfig.json", |
19 | 29 | "requireConfigFile": false, |
20 | 30 | "ecmaVersion": 12, |
21 | 31 | "sourceType": "module", |
|
27 | 37 | "presets": ["@babel/preset-react"] |
28 | 38 | } |
29 | 39 | }, |
30 | | - "plugins": ["react", "prettier"], |
| 40 | + "plugins": ["@typescript-eslint", "react", "prettier"], |
31 | 41 | "rules": { |
32 | 42 | "react/prop-types": "off", |
33 | 43 | "require-jsdoc": "off", |
34 | | - "no-async-promise-executor": "off" |
| 44 | + "no-async-promise-executor": "off", |
| 45 | + "@typescript-eslint/no-explicit-any": "off", // temporary until TS refactor is complete |
| 46 | + "@typescript-eslint/no-unused-vars": "off", // temporary until TS refactor is complete |
| 47 | + "@typescript-eslint/no-require-imports": "off", // prevents error on old "require" imports |
| 48 | + "@typescript-eslint/no-unused-expressions": "off" // prevents error on test "expect" expressions |
35 | 49 | }, |
36 | 50 | "settings": { |
37 | 51 | "react": { |
|
0 commit comments