Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

vue/attributes-order: v-dom-portal errors if placed after v-if #422

Closed
Assignees
Milestone
@ITOffcie

Description

Tell us about your environment

  • ESLint Version: 4.14.0
  • eslint-plugin-vue Version: 4.3.0
  • Node Version: 8.9.4

Please show your full configuration:

"vue/attributes-order": [2, {
 order: [
 "DEFINITION",
 "LIST_RENDERING",
 "CONDITIONALS",
 "RENDER_MODIFIERS",
 "GLOBAL",
 "UNIQUE",
 "CONTENT",
 "OTHER_ATTR",
 "BINDING",
 "EVENTS"
 ]
 }]

What did you do? Please include the actual source code causing the issue.

<div v-if="isVisible" v-dom-portal="true" :class="classes"></div>

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:

Attribute "v-dom-portal" should go before "v-if". (vue/attributes-order)

Metadata

Metadata

Type

No type

Projects

No projects

Relationships

None yet

Development

No branches or pull requests

Issue actions

    AltStyle によって変換されたページ (->オリジナル) /