normalize more TS configs

This commit is contained in:
Hazelnoot 2025-09-30 20:11:59 -04:00
parent d135f09a60
commit 457fc38e6a
5 changed files with 16 additions and 9 deletions

View file

@ -1,9 +1,10 @@
{ {
"compilerOptions": { "compilerOptions": {
"lib": ["dom", "es5"], "lib": ["dom", "ES2022"],
"target": "es5", "target": "ES2022",
"types": ["cypress", "node"], "types": ["cypress", "node"],
"incremental": true "incremental": true,
"skipLibCheck": true,
}, },
"include": ["./**/*.ts"] "include": ["./**/*.ts"]
} }

View file

@ -1,8 +1,12 @@
{ {
"compilerOptions": { "compilerOptions": {
"target": "es6", "target": "ES2022",
"module": "commonjs", "module": "NodeNext",
"allowSyntheticDefaultImports": true "esModuleInterop": true,
"allowSyntheticDefaultImports": true,
"skipLibCheck": true,
"allowJs": true,
"checkJs": true
}, },
"exclude": [ "exclude": [
"node_modules", "node_modules",

View file

@ -11,7 +11,7 @@
// "disableReferencedProjectLoad": true, /* Reduce the number of projects loaded automatically by TypeScript. */ // "disableReferencedProjectLoad": true, /* Reduce the number of projects loaded automatically by TypeScript. */
/* Language and Environment */ /* Language and Environment */
"target": "ESNext", /* Set the JavaScript language version for emitted JavaScript and include compatible library declarations. */ "target": "ES2022", /* Set the JavaScript language version for emitted JavaScript and include compatible library declarations. */
// "lib": [], /* Specify a set of bundled library declaration files that describe the target runtime environment. */ // "lib": [], /* Specify a set of bundled library declaration files that describe the target runtime environment. */
// "jsx": "preserve", /* Specify what JSX code is generated. */ // "jsx": "preserve", /* Specify what JSX code is generated. */
// "experimentalDecorators": true, /* Enable experimental support for legacy experimental decorators. */ // "experimentalDecorators": true, /* Enable experimental support for legacy experimental decorators. */

View file

@ -22,6 +22,7 @@
"emitDecoratorMetadata": true, "emitDecoratorMetadata": true,
"resolveJsonModule": true, "resolveJsonModule": true,
"isolatedModules": true, "isolatedModules": true,
"skipLibCheck": true,
"incremental": true, "incremental": true,
"baseUrl": "./", "baseUrl": "./",
"paths": { "paths": {

View file

@ -1,12 +1,13 @@
{ {
"$schema": "https://json.schemastore.org/tsconfig", "$schema": "https://json.schemastore.org/tsconfig",
"compilerOptions": { "compilerOptions": {
"target": "ESNext", "target": "ES2022",
"module": "ESNext", "module": "ESNext",
"moduleResolution": "node16", "moduleResolution": "nodenext",
"strict": true, "strict": true,
"strictFunctionTypes": true, "strictFunctionTypes": true,
"strictNullChecks": true, "strictNullChecks": true,
"skipLibCheck": true,
"esModuleInterop": true, "esModuleInterop": true,
"incremental": true, "incremental": true,
"lib": [ "lib": [