|
1 | 1 | import baseConfig from '@hono/eslint-config' |
2 | 2 | import { defineConfig, globalIgnores } from 'eslint/config' |
3 | 3 |
|
4 | | -export default defineConfig(globalIgnores(['.yarn', '**/coverage', '**/dist']), { |
5 | | - extends: baseConfig, |
| 4 | +export default defineConfig( |
| 5 | + globalIgnores(['.yarn', '**/coverage', '**/dist', '**/.cache', '**/.turbo']), |
| 6 | + { |
| 7 | + extends: baseConfig, |
6 | 8 |
|
7 | | - languageOptions: { |
8 | | - parserOptions: { |
9 | | - projectService: true, |
10 | | - tsconfigRootDir: import.meta.dirname, |
| 9 | + languageOptions: { |
| 10 | + parserOptions: { |
| 11 | + projectService: true, |
| 12 | + tsconfigRootDir: import.meta.dirname, |
| 13 | + }, |
11 | 14 | }, |
12 | | - }, |
13 | 15 |
|
14 | | - linterOptions: { |
15 | | - reportUnusedDisableDirectives: 'error', |
16 | | - reportUnusedInlineConfigs: 'error', |
17 | | - }, |
| 16 | + linterOptions: { |
| 17 | + reportUnusedDisableDirectives: 'error', |
| 18 | + reportUnusedInlineConfigs: 'error', |
| 19 | + }, |
18 | 20 |
|
19 | | - rules: { |
20 | | - '@typescript-eslint/await-thenable': 'off', |
21 | | - '@typescript-eslint/consistent-indexed-object-style': 'off', |
22 | | - '@typescript-eslint/consistent-type-definitions': 'off', |
23 | | - '@typescript-eslint/dot-notation': 'off', |
24 | | - '@typescript-eslint/no-base-to-string': 'off', |
25 | | - '@typescript-eslint/no-deprecated': 'off', |
26 | | - '@typescript-eslint/no-duplicate-type-constituents': 'off', |
27 | | - '@typescript-eslint/no-dynamic-delete': 'off', |
28 | | - '@typescript-eslint/no-floating-promises': 'off', |
29 | | - '@typescript-eslint/no-invalid-void-type': 'off', |
30 | | - '@typescript-eslint/no-misused-promises': 'off', |
31 | | - '@typescript-eslint/no-non-null-assertion': 'off', |
32 | | - '@typescript-eslint/no-redundant-type-constituents': 'off', |
33 | | - '@typescript-eslint/no-unnecessary-boolean-literal-compare': 'off', |
34 | | - '@typescript-eslint/no-unnecessary-condition': 'off', |
35 | | - '@typescript-eslint/no-unnecessary-template-expression': 'off', |
36 | | - '@typescript-eslint/no-unnecessary-type-arguments': 'off', |
37 | | - '@typescript-eslint/no-unnecessary-type-assertion': 'off', |
38 | | - '@typescript-eslint/no-unnecessary-type-parameters': 'off', |
39 | | - '@typescript-eslint/no-unsafe-argument': 'off', |
40 | | - '@typescript-eslint/no-unsafe-assignment': 'off', |
41 | | - '@typescript-eslint/no-unsafe-call': 'off', |
42 | | - '@typescript-eslint/no-unsafe-enum-comparison': 'off', |
43 | | - '@typescript-eslint/no-unsafe-member-access': 'off', |
44 | | - '@typescript-eslint/no-unsafe-return': 'off', |
45 | | - '@typescript-eslint/no-useless-constructor': 'off', |
46 | | - '@typescript-eslint/non-nullable-type-assertion-style': 'off', |
47 | | - '@typescript-eslint/only-throw-error': 'off', |
48 | | - '@typescript-eslint/prefer-function-type': 'off', |
49 | | - '@typescript-eslint/prefer-includes': 'off', |
50 | | - '@typescript-eslint/prefer-nullish-coalescing': 'off', |
51 | | - '@typescript-eslint/prefer-optional-chain': 'off', |
52 | | - '@typescript-eslint/prefer-regexp-exec': 'off', |
53 | | - '@typescript-eslint/prefer-return-this-type': 'off', |
54 | | - '@typescript-eslint/require-await': 'off', |
55 | | - '@typescript-eslint/restrict-plus-operands': 'off', |
56 | | - '@typescript-eslint/restrict-template-expressions': 'off', |
57 | | - '@typescript-eslint/unbound-method': 'off', |
58 | | - '@typescript-eslint/unified-signatures': 'off', |
59 | | - }, |
60 | | -}) |
| 21 | + rules: { |
| 22 | + '@typescript-eslint/await-thenable': 'off', |
| 23 | + '@typescript-eslint/consistent-indexed-object-style': 'off', |
| 24 | + '@typescript-eslint/consistent-type-definitions': 'off', |
| 25 | + '@typescript-eslint/dot-notation': 'off', |
| 26 | + '@typescript-eslint/no-base-to-string': 'off', |
| 27 | + '@typescript-eslint/no-deprecated': 'off', |
| 28 | + '@typescript-eslint/no-duplicate-type-constituents': 'off', |
| 29 | + '@typescript-eslint/no-dynamic-delete': 'off', |
| 30 | + '@typescript-eslint/no-floating-promises': 'off', |
| 31 | + '@typescript-eslint/no-invalid-void-type': 'off', |
| 32 | + '@typescript-eslint/no-misused-promises': 'off', |
| 33 | + '@typescript-eslint/no-non-null-assertion': 'off', |
| 34 | + '@typescript-eslint/no-redundant-type-constituents': 'off', |
| 35 | + '@typescript-eslint/no-unnecessary-boolean-literal-compare': 'off', |
| 36 | + '@typescript-eslint/no-unnecessary-condition': 'off', |
| 37 | + '@typescript-eslint/no-unnecessary-template-expression': 'off', |
| 38 | + '@typescript-eslint/no-unnecessary-type-arguments': 'off', |
| 39 | + '@typescript-eslint/no-unnecessary-type-assertion': 'off', |
| 40 | + '@typescript-eslint/no-unnecessary-type-parameters': 'off', |
| 41 | + '@typescript-eslint/no-unsafe-argument': 'off', |
| 42 | + '@typescript-eslint/no-unsafe-assignment': 'off', |
| 43 | + '@typescript-eslint/no-unsafe-call': 'off', |
| 44 | + '@typescript-eslint/no-unsafe-enum-comparison': 'off', |
| 45 | + '@typescript-eslint/no-unsafe-member-access': 'off', |
| 46 | + '@typescript-eslint/no-unsafe-return': 'off', |
| 47 | + '@typescript-eslint/no-useless-constructor': 'off', |
| 48 | + '@typescript-eslint/non-nullable-type-assertion-style': 'off', |
| 49 | + '@typescript-eslint/only-throw-error': 'off', |
| 50 | + '@typescript-eslint/prefer-function-type': 'off', |
| 51 | + '@typescript-eslint/prefer-includes': 'off', |
| 52 | + '@typescript-eslint/prefer-nullish-coalescing': 'off', |
| 53 | + '@typescript-eslint/prefer-optional-chain': 'off', |
| 54 | + '@typescript-eslint/prefer-regexp-exec': 'off', |
| 55 | + '@typescript-eslint/prefer-return-this-type': 'off', |
| 56 | + '@typescript-eslint/require-await': 'off', |
| 57 | + '@typescript-eslint/restrict-plus-operands': 'off', |
| 58 | + '@typescript-eslint/restrict-template-expressions': 'off', |
| 59 | + '@typescript-eslint/unbound-method': 'off', |
| 60 | + '@typescript-eslint/unified-signatures': 'off', |
| 61 | + }, |
| 62 | + } |
| 63 | +) |
0 commit comments