Skip to content

Broken code with html-self-closing rule #876

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

Closed
scriptPilot opened this issue Apr 15, 2019 · 1 comment
Closed

Broken code with html-self-closing rule #876

scriptPilot opened this issue Apr 15, 2019 · 1 comment

Comments

@scriptPilot
Copy link

scriptPilot commented Apr 15, 2019

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>
@ota-meshi
Copy link
Member

Thank you for this issue.

I don't know because I've never used parcel, but both code should build successfully.
If that doesn't work, change the rule settings and use it.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants