[READ-ONLY] Mirror of https://github.com/sxzz/eslint-plugin-vuekit. Modern ESLint plugin for Vue 3 eslint-plugin-vuekit.sxzz.dev
eslint plugin vue
eslint-plugin-vuekit docs rules valid-attribute-name.md
1.1 kB · 52 lines
Markdown
at main


pageClass: rule-details sidebarDepth: 0 title: vue/valid-attribute-name description: require valid attribute names since: v9.0.0 #

vue/valid-attribute-name #

require valid attribute names

  • ⚙️ This rule is included in the following preset configs:
    • *.configs.essential
    • *.configs["strongly-recommended"]
    • *.configs.recommended

📖 Rule Details #

This rule detects invalid HTML attributes.

<template>
  <!-- ✓ GOOD -->
  <p foo.bar></p>
  <p foo-bar></p>
  <p _foo.bar></p>
  <p :foo-bar></p>

  <!-- ✗ BAD -->
  <p 0abc></p>
  <p -def></p>
  <p !ghi></p>
</template>

🔧 Options #

Nothing.

🚀 Version #

This rule was introduced in eslint-plugin-vue v9.0.0

🔍 Implementation #