ArnaudBarre / eslint-plugin-react-refresh

Validate that your components can safely be updated with Fast Refresh
MIT License
206 stars 13 forks source link

Capitalized non-function not triggering rule #26

Closed uthbees closed 1 year ago

uthbees commented 1 year ago

Camel case variables are flagged correctly:

export function Component() {}
export const aa = 'a' // <--- flagged

But the rule seems to think that pascal case variables, no matter what they are, are components:

export function Component() {}
export const Aa = 'a' // <- not flagged!

This is clearly not ideal - is this possible to fix?

ArnaudBarre commented 1 year ago

Sorry for the late answer! Fixed on main, I will released later this week when other issues are handled!

ArnaudBarre commented 12 months ago

Released in v0.4.4!