Skip to content

Commit

Permalink
Update ESLint configuration
Browse files Browse the repository at this point in the history
Remove the "no-shadow": "off" override and replace it by enabling
"@typescript-eslint/no-shadow" in the "rules" section, following the
typescript-eslint docs:
https://github.com/typescript-eslint/typescript-eslint/blob/master/packages/eslint-plugin/docs/rules/no-shadow.md#how-to-use
  • Loading branch information
Eric Cornelissen committed Nov 19, 2020
1 parent 0924fb6 commit 22f779c
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions .eslintrc.json
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,8 @@
"no-async-foreach/no-async-foreach": "error",
"no-console": "off",
"no-sequences": "error",
"no-shadow": "off",
"@typescript-eslint/no-shadow": ["error"],
"one-var": ["error", "never"]
},
"overrides": [{
Expand All @@ -48,8 +50,7 @@
"@typescript-eslint/require-await": "off",
"@typescript-eslint/restrict-template-expressions": "off",
"func-style": "off",
"github/no-then": "off",
"no-shadow": "off"
"github/no-then": "off"
}
}]
}

0 comments on commit 22f779c

Please sign in to comment.