Skip to content

Commit d4039f2

Browse files
authored
chore: enable noUncheckedIndexedAccess in all packages except richtext-lexical (#10592)
richtext-lexical throws a lot of errors so it will need a separate PR
1 parent 7a392dd commit d4039f2

File tree

12 files changed

+1
-14
lines changed

12 files changed

+1
-14
lines changed

packages/plugin-form-builder/tsconfig.json

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,6 @@
33
"compilerOptions": {
44
/* TODO: remove the following lines */
55
"strict": false,
6-
"noUncheckedIndexedAccess": false,
76
},
87
"references": [{ "path": "../payload" }, { "path": "../ui" }]
98
}

packages/plugin-nested-docs/tsconfig.json

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,6 @@
33
"compilerOptions": {
44
/* TODO: remove the following lines */
55
"strict": false,
6-
"noUncheckedIndexedAccess": false,
76
},
87
"references": [{ "path": "../payload" }]
98
}

packages/plugin-redirects/tsconfig.json

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,6 @@
33
"compilerOptions": {
44
/* TODO: remove the following lines */
55
"strict": false,
6-
"noUncheckedIndexedAccess": false,
76
},
87
"references": [{ "path": "../payload" }]
98
}

packages/plugin-search/tsconfig.json

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,6 @@
33
"compilerOptions": {
44
/* TODO: remove the following lines */
55
"strict": false,
6-
"noUncheckedIndexedAccess": false,
76
},
87
"references": [{ "path": "../payload" }, { "path": "../ui" }, { "path": "../next" }]
98
}

packages/plugin-seo/tsconfig.json

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,6 @@
33
"compilerOptions": {
44
/* TODO: remove the following lines */
55
"strict": false,
6-
"noUncheckedIndexedAccess": false,
76
},
87
"references": [{ "path": "../payload" }, { "path": "../ui" }, { "path": "../next" }]
98
}

packages/plugin-stripe/tsconfig.json

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,6 @@
33
"compilerOptions": {
44
/* TODO: remove the following lines */
55
"strict": false,
6-
"noUncheckedIndexedAccess": false,
76
},
87
"references": [{ "path": "../payload" }, { "path": "../ui" }, { "path": "../next" }]
98
}

packages/richtext-slate/tsconfig.json

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,6 @@
1010

1111
/* TODO: remove the following lines */
1212
"strict": false,
13-
"noUncheckedIndexedAccess": false,
1413
},
1514
"exclude": [
1615
"dist",

packages/storage-azure/src/utils/getRangeFromHeader.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,5 +22,5 @@ export const getRangeFromHeader = async (
2222
return fullRange
2323
}
2424

25-
return range[0]
25+
return range[0] ?? fullRange
2626
}

packages/storage-azure/tsconfig.json

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -6,9 +6,6 @@
66
"emitDeclarationOnly": true,
77
"outDir": "./dist" /* Specify an output folder for all emitted files. */,
88
"rootDir": "./src" /* Specify the root folder within your source files. */,
9-
10-
/* TODO: remove the following lines */
11-
"noUncheckedIndexedAccess": false,
129
},
1310
"exclude": ["dist", "node_modules"],
1411
"include": ["src/**/*.ts", "src/**/*.tsx", "src/**/*.d.ts", "src/**/*.json"],

packages/storage-uploadthing/tsconfig.json

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,6 @@
33
"compilerOptions": {
44
/* TODO: remove the following lines */
55
"strict": false,
6-
"noUncheckedIndexedAccess": false,
76
},
87
"references": [{ "path": "../payload" }, { "path": "../plugin-cloud-storage" }]
98
}

0 commit comments

Comments
 (0)