This repository was archived by the owner on May 12, 2025. It is now read-only.
This repository was archived by the owner on May 12, 2025. It is now read-only.
New @typescript-eslint v4 rules: no-shadow, no-redeclare #127
Closed
Description
@typescript-eslint
v4 adds these new rules:
- https://github.com/typescript-eslint/typescript-eslint/blob/master/packages/eslint-plugin/docs/rules/no-shadow.md
- https://github.com/typescript-eslint/typescript-eslint/blob/master/packages/eslint-plugin/docs/rules/no-redeclare.md
This is required since the base rules report false positives in TypeScript (e.g. no-shadow
reports enums) with the v4 typescript-eslint release (due to breaking changes in the scope analysis engine).
- The
no-shadow
rule should be turned off and replaced with@typescript-eslint/no-shadow
- The
no-redeclare
rule should be turned off and replaced with@typescript-eslint/no-redeclare
Metadata
Metadata
Assignees
Labels
No labels