Skip to content

Latest commit

 

History

History
43 lines (31 loc) · 989 Bytes

no-invalid-attribute-name.md

File metadata and controls

43 lines (31 loc) · 989 Bytes
pageClass sidebarDepth title description
rule-details
0
vue/no-invalid-attribute-name
require valid attribute names

vue/no-invalid-attribute-name

require valid attribute names

  • This rule has not been released yet.

📖 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.

🔍 Implementation