|
1 | 1 | { |
2 | | - "extends": [ |
3 | | - "eslint:recommended", |
4 | | - "plugin:prettier/recommended", |
5 | | - "plugin:@typescript-eslint/recommended" |
6 | | - ], |
7 | | - "parser": "@typescript-eslint/parser", |
| 2 | + "extends": ["eslint:recommended", "plugin:prettier/recommended"], |
8 | 3 | "parserOptions": { |
9 | | - "ecmaVersion": 11, |
10 | | - "sourceType": "module" |
| 4 | + "ecmaVersion": "latest", |
| 5 | + "sourceType": "module", |
| 6 | + "ecmaFeatures": { |
| 7 | + "jsx": true |
| 8 | + } |
11 | 9 | }, |
12 | | - "plugins": ["@typescript-eslint", "jest"], |
| 10 | + "plugins": ["jest"], |
13 | 11 | "rules": { |
14 | 12 | "no-var": 2, |
15 | | - "prefer-arrow-callback": 2, |
16 | | - "@typescript-eslint/ban-ts-comment": 0, |
17 | | - "@typescript-eslint/ban-types": 1, |
18 | | - "@typescript-eslint/no-empty-function": 1, |
19 | | - "@typescript-eslint/member-ordering": 1, |
20 | | - // disable the rule for all files |
21 | | - "@typescript-eslint/explicit-member-accessibility": "off" |
| 13 | + "prefer-arrow-callback": 2 |
22 | 14 | }, |
23 | 15 | "overrides": [ |
24 | 16 | { |
25 | | - // enable the rule specifically for TypeScript files |
26 | 17 | "files": ["*.ts", "*.tsx"], |
| 18 | + "parser": "@typescript-eslint/parser", |
| 19 | + "plugins": ["@typescript-eslint"], |
| 20 | + "extends": ["plugin:@typescript-eslint/recommended"], |
27 | 21 | "rules": { |
| 22 | + "@typescript-eslint/ban-ts-comment": 0, |
| 23 | + "@typescript-eslint/ban-types": 1, |
| 24 | + "@typescript-eslint/no-empty-function": 1, |
| 25 | + "@typescript-eslint/member-ordering": 1, |
28 | 26 | "@typescript-eslint/explicit-member-accessibility": [ |
29 | 27 | 1, |
30 | 28 | { |
|
0 commit comments