Skip to content

Latest commit

 

History

History
43 lines (29 loc) · 1.05 KB

static-class-names-order.md

File metadata and controls

43 lines (29 loc) · 1.05 KB
pageClass sidebarDepth title description since
rule-details
0
vue/static-class-names-order
enforce static class names order
v6.1.0

vue/static-class-names-order

enforce static class names order

  • 🔧 The --fix option on the command line can automatically fix some of the problems reported by this rule.

📖 Rule Details

This rule aims to enforce the order of static class names.

<template>
  <!-- ✓ GOOD -->
  <div class="a b"></div>

  <!-- ✗ BAD -->
  <div class="b a"></div>
</template>

🔧 Options

Nothing.

🚀 Version

This rule was introduced in eslint-plugin-vue v6.1.0

🔍 Implementation