Skip to content

Commit 63d40ec

Browse files
chore(eslint): suppress existing violations (#1666)
* chore(eslint): pass on unpruned suppressions * chore(eslint): suppress existing violations
1 parent b8dd773 commit 63d40ec

File tree

47 files changed

+102
-56
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

47 files changed

+102
-56
lines changed

.github/workflows/autofix.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ jobs:
3131
with:
3232
node-version-file: .tool-versions
3333
- run: yarn install
34-
- run: yarn lint:fix --cache-strategy content
34+
- run: yarn lint:fix --cache-strategy content --pass-on-unpruned-suppressions
3535
- run: yarn format:fix
3636
- name: Apply fixes
3737
uses: autofix-ci/action@v1

.github/workflows/ci.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@ jobs:
4343
node-version-file: .tool-versions
4444
- run: yarn
4545
- run: yarn typecheck
46-
- run: yarn lint
46+
- run: yarn lint --cache-strategy content
4747
- run: yarn format
4848

4949
test:

eslint.config.mjs

Lines changed: 56 additions & 53 deletions
Original file line numberDiff line numberDiff line change
@@ -1,60 +1,63 @@
11
import baseConfig from '@hono/eslint-config'
22
import { defineConfig, globalIgnores } from 'eslint/config'
33

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,
68

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+
},
1114
},
12-
},
1315

14-
linterOptions: {
15-
reportUnusedDisableDirectives: 'error',
16-
reportUnusedInlineConfigs: 'error',
17-
},
16+
linterOptions: {
17+
reportUnusedDisableDirectives: 'error',
18+
reportUnusedInlineConfigs: 'error',
19+
},
1820

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+
)
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
{}
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
{}
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
{}
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
{}
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
{}
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
{}
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
{}

0 commit comments

Comments
 (0)