Skip to content

fix: disable no-undef rule in TS files #237

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 10 commits into from
Nov 29, 2021
Merged

fix: disable no-undef rule in TS files #237

merged 10 commits into from
Nov 29, 2021

Conversation

jaworek
Copy link
Contributor

@jaworek jaworek commented Nov 29, 2021

no-undef rule from Eslint is not needed in TS files. Based on the explanation linked below TS is able to handle it itself and does better job at it.

https://github.com/typescript-eslint/typescript-eslint/blob/6c3816b3831e6e683c1a7842196b34248803d69b/docs/linting/TROUBLESHOOTING.md#i-get-errors-from-the-no-undef-rule-about-global-variables-not-being-defined-even-though-there-are-no-typescript-errors

Test plan

Check if other rules work correctly.

@jaworek jaworek force-pushed the disable-no-undef-ts branch from cde90e0 to 486bfa1 Compare November 29, 2021 08:53
Copy link
Member

@thymikee thymikee left a comment

Choose a reason for hiding this comment

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

Thanks!

@thymikee thymikee changed the title Disable no undef ts fix: disable no-undef rule in TS files Nov 29, 2021
@thymikee thymikee changed the title fix: disable no-undef rule in TS files fix: disable no-undef rule in TS files Nov 29, 2021
@thymikee thymikee merged commit 19dd24e into main Nov 29, 2021
@thymikee thymikee deleted the disable-no-undef-ts branch November 29, 2021 09:15
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.

2 participants