Skip to content

Fix no shadow rule for typescript #127

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 2 commits into from
Jul 16, 2021
Merged

Conversation

koddsson
Copy link
Contributor

The no-shadow rule from ESLint Core will report on lines that don't violate the rule when run on TypeScript files. We should use the typescript-eslint rule for no-shadow rather than the rule in ESLint Core.

I also threw in a quick npm audit fix while I was at it.

References

https://github.com/typescript-eslint/typescript-eslint/blob/master/docs/getting-started/linting/FAQ.md#i-am-using-a-rule-from-eslint-core-and-it-doesnt-work-correctly-with-typescript-code
Fixes #126

@koddsson koddsson requested a review from a team as a code owner July 15, 2021 12:15
@koddsson koddsson requested review from bscofield and srt32 July 15, 2021 12:15
Copy link

@bscofield bscofield left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

👍

Copy link
Contributor

@stephenotalora stephenotalora left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thank you!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

no-shadow false positive when used with typescript
3 participants