Commit c8e3902
committed
chore(oxlint): enable rules with manageable false-positive rates
Most of the locally disabled rules were carried over from the apify-core
config where they fire on a lot of pre-existing code. In this much
smaller repo they're tractable.
Enabled (preset/oxlint defaults take over):
- typescript/no-empty-object-type (4 violations, all empty-interface
tricks for recursive types or class+interface declaration merging)
- typescript/no-unsafe-declaration-merging (1 violation, RetryableError
class+interface merge — no longer needed)
- import/extensions (0 violations, free win)
- no-empty-function (preset already has it 'off' — drop redundant override)
- no-use-before-define (preset config with safe options applies; 2
violations in promisifyServerListen fixed by switching the mutually
recursive listeners to function declarations)
- no-void (preset enables with allowAsStatement: true; no violations)
Kept disabled:
- typescript/no-explicit-any (148 violations — opt-in case-by-case)
- no-param-reassign (40 violations — too many to clean up here)1 parent d9ee109 commit c8e3902
6 files changed
Lines changed: 11 additions & 24 deletions
File tree
- packages
- json_schemas/tools
- bundler
- modificator
- rules
- utilities/src
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
4 | 4 | | |
5 | 5 | | |
6 | 6 | | |
7 | | - | |
8 | | - | |
9 | | - | |
10 | | - | |
11 | 7 | | |
12 | | - | |
13 | | - | |
14 | 8 | | |
15 | 9 | | |
16 | 10 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | 1 | | |
2 | 2 | | |
3 | | - | |
4 | | - | |
5 | | - | |
| 3 | + | |
6 | 4 | | |
7 | 5 | | |
8 | 6 | | |
| |||
Lines changed: 1 addition & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
5 | 5 | | |
6 | 6 | | |
7 | 7 | | |
8 | | - | |
| 8 | + | |
9 | 9 | | |
10 | 10 | | |
11 | 11 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
4 | 4 | | |
5 | 5 | | |
6 | 6 | | |
7 | | - | |
8 | | - | |
9 | | - | |
| 7 | + | |
10 | 8 | | |
11 | 9 | | |
12 | 10 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
11 | 11 | | |
12 | 12 | | |
13 | 13 | | |
14 | | - | |
15 | | - | |
16 | | - | |
17 | 14 | | |
18 | 15 | | |
19 | 16 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
413 | 413 | | |
414 | 414 | | |
415 | 415 | | |
416 | | - | |
| 416 | + | |
| 417 | + | |
| 418 | + | |
| 419 | + | |
| 420 | + | |
417 | 421 | | |
418 | 422 | | |
419 | | - | |
420 | | - | |
| 423 | + | |
| 424 | + | |
421 | 425 | | |
422 | 426 | | |
423 | | - | |
424 | | - | |
425 | | - | |
426 | | - | |
427 | | - | |
| 427 | + | |
428 | 428 | | |
429 | 429 | | |
430 | 430 | | |
| |||
0 commit comments