chore: add eslint warning for no-shadow (@fehmer)

This commit is contained in:
Christian Fehmer 2024-08-15 00:13:02 +03:00
parent b162e3ada1
commit 3d1d6e3705
No known key found for this signature in database
GPG key ID: FE53784A69964062

View file

@ -132,6 +132,10 @@ module.exports = {
"@typescript-eslint/consistent-type-definitions": ["error", "type"],
"@typescript-eslint/no-invalid-void-type": "off",
"import/namespace": "off",
// Disallow variable declarations from shadowing variables declared in the outer scope.
// Note: you must disable the base rule as it can report incorrect errors
"no-shadow": "off",
"@typescript-eslint/no-shadow": "warn",
},
settings: {
"import/resolver": {