|
1 | 1 | module.exports = { |
2 | | - root: true, |
3 | | - env: { |
4 | | - es6: true, |
5 | | - node: true, |
6 | | - }, |
7 | | - extends: [ |
8 | | - "eslint:recommended", |
9 | | - "plugin:import/errors", |
10 | | - "plugin:import/warnings", |
11 | | - "plugin:import/typescript", |
12 | | - "google", |
13 | | - "plugin:@typescript-eslint/recommended", |
14 | | - ], |
15 | | - parser: "@typescript-eslint/parser", |
16 | | - parserOptions: { |
17 | | - project: ["tsconfig.json", "tsconfig.dev.json"], |
18 | | - sourceType: "module", |
19 | | - }, |
20 | | - ignorePatterns: [ |
21 | | - "/lib/**/*", // Ignore built files. |
22 | | - ], |
23 | | - plugins: [ |
24 | | - "@typescript-eslint", |
25 | | - "import", |
26 | | - ], |
27 | | - rules: { |
28 | | - "quotes": ["error", "double"], |
29 | | - "import/no-unresolved": 0, |
30 | | - "indent": ["error", 4], |
31 | | - "object-curly-spacing": ["error", "always"], |
32 | | - }, |
| 2 | + root: true, |
| 3 | + env: { |
| 4 | + es6: true, |
| 5 | + node: true, |
| 6 | + }, |
| 7 | + extends: [ |
| 8 | + "eslint:recommended", |
| 9 | + "plugin:import/errors", |
| 10 | + "plugin:import/warnings", |
| 11 | + "plugin:import/typescript", |
| 12 | + "google", |
| 13 | + "plugin:@typescript-eslint/recommended", |
| 14 | + ], |
| 15 | + parser: "@typescript-eslint/parser", |
| 16 | + parserOptions: { |
| 17 | + project: ["tsconfig.json", "tsconfig.dev.json"], |
| 18 | + sourceType: "module", |
| 19 | + }, |
| 20 | + ignorePatterns: [ |
| 21 | + "/lib/**/*", // Ignore built files. |
| 22 | + ], |
| 23 | + plugins: [ |
| 24 | + "@typescript-eslint", |
| 25 | + "import", |
| 26 | + ], |
| 27 | + rules: { |
| 28 | + "quotes": ["error", "double"], |
| 29 | + "import/no-unresolved": 0, |
| 30 | + "indent": ["error", 2], |
| 31 | + "object-curly-spacing": ["error", "always"], |
| 32 | + }, |
33 | 33 | }; |
0 commit comments