|
2 | 2 | "root": true, |
3 | 3 | "parser": "@typescript-eslint/parser", |
4 | 4 | "parserOptions": { |
5 | | - "ecmaVersion": 11, |
| 5 | + "ecmaVersion": 12, |
6 | 6 | "sourceType": "module" |
7 | 7 | }, |
8 | 8 | "plugins": [ |
9 | 9 | "@typescript-eslint" |
10 | 10 | ], |
11 | 11 | "rules": { |
12 | 12 | "@typescript-eslint/naming-convention": "warn", |
| 13 | + "@typescript-eslint/no-unused-vars": "warn", |
| 14 | + "@typescript-eslint/no-explicit-any": "warn", |
| 15 | + "@typescript-eslint/array-type": ["error", { "default": "array-simple" }], |
| 16 | + "@typescript-eslint/consistent-type-imports": ["error", { "prefer": "type-imports" }], |
| 17 | + "@typescript-eslint/explicit-function-return-type": ["error", { "allowExpressions": true }], |
| 18 | + "@typescript-eslint/consistent-type-exports": "error", |
13 | 19 | "@typescript-eslint/semi": "warn", |
14 | 20 | "curly": "warn", |
15 | 21 | "eqeqeq": "warn", |
|
18 | 24 | "no-mixed-requires":"error", |
19 | 25 | "no-this-before-super": "warn", |
20 | 26 | "no-unreachable": "warn", |
21 | | - "no-unused-vars": "warn" |
| 27 | + "no-unused-vars": "off", |
| 28 | + "max-len": ["warn", { "code": 80, "comments": 100, "ignoreComments": false }], |
| 29 | + "no-fallthrough": "warn", |
| 30 | + "newline-before-return": "warn", |
| 31 | + "no-return-await": "warn", |
| 32 | + "arrow-body-style": ["error", "as-needed"], |
| 33 | + "no-unexpected-multiline": "error" |
22 | 34 | }, |
23 | 35 | "ignorePatterns": [ |
24 | 36 | "out", |
|
30 | 42 | "es6": true, |
31 | 43 | "commonjs": true, |
32 | 44 | "browser": false |
33 | | - } |
| 45 | + }, |
| 46 | + "extends": [ |
| 47 | + "eslint:recommended", |
| 48 | + "plugin:@typescript-eslint/recommended", |
| 49 | + "plugin:@typescript-eslint/recommended-requiring-type-checking", |
| 50 | + "prettier" |
| 51 | + ] |
34 | 52 | } |
0 commit comments