Add missing noPropertyAccessFromIndexSignature
to strictest tsconfig profile (#5864)
This commit is contained in:
parent
b66d7195c1
commit
63d5d89038
2 changed files with 9 additions and 0 deletions
7
.changeset/smooth-cycles-sing.md
Normal file
7
.changeset/smooth-cycles-sing.md
Normal file
|
@ -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.
|
|
@ -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.
|
||||
|
|
Loading…
Reference in a new issue