Add missing noPropertyAccessFromIndexSignature to strictest tsconfig profile (#5864)

This commit is contained in:
Clément Nerma 2023-01-17 03:36:15 +01:00 committed by GitHub
parent b66d7195c1
commit 63d5d89038
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 9 additions and 0 deletions

View 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.

View file

@ -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.