Skip to content

Broken code with html-self-closing rule #876

Closed
@scriptPilot

Description

@scriptPilot

Tell us about your environment

  • ESLint version: 5.16.0
  • eslint-plugin-vue version: 5.2.2
  • Node version: 11.6.0

Please show your full configuration:

{
  "extends": [
    "airbnb-base",
    "plugin:vue/recommended"
  ]
}

What did you do?

Created the following vue component / fixed with ESLint according config:

<template>
  <f7-app :params="f7params">
    <f7-statusbar />
    <f7-view main />
  </f7-app>
</template>

What did you expect to happen?
https://framework7.io/ app component is bundled nicely with https://parceljs.org/.

What actually happened?
Resulting code is broken. Bundling works nicely when I add the following rule:

"rules": {
    "vue/html-self-closing": [
      "error",
      {
        "html": {
          "component": "never"
        }
      }
    ]
  }

Resulting in the following vue component:

<template>
  <f7-app :params="f7params">
    <f7-statusbar></f7-statusbar>
    <f7-view main></f7-view>
  </f7-app>
</template>

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions