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

ESlint plugin is broken on 7.32.0 - Missing hasSuggestions #22051

Closed

Conversation

dannyvassallo
Copy link

@dannyvassallo dannyvassallo commented Aug 9, 2021

Summary

I kept hitting this error after upgrading to ESlint 7.32.0 whenever reaching a hook that had a suggestion.

Oops! Something went wrong! :(

ESLint: 7.32.0

Error: Rules with suggestions must set the `meta.hasSuggestions` property to `true`.

Test Plan

I've updated the meta entry and used it in my own project. Lint completes successfully.
I've also updated the Eslint version in this project.

@facebook-github-bot
Copy link

Hi @dannyvassallo!

Thank you for your pull request and welcome to our community.

Action Required

In order to merge any pull request (code, docs, etc.), we require contributors to sign our Contributor License Agreement, and we don't seem to have one on file for you.

Process

In order for us to review and merge your suggested changes, please sign at https://code.facebook.com/cla. If you are contributing on behalf of someone else (eg your employer), the individual CLA may not be sufficient and your employer may need to sign the corporate CLA.

Once the CLA is signed, our tooling will perform checks and validations. Afterwards, the pull request will be tagged with CLA signed. The tagging process may take up to 1 hour after signing. Please give it that time before contacting us about it.

If you have received this in error or have any questions, please contact us at [email protected]. Thanks!

@sizebot
Copy link

sizebot commented Aug 9, 2021

Comparing: ecd73e1...dc0f42d

Critical size changes

Includes critical production bundles, as well as any change greater than 2%:

Name +/- Base Current +/- gzip Base gzip Current gzip
oss-stable/react-dom/cjs/react-dom.production.min.js = 127.58 kB 127.58 kB = 40.72 kB 40.72 kB
oss-experimental/react-dom/cjs/react-dom.production.min.js = 130.40 kB 130.40 kB = 41.65 kB 41.65 kB
facebook-www/ReactDOM-prod.classic.js = 405.16 kB 405.16 kB = 75.04 kB 75.04 kB
facebook-www/ReactDOM-prod.modern.js = 393.72 kB 393.72 kB = 73.32 kB 73.32 kB
facebook-www/ReactDOMForked-prod.classic.js = 405.16 kB 405.16 kB = 75.05 kB 75.04 kB

Significant size changes

Includes any change greater than 0.2%:

(No significant changes)

Generated by 🚫 dangerJS against dc0f42d

@facebook-github-bot
Copy link

Thank you for signing our Contributor License Agreement. We can now accept your code for this (and any) Facebook open source project. Thanks!

@dannyvassallo
Copy link
Author

@bvaughn sorry to ping you directly but is there something I need to do to improve this PR or get a review? It's becoming an issue for my team and I'd hate to have to rollback our ESlint update. Thank you so much for your time!

@facebook-github-bot
Copy link

Thank you for signing our Contributor License Agreement. We can now accept your code for this (and any) Facebook open source project. Thanks!

@bvaughn bvaughn requested a review from gaearon August 12, 2021 15:13
@bvaughn
Copy link
Contributor

bvaughn commented Aug 12, 2021

@gaearon would be the best person to review this so I'm going to tag him. If he doesn't have time, I can take a stab at it. I just don't have much context.

@dannyvassallo
Copy link
Author

@gaearon would be the best person to review this so I'm going to tag him. If he doesn't have time, I can take a stab at it. I just don't have much context.

Thank you both!

@dannyvassallo
Copy link
Author

@gaearon It turns out we were using a branch on ESLint that introduced this bug. I can remove the version updates to ESLint here and leave just the hasSuggestions property if you'd like to merge it in anticipation of the breaking change to come in version 8.0.0.

Additionally I can add this rule: https:/not-an-aardvark/eslint-plugin-eslint-plugin/blob/master/docs/rules/require-meta-has-suggestions.md

Please let me know how I can be of assistance. Thank you!

@facebook-github-bot
Copy link

Thank you for signing our Contributor License Agreement. We can now accept your code for this (and any) Facebook open source project. Thanks!

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

Successfully merging this pull request may close these issues.

4 participants