Commit 7bbb777
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 fa00bf2 commit 7bbb777
1 file changed
+1
-1
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
139 | 139 | | |
140 | 140 | | |
141 | 141 | | |
142 | | - | |
| 142 | + | |
143 | 143 | | |
144 | 144 | | |
145 | 145 | | |
| |||
0 commit comments