-
-
Notifications
You must be signed in to change notification settings - Fork 681
vue/attributes-order: v-dom-portal errors if placed after v-if #422
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
Comments
Having similar issue after updating to eslint-plugin-vue 4.3.0. |
Yup, same thing here. Seems to happen with any custom directive in the form v-xxxx |
I think all custom directives should be recognised as |
Yes, all custom directives should be recognised as |
I'm giving it second thought, and maybe we should create another category for |
What about letting us cherrypick the exact attributes? For example, I would like the "vue/attributes-order": [2, {
order: [
"DEFINITION",
"LIST_RENDERING",
"CONDITIONALS",
"RENDER_MODIFIERS",
"GLOBAL",
"UNIQUE",
"BINDING",
"OTHER_ATTR",
"EVENTS",
["CONTENT", "v-t"],
],
}] |
I agree with @skyrpex, I also think we should put them all into a separate category, but translation ones should go into content. |
Tell us about your environment
Please show your full configuration:
What did you do? Please include the actual source code causing the issue.
What did you expect to happen?
v-dom-portal directive should not fail linting, as it should be OTHER_ATTR imo
What actually happened? Please include the actual, raw output from ESLint.
Instead it seems to be recognised as either DEFINITION or LIST_RENDERING, and the following message displays:
The text was updated successfully, but these errors were encountered: