|
1 | 1 | { |
2 | | - "plugins": ["jest", "@typescript-eslint"], |
3 | 2 | "extends": [ |
4 | 3 | "eslint:recommended", |
5 | | - "plugin:@typescript-eslint/eslint-recommended", |
6 | | - "plugin:@typescript-eslint/recommended", |
7 | | - "plugin:@typescript-eslint/recommended-requiring-type-checking" |
| 4 | + "plugin:prettier/recommended", |
| 5 | + "plugin:@typescript-eslint/recommended" |
8 | 6 | ], |
9 | | - "rules": { |
10 | | - "camelcase": "error", |
11 | | - "no-unused-vars": "error", |
12 | | - "@typescript-eslint/no-unused-vars": "error", |
13 | | - "@typescript-eslint/explicit-member-accessibility": [ |
14 | | - "error", |
15 | | - { "accessibility": "no-public" } |
16 | | - ], |
17 | | - "@typescript-eslint/array-type": "error", |
18 | | - "@typescript-eslint/await-thenable": "error", |
19 | | - "@typescript-eslint/ban-ts-ignore": "warn", |
20 | | - "@typescript-eslint/camelcase": "warn", |
21 | | - "@typescript-eslint/class-name-casing": "error", |
22 | | - "@typescript-eslint/explicit-function-return-type": [ |
23 | | - "error", |
24 | | - { "allowExpressions": true } |
25 | | - ], |
26 | | - "@typescript-eslint/func-call-spacing": ["error", "never"], |
27 | | - "@typescript-eslint/generic-type-naming": ["error", "^[A-Z][A-Za-z]*$"], |
28 | | - "@typescript-eslint/no-array-constructor": "error", |
29 | | - "@typescript-eslint/no-empty-interface": "error", |
30 | | - "@typescript-eslint/no-explicit-any": "warn", |
31 | | - "@typescript-eslint/no-extraneous-class": "error", |
32 | | - "@typescript-eslint/no-for-in-array": "error", |
33 | | - "@typescript-eslint/no-inferrable-types": "error", |
34 | | - "@typescript-eslint/no-misused-new": "error", |
35 | | - "@typescript-eslint/no-namespace": "error", |
36 | | - "@typescript-eslint/no-non-null-assertion": "warn", |
37 | | - "@typescript-eslint/no-unnecessary-qualifier": "error", |
38 | | - "@typescript-eslint/no-unnecessary-type-assertion": "error", |
39 | | - "@typescript-eslint/no-useless-constructor": "error", |
40 | | - "@typescript-eslint/prefer-for-of": "warn", |
41 | | - "@typescript-eslint/prefer-function-type": "warn", |
42 | | - "@typescript-eslint/prefer-includes": "error", |
43 | | - "@typescript-eslint/prefer-string-starts-ends-with": "error", |
44 | | - "@typescript-eslint/restrict-plus-operands": "error", |
45 | | - "@typescript-eslint/type-annotation-spacing": "error", |
46 | | - "@typescript-eslint/unbound-method": "error" |
47 | | - }, |
| 7 | + "parser": "@typescript-eslint/parser", |
48 | 8 | "parserOptions": { |
49 | | - "ecmaVersion": 9, |
50 | | - "sourceType": "module", |
51 | | - "project": "./tsconfig.json" |
| 9 | + "ecmaVersion": 11, |
| 10 | + "sourceType": "module" |
| 11 | + }, |
| 12 | + "plugins": ["@typescript-eslint", "jest"], |
| 13 | + "rules": { |
| 14 | + "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 |
52 | 19 | }, |
53 | 20 | "env": { |
54 | 21 | "browser": true, |
55 | 22 | "es6": true, |
56 | 23 | "jest/globals": true |
57 | | - } |
| 24 | + }, |
| 25 | + "globals": { "google": "readonly" } |
58 | 26 | } |
0 commit comments