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:
@@ -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" }]
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -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" }]
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -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" }]
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -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" }]
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -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" }]
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -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" }]
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -10,7 +10,6 @@
|
|||||||
|
|
||||||
/* TODO: remove the following lines */
|
/* TODO: remove the following lines */
|
||||||
"strict": false,
|
"strict": false,
|
||||||
"noUncheckedIndexedAccess": false,
|
|
||||||
},
|
},
|
||||||
"exclude": [
|
"exclude": [
|
||||||
"dist",
|
"dist",
|
||||||
|
|||||||
@@ -22,5 +22,5 @@ export const getRangeFromHeader = async (
|
|||||||
return fullRange
|
return fullRange
|
||||||
}
|
}
|
||||||
|
|
||||||
return range[0]
|
return range[0] ?? fullRange
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -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"],
|
||||||
|
|||||||
@@ -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" }]
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -3,6 +3,5 @@
|
|||||||
"compilerOptions": {
|
"compilerOptions": {
|
||||||
/* TODO: remove the following lines */
|
/* TODO: remove the following lines */
|
||||||
"strict": false,
|
"strict": false,
|
||||||
"noUncheckedIndexedAccess": false,
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -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" }]
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user