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

type-id-match doesn't work on interface #483

Closed
Brianzchen opened this issue Jun 23, 2021 · 1 comment · Fixed by #492
Closed

type-id-match doesn't work on interface #483

Brianzchen opened this issue Jun 23, 2021 · 1 comment · Fixed by #492
Labels

Comments

@Brianzchen
Copy link
Contributor

https://github.com/gajus/eslint-plugin-flowtype#type-id-match This rule only works with type but not interface, eg

eslintrc.js

...
'flowtype/type-id-match': ['error', '^_?([A-Z][A-Za-z0-9]*T|Props)$'],
....
type MyTypeT = {}; // works
type MyType = {}; // errors
interface MyType {}; // does not error but i would like it to

I think it should be a new rule as opposed to being enforced on type-id-match. Maybe named interface-id-match with the same usage

@gajus
Copy link
Owner

gajus commented Aug 2, 2021

🎉 This issue has been resolved in version 5.9.0 🎉

The release is available on:

Your semantic-release bot 📦🚀

@gajus gajus added the released label Aug 2, 2021
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 a pull request may close this issue.

2 participants