diff options
Diffstat (limited to '')
-rw-r--r-- | .changeset/smooth-cycles-sing.md | 7 | ||||
-rw-r--r-- | packages/astro/tsconfigs/strictest.json | 2 |
2 files changed, 9 insertions, 0 deletions
diff --git a/.changeset/smooth-cycles-sing.md b/.changeset/smooth-cycles-sing.md new file mode 100644 index 000000000..d00bf0331 --- /dev/null +++ b/.changeset/smooth-cycles-sing.md @@ -0,0 +1,7 @@ +--- +'astro': patch +--- + +The `noPropertyAccessFromIndexSignature` typescript configuration option was added to the `strictest` profile. + +This will have no impact at runtime, but may affect code checks on codebases which do not already use this check. diff --git a/packages/astro/tsconfigs/strictest.json b/packages/astro/tsconfigs/strictest.json index f59dc4f6c..adabf0142 100644 --- a/packages/astro/tsconfigs/strictest.json +++ b/packages/astro/tsconfigs/strictest.json @@ -8,6 +8,8 @@ "noImplicitOverride": true, // Force functions to specify that they can return `undefined` if a possible code path does not return a value. "noImplicitReturns": true, + // Ensures consistency between accessing a field via the “dot” (obj.key) syntax, and “indexed” (obj["key"]) and the way which the property is declared in the type. + "noPropertyAccessFromIndexSignature": true, // Report an error when a variable is declared but never used. "noUnusedLocals": true, // Report an error when a parameter is declared but never used. |