Replies: 1 comment 1 reply
-
Woah, this bit me exactly now! I was writing this and wondering why it didn't work:
I had to change it to this to make it work, but it feels a bit "wrong":
|
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hi,
I noticed while using eslint-plugin-vue rule :
vue/attribute-hyphenation
[ used in plugin:vue/vue3-strongly-recommended ] that the InertiaLink component attributes for events are not accepted with PascalCase :Finding a quote on VueJS.org :
Technically, you can also use camelCase when passing props to a child component (except in [DOM templates](https://vuejs.org/guide/essentials/component-basics.html#dom-template-parsing-caveats)). However, the convention is using kebab-case in all cases to align with HTML attributes
Error :
Fixed :
My actual solution is a simple addition to my eslint rules :
However, this could be problematic if I mistakenly add these bindings on other components.
Another alternative could be to set additional attributes in the Inertia Components without removing the initial ones.
I'm not sure this idea could have some kind of value, just asking.
Beta Was this translation helpful? Give feedback.
All reactions