azat-io / eslint-plugin-perfectionist

🦄 ESLint plugin for sorting various data such as objects, imports, types, enums, JSX props, etc.
https://eslint-plugin-perfectionist.azat.io
MIT License
1.62k stars 28 forks source link

Feature: (sort css static class and className) #107

Open mr-mad-e opened 2 months ago

mr-mad-e commented 2 months ago

Describe the rule

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

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

Code example

https://eslint.vuejs.org/rules/static-class-names-order https://www.npmjs.com/package/eslint-plugin-react-classname-sort

Additional comments

should support both class and className

Validations