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

Triage and fix some eslint rules #55136

Merged
merged 3 commits into from
Jul 24, 2023

Conversation

jakebailey
Copy link
Member

@jakebailey jakebailey commented Jul 24, 2023

Follow-up to #54693.

This PR triages the rules that should "obviously" be disabled or fixed.

This caught a case where I had not noticed a stray debugger line in a PR.

@typescript-bot typescript-bot added Author: Team For Uncommitted Bug PR for untriaged, rejected, closed or missing bug labels Jul 24, 2023
@@ -79,22 +86,16 @@
"@typescript-eslint/no-namespace": "off",
"@typescript-eslint/no-non-null-asserted-optional-chain": "off",
"@typescript-eslint/no-var-requires": "off",
"@typescript-eslint/no-empty-interface": "off",
Copy link
Member Author

Choose a reason for hiding this comment

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

This one deserves an explanation; while it's definitely bad to have empty interfaces, we seem to have quite a few cases which are "valid" in that they do things like rebinding another interface with new type variables (many in types), providing an interface that is augmented elsewhere (SourceFile), and so on.

@jakebailey
Copy link
Member Author

After #55137, I've also added no-extra-boolean-cast, which similarly is too strict to work.

@jakebailey jakebailey merged commit d63af29 into microsoft:main Jul 24, 2023
@jakebailey jakebailey deleted the eslint-many-rules branch July 24, 2023 20:53
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Author: Team For Uncommitted Bug PR for untriaged, rejected, closed or missing bug
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants