|
1 | 1 | module.exports = { |
2 | | - parser: '@typescript-eslint/parser', |
| 2 | + parser: "@typescript-eslint/parser", |
3 | 3 | parserOptions: { |
4 | 4 | ecmaVersion: 2018, |
5 | | - sourceType: 'module', |
6 | | - project: ['tsconfig.json', './src/**/tsconfig.json'], |
| 5 | + sourceType: "module", |
| 6 | + project: ["tsconfig.json", "./src/**/tsconfig.json"], |
7 | 7 | }, |
8 | | - plugins: ['@typescript-eslint'], |
| 8 | + plugins: ["@typescript-eslint"], |
9 | 9 | env: { |
10 | 10 | node: true, |
11 | | - es6: true |
| 11 | + es6: true, |
12 | 12 | }, |
13 | | - extends: [ |
14 | | - 'eslint:recommended', |
15 | | - 'plugin:@typescript-eslint/recommended', |
16 | | - ], |
| 13 | + extends: ["eslint:recommended", "plugin:@typescript-eslint/recommended"], |
17 | 14 | rules: { |
18 | | - '@typescript-eslint/no-use-before-define': 0, |
19 | | - '@typescript-eslint/no-unused-vars': ["warn", { |
20 | | - "vars": "all", |
21 | | - "args": "none", |
22 | | - "ignoreRestSiblings": false |
23 | | - }], |
| 15 | + "@typescript-eslint/no-use-before-define": 0, |
| 16 | + "@typescript-eslint/no-unused-vars": [ |
| 17 | + "warn", |
| 18 | + { |
| 19 | + vars: "all", |
| 20 | + args: "none", |
| 21 | + ignoreRestSiblings: false, |
| 22 | + }, |
| 23 | + ], |
24 | 24 | "@typescript-eslint/explicit-function-return-type": "off", |
25 | 25 | "@typescript-eslint/no-non-null-assertion": "off", |
26 | 26 | "@typescript-eslint/no-explicit-any": "off", |
27 | | - "prefer-const": ["warn", {"destructuring": "all"}], |
28 | | - "indent": "off", |
| 27 | + "prefer-const": ["warn", { destructuring: "all" }], |
| 28 | + indent: "off", |
29 | 29 | "@typescript-eslint/indent": "off", |
30 | 30 | "@typescript-eslint/no-throw-literal": "error", |
31 | 31 | "no-useless-escape": 0, |
32 | | - "semi": 2 |
| 32 | + semi: 2, |
| 33 | + quotes: ["warn", "single"] |
33 | 34 | }, |
34 | 35 | }; |
0 commit comments