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

no-useless-predicate: split into separate rules or make it configurable #747

Open
ajafff opened this issue Jan 17, 2021 · 0 comments
Open

Comments

@ajafff
Copy link
Member

ajafff commented Jan 17, 2021

no-useless-predicate does too much in one rule.
Either split it into multiple rules or make each check configurable.

For example: when working with TypeScript's AST you sometimes need to check for undefined although not included in the type. Therefore the rule is currently completely disabled in this repo. I'd like to have the remaining checks though.

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

No branches or pull requests

1 participant