Skip to content

const enums results in false positive with the rule "no-shadow" #856

Closed
@onderceylan

Description

@onderceylan

🐛 Bug Report

Thanks for this great migration library, it saves a lot of time!
I've had an issue with my migration due to default eslint rule "no-shadow". It should be replaced with "@typescript-eslint/no-shadow".

  • tslint-to-eslint-config version: 2.0.1
  • ESLint version: 7.6.0
  • Node version: 12.16.1

Actual Behavior

"no-shadow": ["error"]

Expected Behavior

"no-shadow": "off",
"@typescript-eslint/no-shadow": ["error"]

Reproduction

export const enum TestingConstEnumShadowVar {
  First,
  Second,
  Third,
}

Metadata

Metadata

Assignees

No one assigned

    Labels

    area: incorrect converterRule converter with incomplete, incorrect, or invalid rule names and/or argumentsgood first issueGood for newcomers; welcome aboard!status: accepting prsPlease, send in a PR to resolve this! ✨

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions