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

Handle suggestions in helper function outside rule or inside nested spread/ternary in require-meta-has-suggestions rule #291

Merged
merged 1 commit into from
Aug 17, 2022

Conversation

bmish
Copy link
Member

@bmish bmish commented Aug 16, 2022

This should help eliminate a lot of false positives. This is the same strategy we use in no-unused-message-ids in checking for potential messageId properties.

Fixes #272.

@bmish bmish added the bug label Aug 16, 2022
@bmish bmish force-pushed the suggest-fix-props branch 2 times, most recently from 4317463 to 8dae217 Compare August 16, 2022 15:04
@bmish bmish marked this pull request as draft August 16, 2022 15:18
…ted spread/ternary in `require-meta-has-suggestions` rule
@bmish bmish changed the title Handle suggestions/fixer in helper function outside rule or inside nested spread/ternary in require-meta-fixable and require-meta-has-suggestions rules Handle suggestions in helper function outside rule or inside nested spread/ternary in require-meta-has-suggestions rule Aug 17, 2022
@bmish bmish marked this pull request as ready for review August 17, 2022 01:47
@aladdin-add aladdin-add merged commit aa133a9 into eslint-community:main Aug 17, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Detect suggestions reported with spread and ternary used in require-meta-has-suggestions and other rules
2 participants