Type-check JavaScript explicitly in the shared tsconfig

@tsconfig/strictest dropped checkJs in 2.0.8, so every .js and .mjs file
fell out of the program: lint could not parse them with type information,
and JavaScript in every repository built with this config went unchecked.
allowJs and checkJs are now set here, independent of the base.

Two @ts-expect-error lines in config/eslint.js no longer had an error to
expect: eslint-plugin-import 2.32 and eslint-plugin-react 7.37 ship types.

Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
This commit is contained in:
Satoshi Qazi MuhammedandClaude Opus 5.5 authored and SatoshiQaziMuhammed committed 2026-10-07 08:14:02 +04:00
1 parent 8e81c9041e
commit 1050f8cc20
2 files changed
+8 -2

No files matched your search

+8
View File
@@ -5,6 +5,14 @@
*/
"extends": "@tsconfig/strictest/tsconfig.json",
"compilerOptions": {
/**
* JavaScript sources are type-checked like the rest. The base set this
* until @tsconfig/strictest 2.0.8 dropped checkJs, which left every .js and
* .mjs file outside the program: lint could not parse them with type info.
*/
"allowJs": true,
"checkJs": true,
/**
* Aligns with packages/dev/scripts/pezkuwi-dev-build-ts & packages/dev-ts/src/loader
* (target here is specifically tied to the minimum supported Node version)