Skip to content

Commit b9589f2

Browse files
chore(eslint): suppress existing violations
1 parent ea4cd12 commit b9589f2

File tree

58 files changed

+2054
-497
lines changed

Some content is hidden

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

58 files changed

+2054
-497
lines changed

eslint.config.mjs

Lines changed: 15 additions & 54 deletions
Original file line numberDiff line numberDiff line change
@@ -1,60 +1,21 @@
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-
},
18-
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-
})
16+
linterOptions: {
17+
reportUnusedDisableDirectives: 'error',
18+
reportUnusedInlineConfigs: 'error',
19+
},
20+
}
21+
)

package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -45,10 +45,10 @@
4545
"@types/node": "^25.0.3",
4646
"@types/ws": "^8.18.0",
4747
"@vitest/coverage-istanbul": "^4.0.16",
48-
"eslint": "^9.34.0",
48+
"eslint": "^9.39.2",
4949
"hono": "^4.11.3",
5050
"pkg-pr-new": "^0.0.54",
51-
"prettier": "^3.6.2",
51+
"prettier": "^3.7.4",
5252
"publint": "^0.3.16",
5353
"tsdown": "^0.15.9",
5454
"turbo": "^2.5.8",
Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
{
2+
"src/index.test.ts": {
3+
"@typescript-eslint/restrict-template-expressions": {
4+
"count": 4
5+
}
6+
},
7+
"src/index.ts": {
8+
"@typescript-eslint/no-invalid-void-type": {
9+
"count": 1
10+
},
11+
"@typescript-eslint/no-unsafe-argument": {
12+
"count": 2
13+
},
14+
"@typescript-eslint/no-unsafe-return": {
15+
"count": 1
16+
},
17+
"@typescript-eslint/prefer-nullish-coalescing": {
18+
"count": 1
19+
}
20+
}
21+
}
Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
1+
{
2+
"src/index.test.ts": {
3+
"@typescript-eslint/no-unsafe-member-access": {
4+
"count": 1
5+
},
6+
"@typescript-eslint/restrict-template-expressions": {
7+
"count": 4
8+
}
9+
},
10+
"src/index.ts": {
11+
"@typescript-eslint/no-dynamic-delete": {
12+
"count": 1
13+
},
14+
"@typescript-eslint/no-invalid-void-type": {
15+
"count": 2
16+
},
17+
"@typescript-eslint/no-unnecessary-condition": {
18+
"count": 2
19+
},
20+
"@typescript-eslint/no-unsafe-argument": {
21+
"count": 1
22+
}
23+
}
24+
}
Lines changed: 67 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,67 @@
1+
{
2+
"src/client.ts": {
3+
"@typescript-eslint/no-redundant-type-constituents": {
4+
"count": 3
5+
},
6+
"@typescript-eslint/no-unsafe-argument": {
7+
"count": 1
8+
},
9+
"@typescript-eslint/no-unsafe-assignment": {
10+
"count": 2
11+
},
12+
"@typescript-eslint/no-unsafe-member-access": {
13+
"count": 4
14+
}
15+
},
16+
"src/index.test.ts": {
17+
"@typescript-eslint/await-thenable": {
18+
"count": 1
19+
},
20+
"@typescript-eslint/no-unnecessary-condition": {
21+
"count": 2
22+
},
23+
"@typescript-eslint/no-unnecessary-type-conversion": {
24+
"count": 1
25+
},
26+
"@typescript-eslint/no-unsafe-assignment": {
27+
"count": 6
28+
}
29+
},
30+
"src/index.ts": {
31+
"@typescript-eslint/no-unnecessary-condition": {
32+
"count": 1
33+
},
34+
"@typescript-eslint/restrict-template-expressions": {
35+
"count": 1
36+
}
37+
},
38+
"src/react.tsx": {
39+
"@typescript-eslint/no-floating-promises": {
40+
"count": 3
41+
},
42+
"@typescript-eslint/no-non-null-asserted-optional-chain": {
43+
"count": 1
44+
},
45+
"@typescript-eslint/no-non-null-assertion": {
46+
"count": 1
47+
},
48+
"@typescript-eslint/no-unnecessary-condition": {
49+
"count": 10
50+
},
51+
"@typescript-eslint/no-unsafe-argument": {
52+
"count": 1
53+
},
54+
"@typescript-eslint/no-unsafe-assignment": {
55+
"count": 1
56+
},
57+
"@typescript-eslint/prefer-nullish-coalescing": {
58+
"count": 1
59+
},
60+
"@typescript-eslint/require-await": {
61+
"count": 2
62+
},
63+
"@typescript-eslint/restrict-template-expressions": {
64+
"count": 4
65+
}
66+
}
67+
}
Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
{
2+
"src/index.test.ts": {
3+
"@typescript-eslint/no-unsafe-argument": {
4+
"count": 1
5+
},
6+
"@typescript-eslint/no-unsafe-assignment": {
7+
"count": 1
8+
},
9+
"@typescript-eslint/no-unsafe-member-access": {
10+
"count": 2
11+
}
12+
},
13+
"src/index.ts": {
14+
"@typescript-eslint/no-unsafe-argument": {
15+
"count": 1
16+
}
17+
}
18+
}
Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
{
2+
"src/index.ts": {
3+
"@typescript-eslint/await-thenable": {
4+
"count": 1
5+
},
6+
"@typescript-eslint/no-unnecessary-condition": {
7+
"count": 1
8+
},
9+
"@typescript-eslint/restrict-template-expressions": {
10+
"count": 1
11+
}
12+
}
13+
}
Lines changed: 39 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,39 @@
1+
{
2+
"src/index.test.ts": {
3+
"@typescript-eslint/no-misused-promises": {
4+
"count": 1
5+
},
6+
"@typescript-eslint/no-unnecessary-condition": {
7+
"count": 1
8+
},
9+
"@typescript-eslint/no-unsafe-argument": {
10+
"count": 2
11+
},
12+
"@typescript-eslint/restrict-template-expressions": {
13+
"count": 5
14+
},
15+
"@typescript-eslint/unbound-method": {
16+
"count": 1
17+
}
18+
},
19+
"src/index.ts": {
20+
"@typescript-eslint/no-unsafe-argument": {
21+
"count": 2
22+
},
23+
"@typescript-eslint/no-unsafe-assignment": {
24+
"count": 2
25+
},
26+
"@typescript-eslint/no-unsafe-call": {
27+
"count": 2
28+
},
29+
"@typescript-eslint/no-unsafe-member-access": {
30+
"count": 3
31+
},
32+
"@typescript-eslint/no-unsafe-return": {
33+
"count": 2
34+
},
35+
"@typescript-eslint/prefer-nullish-coalescing": {
36+
"count": 1
37+
}
38+
}
39+
}

packages/capnweb/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,7 @@
4747
},
4848
"devDependencies": {
4949
"@hono/node-server": "^1.19.2",
50-
"@hono/node-ws": "^1.2.0",
50+
"@hono/node-ws": "workspace:^",
5151
"@types/ws": "^8.5.0",
5252
"capnweb": "^0.3.0",
5353
"hono": "^4.11.3",

packages/capnweb/src/index.test.ts

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,5 @@
11
import { serve } from '@hono/node-server'
22
import type { ServerType } from '@hono/node-server'
3-
// eslint-disable-next-line @typescript-eslint/ban-ts-comment
4-
// @ts-ignore @hono/node-ws may not be typed
53
import { createNodeWebSocket } from '@hono/node-ws'
64
import { RpcTarget, newWebSocketRpcSession } from 'capnweb'
75
import { Hono } from 'hono'

0 commit comments

Comments
 (0)