Repository navigation
Commit f500d94
authored
Modernize toolchain (TypeScript, ESLint, webpack, ...) (#149)
Bump TypeScript (5.6->6.0), ESLint (9->10), eslint-plugin-react-hooks
(5->7), pnpm, @types/node, webpack-cli, webpack-dev-server and
copy-webpack-plugin to their latest majors.
Furthermore, modernize tsconfigbase.json for TypeScript 6.0: bump
`target`/`lib` to ES2024, switch `moduleResolution` from classic "node"
to "bundler", `module` switched to "esnext", and `downlevelIteration`
dropped, since TS 6.0 turns these into hard errors ahead of their
removal in TS 7.0.
This also required a few fixes:
- Fix new violations from ESLint 10's default preserve-caught-error and
no-useless-assignment rules.
- Patch eslint-plugin-react's flat configs with @eslint/compat's
fixupConfigRules to fix a runtime crash under ESLint 10, which removed
the context.getFilename() API the plugin still calls.
- Add ambient "*.css" module declarations, now required since TS 6.0
type-checks CSS side-effect imports more strictly.
- Fix rootDir/types gaps in standalone-app/tsconfig.json surfaced by the
same TS 6.0 strictness, needed for both tsc/ts-loader and ts-node's
config loading in webpack-cli.1 parent cd139ea commit f500d94
14 files changed
Lines changed: 409 additions & 972 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
5 | 5 | | |
6 | 6 | | |
7 | 7 | | |
8 | | - | |
9 | | - | |
| 8 | + | |
10 | 9 | | |
11 | 10 | | |
12 | 11 | | |
| |||
16 | 15 | | |
17 | 16 | | |
18 | 17 | | |
19 | | - | |
| 18 | + | |
20 | 19 | | |
21 | 20 | | |
22 | 21 | | |
23 | 22 | | |
24 | | - | |
| 23 | + | |
25 | 24 | | |
26 | 25 | | |
27 | 26 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | 1 | | |
2 | 2 | | |
3 | 3 | | |
4 | | - | |
| 4 | + | |
5 | 5 | | |
6 | 6 | | |
7 | 7 | | |
| |||
10 | 10 | | |
11 | 11 | | |
12 | 12 | | |
13 | | - | |
14 | | - | |
15 | | - | |
16 | | - | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
17 | 17 | | |
18 | 18 | | |
19 | | - | |
| 19 | + | |
20 | 20 | | |
21 | 21 | | |
22 | | - | |
| 22 | + | |
23 | 23 | | |
24 | 24 | | |
25 | 25 | | |
0 commit comments