mirror of
https://github.com/monkeytypegame/monkeytype.git
synced 2024-09-20 07:16:17 +08:00
chore: add eslint warning for no-shadow (@fehmer)
This commit is contained in:
parent
b162e3ada1
commit
3d1d6e3705
|
@ -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": {
|
||||
|
|
Loading…
Reference in a new issue