gajus / eslint-plugin-flowtype

Flow type linting rules for ESLint.
Other
1.08k stars 153 forks source link

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

Closed Brianzchen closed 2 years ago

Brianzchen commented 3 years ago

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 commented 2 years ago

:tada: This issue has been resolved in version 5.9.0 :tada:

The release is available on:

Your semantic-release bot :package::rocket: