moved extended tsconfig into our tsconfig to remove errors
diff --git a/package.json b/package.json
index 2ff313c..08ca2f2 100644
--- a/package.json
+++ b/package.json
@@ -5,7 +5,6 @@
"@tensorflow/tfjs": "^3.18.0",
"@tensorflow/tfjs-node": "^3.18.0",
"@total-typescript/ts-reset": "^0.3.7",
- "@tsconfig/node18-strictest-esm": "^1.0.0",
"@types/gm": "^1.25.0",
"@types/node": "^18.14.6",
"@ungap/structured-clone": "^1.0.1",
@@ -82,7 +81,7 @@
"prettier": "^2.7.1",
"prettier-eslint": "^15.0.1",
"tsc-suppress": "^1.0.7",
- "typescript": "^4.9.4",
+ "typescript": "^5.0.0",
"yarn-audit-fix": "^9.3.9"
}
}
diff --git a/tsconfig.json b/tsconfig.json
index 1df2f7d..2c396b0 100644
--- a/tsconfig.json
+++ b/tsconfig.json
@@ -1,6 +1,21 @@
{
- "extends": "@tsconfig/node18-strictest-esm/tsconfig.json",
+ "$schema": "https://json.schemastore.org/tsconfig",
+ "display": "Node 18 + ESM + Strictest",
"compilerOptions": {
+ "lib": [
+ "es2022"
+ ],
+ "strict": true,
+ "exactOptionalPropertyTypes": true,
+ "noFallthroughCasesInSwitch": true,
+ "noImplicitOverride": true,
+ "noPropertyAccessFromIndexSignature": true,
+ "noUncheckedIndexedAccess": true,
+ "noUnusedLocals": true,
+ "noUnusedParameters": true,
+ "forceConsistentCasingInFileNames": true,
+ "allowUnusedLabels": false,
+ "allowUnreachableCode": false,
"module": "NodeNext",
"target": "es2020",
"sourceMap": true,
@@ -11,7 +26,8 @@
"resolveJsonModule": true,
"moduleResolution": "NodeNext",
"skipLibCheck": true,
- "noImplicitReturns": false
+ "noImplicitReturns": false,
+ "checkJs": true
},
"include": ["src/**/*", "src/*", "src/config/main.d.ts", "src/config/main.ts"],
"exclude": ["src/Unfinished/**/*", "src/reflex/nsfwjs/**/*"]