Commit c22d878
committed
build: raise TypeScript linting toolchain floor
Upgrade the TypeScript linting stack to support ESLint v9:
- Upgrade TypeScript from 4.3.5 to 4.9.5 (minimum for
typescript-eslint v8 is >=4.8.4)
- Upgrade `@typescript-eslint/parser` and
`@typescript-eslint/eslint-plugin` from v6 to v8
- Install `@stylistic/eslint-plugin-ts` for formatting rules that
were removed from typescript-eslint in v8
- Replace removed rules in `etc/eslint/rules/typescript.js`:
- `@typescript-eslint/indent` → `@stylistic/ts/indent`
- `@typescript-eslint/member-delimiter-style` →
`@stylistic/ts/member-delimiter-style`
- `@typescript-eslint/quotes` → `@stylistic/ts/quotes`
- `@typescript-eslint/semi` → `@stylistic/ts/semi`
- `@typescript-eslint/space-before-function-paren` →
`@stylistic/ts/space-before-function-paren`
- `@typescript-eslint/type-annotation-spacing` →
`@stylistic/ts/type-annotation-spacing`
- `@typescript-eslint/ban-types` →
`@typescript-eslint/no-restricted-types` (was already off)
Ref: stdlib-js/metr-issue-tracker#541 parent e0e5a99 commit c22d878
3 files changed
+12
-11
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
20 | 20 | | |
21 | 21 | | |
22 | 22 | | |
| 23 | + | |
23 | 24 | | |
24 | 25 | | |
25 | 26 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
137 | 137 | | |
138 | 138 | | |
139 | 139 | | |
140 | | - | |
| 140 | + | |
141 | 141 | | |
142 | 142 | | |
143 | 143 | | |
| |||
286 | 286 | | |
287 | 287 | | |
288 | 288 | | |
289 | | - | |
| 289 | + | |
290 | 290 | | |
291 | 291 | | |
292 | 292 | | |
| |||
310 | 310 | | |
311 | 311 | | |
312 | 312 | | |
313 | | - | |
| 313 | + | |
314 | 314 | | |
315 | 315 | | |
316 | 316 | | |
| |||
882 | 882 | | |
883 | 883 | | |
884 | 884 | | |
885 | | - | |
| 885 | + | |
886 | 886 | | |
887 | 887 | | |
888 | 888 | | |
| |||
946 | 946 | | |
947 | 947 | | |
948 | 948 | | |
949 | | - | |
| 949 | + | |
950 | 950 | | |
951 | 951 | | |
952 | 952 | | |
| |||
1004 | 1004 | | |
1005 | 1005 | | |
1006 | 1006 | | |
1007 | | - | |
| 1007 | + | |
1008 | 1008 | | |
1009 | 1009 | | |
1010 | 1010 | | |
| |||
2611 | 2611 | | |
2612 | 2612 | | |
2613 | 2613 | | |
2614 | | - | |
| 2614 | + | |
2615 | 2615 | | |
2616 | 2616 | | |
2617 | 2617 | | |
2618 | 2618 | | |
2619 | 2619 | | |
2620 | | - | |
| 2620 | + | |
2621 | 2621 | | |
2622 | 2622 | | |
2623 | 2623 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
124 | 124 | | |
125 | 125 | | |
126 | 126 | | |
127 | | - | |
128 | | - | |
| 127 | + | |
| 128 | + | |
129 | 129 | | |
130 | 130 | | |
131 | 131 | | |
| |||
247 | 247 | | |
248 | 248 | | |
249 | 249 | | |
250 | | - | |
| 250 | + | |
251 | 251 | | |
252 | 252 | | |
253 | 253 | | |
| |||
0 commit comments