chore: enable noUncheckedIndexedAccess in all packages except richtext-lexical (#10592)

richtext-lexical throws a lot of errors so it will need a separate PR
This commit is contained in:
Germán Jabloñski
2025-01-15 13:09:10 -03:00
committed by GitHub
parent 7a392ddbff
commit d4039f2f9e
12 changed files with 1 additions and 14 deletions

View File

@@ -3,7 +3,6 @@
"compilerOptions": { "compilerOptions": {
/* TODO: remove the following lines */ /* TODO: remove the following lines */
"strict": false, "strict": false,
"noUncheckedIndexedAccess": false,
}, },
"references": [{ "path": "../payload" }, { "path": "../ui" }] "references": [{ "path": "../payload" }, { "path": "../ui" }]
} }

View File

@@ -3,7 +3,6 @@
"compilerOptions": { "compilerOptions": {
/* TODO: remove the following lines */ /* TODO: remove the following lines */
"strict": false, "strict": false,
"noUncheckedIndexedAccess": false,
}, },
"references": [{ "path": "../payload" }] "references": [{ "path": "../payload" }]
} }

View File

@@ -3,7 +3,6 @@
"compilerOptions": { "compilerOptions": {
/* TODO: remove the following lines */ /* TODO: remove the following lines */
"strict": false, "strict": false,
"noUncheckedIndexedAccess": false,
}, },
"references": [{ "path": "../payload" }] "references": [{ "path": "../payload" }]
} }

View File

@@ -3,7 +3,6 @@
"compilerOptions": { "compilerOptions": {
/* TODO: remove the following lines */ /* TODO: remove the following lines */
"strict": false, "strict": false,
"noUncheckedIndexedAccess": false,
}, },
"references": [{ "path": "../payload" }, { "path": "../ui" }, { "path": "../next" }] "references": [{ "path": "../payload" }, { "path": "../ui" }, { "path": "../next" }]
} }

View File

@@ -3,7 +3,6 @@
"compilerOptions": { "compilerOptions": {
/* TODO: remove the following lines */ /* TODO: remove the following lines */
"strict": false, "strict": false,
"noUncheckedIndexedAccess": false,
}, },
"references": [{ "path": "../payload" }, { "path": "../ui" }, { "path": "../next" }] "references": [{ "path": "../payload" }, { "path": "../ui" }, { "path": "../next" }]
} }

View File

@@ -3,7 +3,6 @@
"compilerOptions": { "compilerOptions": {
/* TODO: remove the following lines */ /* TODO: remove the following lines */
"strict": false, "strict": false,
"noUncheckedIndexedAccess": false,
}, },
"references": [{ "path": "../payload" }, { "path": "../ui" }, { "path": "../next" }] "references": [{ "path": "../payload" }, { "path": "../ui" }, { "path": "../next" }]
} }

View File

@@ -10,7 +10,6 @@
/* TODO: remove the following lines */ /* TODO: remove the following lines */
"strict": false, "strict": false,
"noUncheckedIndexedAccess": false,
}, },
"exclude": [ "exclude": [
"dist", "dist",

View File

@@ -22,5 +22,5 @@ export const getRangeFromHeader = async (
return fullRange return fullRange
} }
return range[0] return range[0] ?? fullRange
} }

View File

@@ -6,9 +6,6 @@
"emitDeclarationOnly": true, "emitDeclarationOnly": true,
"outDir": "./dist" /* Specify an output folder for all emitted files. */, "outDir": "./dist" /* Specify an output folder for all emitted files. */,
"rootDir": "./src" /* Specify the root folder within your source files. */, "rootDir": "./src" /* Specify the root folder within your source files. */,
/* TODO: remove the following lines */
"noUncheckedIndexedAccess": false,
}, },
"exclude": ["dist", "node_modules"], "exclude": ["dist", "node_modules"],
"include": ["src/**/*.ts", "src/**/*.tsx", "src/**/*.d.ts", "src/**/*.json"], "include": ["src/**/*.ts", "src/**/*.tsx", "src/**/*.d.ts", "src/**/*.json"],

View File

@@ -3,7 +3,6 @@
"compilerOptions": { "compilerOptions": {
/* TODO: remove the following lines */ /* TODO: remove the following lines */
"strict": false, "strict": false,
"noUncheckedIndexedAccess": false,
}, },
"references": [{ "path": "../payload" }, { "path": "../plugin-cloud-storage" }] "references": [{ "path": "../payload" }, { "path": "../plugin-cloud-storage" }]
} }

View File

@@ -3,6 +3,5 @@
"compilerOptions": { "compilerOptions": {
/* TODO: remove the following lines */ /* TODO: remove the following lines */
"strict": false, "strict": false,
"noUncheckedIndexedAccess": false,
} }
} }

View File

@@ -3,7 +3,6 @@
"compilerOptions": { "compilerOptions": {
/* TODO: remove the following lines */ /* TODO: remove the following lines */
"strict": false, "strict": false,
"noUncheckedIndexedAccess": false,
}, },
"references": [{ "path": "../payload" }, { "path": "../translations" }] "references": [{ "path": "../payload" }, { "path": "../translations" }]
} }