Commit a93da9b
committed
chore(oxlint): tune and clear the remaining warnings from the bump
The oxlint 1.75 bump surfaced ~5.9k warnings. This clears them to zero without
churning the codebase:
- Vitest: keep the plugin (and its ~60 other rules) but disable the correctness
rules the bump newly fired across the existing suite (no-standalone-expect,
require-mock-type-parameters, no-conditional-expect, expect-expect, valid-title,
valid-expect, require-to-throw-message, no-disabled-tests, valid-describe-callback).
- Disable rules that over-trigger / false-positive here: no-useless-default-assignment,
no-useless-fallback-in-spread, no-thenable (we implement thenables), no-new-array
(used with immediate .fill()), prefer-string-starts-ends-with.
- Keep no-empty-file on (catches accidental empties) but exempt the two intentional
comment-only files, and silence test-file occurrences of the general rules.
- Fix the few worth fixing: drop redundant `void` operators in the graphql/firebase
channel callbacks, type the bun test-runner fetch init as RequestInit, and suppress
the two no-unreachable false positives in rollup dual-build helpers.
Note: vitest/valid-expect flagged 10 pre-existing broken tests (chai-style `.to.`
modifiers); left for a separate fix.1 parent 58ff5ee commit a93da9b
6 files changed
Lines changed: 39 additions & 5 deletions
File tree
- dev-packages/bun-integration-tests
- packages
- google-cloud-serverless/src
- node/src/utils
- server-utils/src/integrations/tracing-channel
- firebase
- graphql
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
31 | 31 | | |
32 | 32 | | |
33 | 33 | | |
| 34 | + | |
| 35 | + | |
| 36 | + | |
| 37 | + | |
| 38 | + | |
| 39 | + | |
| 40 | + | |
| 41 | + | |
| 42 | + | |
| 43 | + | |
| 44 | + | |
| 45 | + | |
| 46 | + | |
| 47 | + | |
| 48 | + | |
| 49 | + | |
| 50 | + | |
| 51 | + | |
34 | 52 | | |
35 | 53 | | |
36 | 54 | | |
| |||
101 | 119 | | |
102 | 120 | | |
103 | 121 | | |
104 | | - | |
| 122 | + | |
| 123 | + | |
| 124 | + | |
| 125 | + | |
| 126 | + | |
| 127 | + | |
105 | 128 | | |
106 | 129 | | |
107 | 130 | | |
| |||
194 | 217 | | |
195 | 218 | | |
196 | 219 | | |
| 220 | + | |
| 221 | + | |
| 222 | + | |
| 223 | + | |
| 224 | + | |
| 225 | + | |
| 226 | + | |
| 227 | + | |
197 | 228 | | |
198 | 229 | | |
199 | 230 | | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
240 | 240 | | |
241 | 241 | | |
242 | 242 | | |
243 | | - | |
| 243 | + | |
| 244 | + | |
244 | 245 | | |
245 | 246 | | |
246 | 247 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
14 | 14 | | |
15 | 15 | | |
16 | 16 | | |
| 17 | + | |
17 | 18 | | |
18 | 19 | | |
19 | 20 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
7 | 7 | | |
8 | 8 | | |
9 | 9 | | |
| 10 | + | |
10 | 11 | | |
11 | 12 | | |
12 | 13 | | |
| |||
Lines changed: 1 addition & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
61 | 61 | | |
62 | 62 | | |
63 | 63 | | |
64 | | - | |
| 64 | + | |
65 | 65 | | |
66 | 66 | | |
67 | 67 | | |
| |||
Lines changed: 2 additions & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
53 | 53 | | |
54 | 54 | | |
55 | 55 | | |
56 | | - | |
| 56 | + | |
57 | 57 | | |
58 | 58 | | |
59 | 59 | | |
60 | 60 | | |
61 | 61 | | |
62 | | - | |
| 62 | + | |
63 | 63 | | |
64 | 64 | | |
65 | 65 | | |
| |||
0 commit comments