Commit fa00bf2
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 439f8dc commit fa00bf2
1 file changed
+2
-0
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
20 | 20 | | |
21 | 21 | | |
22 | 22 | | |
| 23 | + | |
| 24 | + | |
23 | 25 | | |
24 | 26 | | |
25 | 27 | | |
| |||
0 commit comments