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

Version 2.35.0 Error "Configuration for rule "flowtype/require-return-type" is invalid Value "never" must be an enum value." #253

Closed
ramusus opened this issue Jul 11, 2017 · 5 comments

Comments

@ramusus
Copy link

ramusus commented Jul 11, 2017

After update from 2.33.0 to 2.35.0 I started to get this error:

Error: /Users/shifrinb2/workspace/commons/.eslintrc.yml:
        Configuration for rule "flowtype/require-return-type" is invalid:
        Value "never" must be an enum value.

My .eslintrc.yml:

flowtype/require-return-type: [error, never, {annotateUndefined: never}]

Before this setting works just fine

@milesj
Copy link

milesj commented Jul 13, 2017

Same issue here.

This causes a failure:

"flowtype/require-return-type": [2, {
  "excludeArrowFunctions": "expressionsOnly",
}],

While this does not:

"flowtype/require-return-type": 2,

After looking at the source, it seems like any rule that accepts an object OR a string as the 2nd argument will fail.

@milesj
Copy link

milesj commented Sep 4, 2017

No update on this yet?

@ramusus
Copy link
Author

ramusus commented Nov 15, 2017

any updates?

@gajus
Copy link
Owner

gajus commented Nov 15, 2017

Simple to fix. PR is welcome.

@gajus gajus closed this as completed in aca8583 May 18, 2020
@gajus
Copy link
Owner

gajus commented May 26, 2020

🎉 This issue has been resolved in version 5.1.1 🎉

The release is available on:

Your semantic-release bot 📦🚀

@gajus gajus added the released label May 26, 2020
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

3 participants