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

id-match rule does not work with opaque types #377

Closed
gajus opened this issue Nov 16, 2018 · 1 comment
Closed

id-match rule does not work with opaque types #377

gajus opened this issue Nov 16, 2018 · 1 comment

Comments

@gajus
Copy link
Owner

gajus commented Nov 16, 2018

Configuration:

"flowtype/type-id-match": [
  2,
  "^([A-Z][a-z0-9]+)+Type$"
],

Expected behaviour:

// raise warning
type GoogleApiKey = string;

// raise warning
export opaque type DarkskyApiKey = string;

Actual behaviour:

// raises warning
type GoogleApiKey = string;

// does not raise warning
export opaque type DarkskyApiKey = string;
@gajus gajus added the bug label Nov 16, 2018
@gajus gajus closed this as completed in b1c588f May 16, 2020
@gajus
Copy link
Owner Author

gajus commented May 16, 2020

🎉 This issue has been resolved in version 5.0.3 🎉

The release is available on:

Your semantic-release bot 📦🚀

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

1 participant