|
1 | 1 | module.exports = { |
2 | 2 | root: true, |
3 | | - parser: "@typescript-eslint/parser", |
| 3 | + parser: '@typescript-eslint/parser', |
4 | 4 | extends: [ |
5 | | - "airbnb-base", |
6 | | - "plugin:@typescript-eslint/recommended", |
7 | | - "prettier", |
8 | | - "plugin:prettier/recommended", |
| 5 | + 'airbnb-base', |
| 6 | + 'plugin:@typescript-eslint/recommended', |
| 7 | + 'prettier', |
| 8 | + 'plugin:prettier/recommended', |
9 | 9 | ], |
10 | 10 | parserOptions: { |
11 | 11 | ecmaVersion: 2020, |
12 | | - sourceType: "module", |
| 12 | + sourceType: 'module', |
13 | 13 | }, |
14 | 14 | env: { |
15 | 15 | node: true, |
16 | 16 | jest: true, |
17 | 17 | }, |
18 | 18 | rules: { |
19 | | - "eol-last": ["error", "always"], |
20 | | - "no-plusplus": ["error", { allowForLoopAfterthoughts: true }], |
21 | | - "import/extensions": ["off"], |
22 | | - "import/prefer-default-export": ["off"], |
23 | | - "simple-import-sort/imports": "warn", |
24 | | - "simple-import-sort/exports": "warn", |
25 | | - "@typescript-eslint/no-empty-interface": ["off"], |
26 | | - "@typescript-eslint/explicit-function-return-type": ["off"], |
| 19 | + 'eol-last': ['error', 'always'], |
| 20 | + 'no-plusplus': ['error', { allowForLoopAfterthoughts: true }], |
| 21 | + 'import/extensions': ['off'], |
| 22 | + 'import/prefer-default-export': ['off'], |
| 23 | + 'simple-import-sort/imports': 'warn', |
| 24 | + 'simple-import-sort/exports': 'warn', |
| 25 | + '@typescript-eslint/no-empty-interface': ['off'], |
| 26 | + '@typescript-eslint/explicit-function-return-type': ['off'], |
27 | 27 | }, |
28 | 28 | overrides: [ |
29 | 29 | { |
30 | | - files: ["src/__mocks__/.*", "**/*.spec.ts"], |
| 30 | + files: ['src/__mocks__/.*', '**/*.spec.ts'], |
31 | 31 | rules: { |
32 | | - "import/no-extraneous-dependencies": [ |
33 | | - "error", |
| 32 | + 'import/no-extraneous-dependencies': [ |
| 33 | + 'error', |
34 | 34 | { devDependencies: true }, |
35 | 35 | ], |
36 | | - "@typescript-eslint/no-empty-function": ["off"], |
37 | | - "@typescript-eslint/no-non-null-assertion": ["off"], |
| 36 | + '@typescript-eslint/no-empty-function': ['off'], |
| 37 | + '@typescript-eslint/no-non-null-assertion': ['off'], |
38 | 38 | }, |
39 | 39 | }, |
40 | 40 | ], |
41 | 41 | settings: { |
42 | | - "import/resolver": { |
| 42 | + 'import/resolver': { |
43 | 43 | node: { |
44 | | - extensions: [".js", ".ts"], |
| 44 | + extensions: ['.js', '.ts'], |
45 | 45 | }, |
46 | 46 | }, |
47 | 47 | }, |
48 | | - plugins: ["simple-import-sort"], |
| 48 | + plugins: ['simple-import-sort'], |
49 | 49 | }; |
0 commit comments