Commit b0f5533
committed
build: migrate TypeScript ruleset for ESLint v9
Audit and update `etc/eslint/rules/typescript.js` to prepare for
the typescript-eslint v7+ upgrade:
- Replace `@typescript-eslint/no-var-requires` (deprecated, removed
in v7) with `@typescript-eslint/no-require-imports` (same behavior,
already defined but was `off`)
- Formatting/layout rules (`indent`, `quotes`, `semi`,
`member-delimiter-style`, `space-before-function-paren`,
`type-annotation-spacing`) are deprecated in v6 in favor of
`@stylistic/ts/*` but kept for now since they still work on v6;
will be addressed during the toolchain version bump (PR 6)
- `ban-types` and `no-empty-interface` are not yet deprecated on v6
but will need replacement in v7+ (`no-restricted-types` and
`no-empty-object-type` respectively)
Ref: stdlib-js/metr-issue-tracker#541 parent 7545df4 commit b0f5533
1 file changed
+16
-16
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
564 | 564 | | |
565 | 565 | | |
566 | 566 | | |
567 | | - | |
| 567 | + | |
568 | 568 | | |
569 | 569 | | |
570 | 570 | | |
571 | 571 | | |
572 | | - | |
| 572 | + | |
573 | 573 | | |
574 | 574 | | |
575 | 575 | | |
576 | | - | |
577 | | - | |
| 576 | + | |
| 577 | + | |
| 578 | + | |
| 579 | + | |
| 580 | + | |
| 581 | + | |
| 582 | + | |
578 | 583 | | |
579 | | - | |
| 584 | + | |
580 | 585 | | |
581 | 586 | | |
582 | 587 | | |
| |||
752 | 757 | | |
753 | 758 | | |
754 | 759 | | |
| 760 | + | |
| 761 | + | |
| 762 | + | |
| 763 | + | |
755 | 764 | | |
756 | 765 | | |
757 | 766 | | |
758 | | - | |
| 767 | + | |
759 | 768 | | |
760 | | - | |
761 | | - | |
762 | | - | |
763 | | - | |
764 | | - | |
765 | | - | |
766 | | - | |
767 | | - | |
768 | | - | |
769 | 769 | | |
770 | | - | |
| 770 | + | |
771 | 771 | | |
772 | 772 | | |
773 | 773 | | |
| |||
0 commit comments