mirror of
https://github.com/pezkuwichain/pezkuwi-dev.git
synced 2026-10-22 11:46:18 +00:00
@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>
41 lines
1.3 KiB
JSON
41 lines
1.3 KiB
JSON
{
|
|
/**
|
|
* There uses the strictest configs as the base
|
|
* https://github.com/tsconfig/bases/blob/f674fa6cbca17062ff02511b02872f8729a597ec/bases/strictest.json
|
|
*/
|
|
"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)
|
|
*/
|
|
"module": "nodenext",
|
|
"moduleResolution": "nodenext",
|
|
"target": "es2022",
|
|
|
|
/**
|
|
* Specific compilation configs for pezkuwi-js projects as it is used
|
|
* (we only compile *.d.ts via the tsc command-line)
|
|
*/
|
|
"declaration": true,
|
|
"emitDeclarationOnly": true,
|
|
"jsx": "preserve",
|
|
"verbatimModuleSyntax": true,
|
|
|
|
/**
|
|
* These appear in strictest, however we don't (yet) use them. For the most part it means
|
|
* that we actually do have a large number of these lurking (especially on index checks)
|
|
*/
|
|
"exactOptionalPropertyTypes": false,
|
|
"noUncheckedIndexedAccess": false,
|
|
}
|
|
}
|