Description
Expected:
I expected this rule to not fix anything at all actually. See below ;).
Actual
Props got renamed in component, but their usages were not.
Context
I ran fix on whole project and then I spent lot of time debugging bunch of code because this fix renames props but doesn't rename their usages. So props like __hiddenProp
or user_id
got renamed but their usage stayed as __hidden-prop
:user_id
. Not to mention attributes passed by v-bind="propsObject"
. Every now and then I find some little bug caused by this big fix. I found one now after few weeks so I decided to report it in the end.
Proposed solution
I feel like it would be better to completely disable this fix, because there is so many edge cases where it might break, so it's better if the user explicitly fixes naming instead of trying to find out what is broken afterwards.
Thx for your work, cheers ;)