Commit 21dec2f
chore: adopt @unthrown/oxlint recommended rules
Register the unthrown oxlint plugin in .oxlintrc.json and enable the
recommended rule set as errors: no-ambiguous-error-type,
no-catch-all-pattern, no-unhandled-result, prefer-async-result (the two
opt-ins, no-throw and prefer-ensure, stay off). The package rides the
catalog and is excluded from the supply-chain maturity gate as a
first-party btravstack library.
Violations fixed:
- prefer-async-result (3): the internal never-rejecting async work
thunks in TypedAmqpClient.create, TypedAmqpWorker.create, and
AmqpClient.close were annotated Promise<Result<T, never>>. Dropped
the redundant return annotations — inference yields the same type,
and the thunks are immediately adopted by fromSafePromise, so no
raw Promise<Result> crosses an API boundary. Removed the now-unused
Result type import in amqp-client.ts.
- no-ambiguous-error-type, no-catch-all-pattern, no-unhandled-result:
zero findings.
No disables were needed.
Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>1 parent 15e4574 commit 21dec2f
7 files changed
Lines changed: 38 additions & 12 deletions
File tree
- packages
- client/src
- core/src
- worker/src
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | 1 | | |
2 | 2 | | |
3 | | - | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
4 | 11 | | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
26 | 26 | | |
27 | 27 | | |
28 | 28 | | |
| 29 | + | |
29 | 30 | | |
30 | 31 | | |
31 | 32 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
241 | 241 | | |
242 | 242 | | |
243 | 243 | | |
244 | | - | |
| 244 | + | |
245 | 245 | | |
246 | 246 | | |
247 | 247 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
7 | 7 | | |
8 | 8 | | |
9 | 9 | | |
10 | | - | |
11 | | - | |
12 | | - | |
13 | | - | |
14 | | - | |
15 | | - | |
16 | | - | |
17 | | - | |
| 10 | + | |
18 | 11 | | |
19 | 12 | | |
20 | 13 | | |
| |||
469 | 462 | | |
470 | 463 | | |
471 | 464 | | |
472 | | - | |
| 465 | + | |
473 | 466 | | |
474 | 467 | | |
475 | 468 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
524 | 524 | | |
525 | 525 | | |
526 | 526 | | |
527 | | - | |
| 527 | + | |
528 | 528 | | |
529 | 529 | | |
530 | 530 | | |
| |||
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
28 | 28 | | |
29 | 29 | | |
30 | 30 | | |
| 31 | + | |
31 | 32 | | |
32 | 33 | | |
33 | 34 | | |
| |||
124 | 125 | | |
125 | 126 | | |
126 | 127 | | |
| 128 | + | |
127 | 129 | | |
128 | 130 | | |
129 | 131 | | |
| |||
0 commit comments