Skip to content
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

Autofix of vue/html-self-closing and vue/component-name-in-template-casing are in conflict #554

Closed
ota-meshi opened this issue Aug 14, 2018 · 1 comment · Fixed by #555
Closed
Assignees
Labels

Comments

@ota-meshi
Copy link
Member

Tell us about your environment

  • ESLint Version: 5.3.0
  • eslint-plugin-vue Version: 5.0.0-beta.2
  • Node Version: 8.0.0

Please show your full configuration:

  "eslintConfig": {
    "plugins": [
      "vue"
    ],
    "extends": ["plugin:vue/base"],
    "rules": {
      "vue/html-self-closing": ["error", {
        "html": {
          "component": "never"
        }
      }],
      "vue/component-name-in-template-casing": ["error", "kebab-case"]
    }
  }

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

I autofixed the following vue file.

<template>
  <VueComponent />
</template>

What did you expect to happen?

I expected the result of the autofix as following.

<template>
  <vue-component ></vue-component>
</template>

What actually happened? Please include the actual, raw output from ESLint.

But it got the following result.

<template>
  <vue-component ></VueComponent>
</template>
@ota-meshi
Copy link
Member Author

@mysticatea I'd like to ask your advice on whether this fix is correct 🙏

@michalsnik michalsnik added the bug label Aug 14, 2018
michalsnik pushed a commit that referenced this issue Sep 18, 2018
…e-in-template-casing` are autofix (#555)

* fixed #554

* Deleted useless test case.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
2 participants