|
1 | 1 | {
|
2 |
| - "env": { |
3 |
| - "es6": true, |
4 |
| - "node": true |
5 |
| - }, |
6 |
| - "extends": [ |
7 |
| - "airbnb-base" |
| 2 | + "parser": "@typescript-eslint/parser", |
| 3 | + "plugins": [ |
| 4 | + "@typescript-eslint/eslint-plugin" |
| 5 | + ], |
| 6 | + "env": { |
| 7 | + "es6": true, |
| 8 | + "node": true |
| 9 | + }, |
| 10 | + "extends": [ |
| 11 | + "eslint:recommended", |
| 12 | + "plugin:@typescript-eslint/recommended" |
| 13 | + ], |
| 14 | + "globals": { |
| 15 | + "Atomics": "readonly", |
| 16 | + "SharedArrayBuffer": "readonly" |
| 17 | + }, |
| 18 | + "parserOptions": { |
| 19 | + "ecmaVersion": 2018, |
| 20 | + "sourceType": "module", |
| 21 | + "parser": "@typescript-eslint/parser", |
| 22 | + "project": "./tsconfig.json" |
| 23 | + }, |
| 24 | + "rules": { |
| 25 | + "@typescript-eslint/no-explicit-any": "error", |
| 26 | + "@typescript-eslint/no-empty-interface": "off", |
| 27 | + "@typescript-eslint/no-inferrable-types": "off", |
| 28 | + "@typescript-eslint/no-unused-vars": [ |
| 29 | + "error", |
| 30 | + { |
| 31 | + "args": "all", |
| 32 | + "varsIgnorePattern": "^_", |
| 33 | + "argsIgnorePattern": "^_" |
| 34 | + } |
8 | 35 | ],
|
9 |
| - "globals": { |
10 |
| - "Atomics": "readonly", |
11 |
| - "SharedArrayBuffer": "readonly" |
12 |
| - }, |
13 |
| - "parserOptions": { |
14 |
| - "ecmaVersion": 2018, |
15 |
| - "sourceType": "module" |
16 |
| - }, |
17 |
| - "rules": { |
18 |
| - "no-continue": "off", |
19 |
| - "no-plusplus": "off", |
20 |
| - "no-param-reassign": "off" |
21 |
| - } |
| 36 | + "@typescript-eslint/no-use-before-define": "off", |
| 37 | + "curly": "error", |
| 38 | + "no-continue": "off", |
| 39 | + "no-plusplus": "off", |
| 40 | + "no-param-reassign": "off", |
| 41 | + "object-curly-newline": "off", |
| 42 | + "no-underscore-dangle": "off", |
| 43 | + "quotes": [ |
| 44 | + "error", |
| 45 | + "single" |
| 46 | + ], |
| 47 | + "import/prefer-default-export": "off", |
| 48 | + "max-len": [ |
| 49 | + "error", |
| 50 | + { |
| 51 | + "code": 150 |
| 52 | + } |
| 53 | + ], |
| 54 | + "comma-dangle": [ |
| 55 | + "error", |
| 56 | + "always-multiline" |
| 57 | + ], |
| 58 | + "eqeqeq": [ |
| 59 | + "error", |
| 60 | + "always", |
| 61 | + { |
| 62 | + "null": "ignore" |
| 63 | + } |
| 64 | + ], |
| 65 | + "no-magic-numbers": "off", |
| 66 | + "newline-per-chained-call": [ |
| 67 | + "off", |
| 68 | + { |
| 69 | + "ignoreChainWithDepth": 1 |
| 70 | + } |
| 71 | + ] |
| 72 | + } |
22 | 73 | }
|
0 commit comments