Skip to content
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

Port builtin tslint rules #830

Merged
merged 6 commits into from Nov 20, 2023

Conversation

sandersn
Copy link
Member

Convert the "good" tslint builtins to their equivalent eslint or typescript-eslint equivalents.
I tried to use no-redeclare to prevent duplicated var declarations, but the eslint rule doesn't understand Typescript syntax and ts-eslint rule doesn't understand Typescript semantics that well (and, a little, its syntax), so had too many false positives.

Obviously there are other rules that would be nice to enable, but I'll leave that for others, since there is a lot of testing effort per rule, and these 10 are the ones @jakebailey, @andrewbranch and I thought were the most useful.

Only keep 10; I tried no-redeclare but it doesn't suffice to forbid only
duplicated `var` and nothing else because it doesn't understand
Typescript syntax or semantics.
@sandersn sandersn merged commit 6f68506 into microsoft:master Nov 20, 2023
6 checks passed
@sandersn sandersn deleted the port-builtin-tslint-rules branch November 20, 2023 19:44
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.

None yet

2 participants