Skip to content

knoopx/eslint-plugin-jsx-classname

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

eslint-jsx-classname

Installation

yarn add --dev knoopx/eslint-plugin-jsx-classname

Add jsx-classname to your .eslintrc:

"plugins": [..., "jsx-classname"],

Usage

Use one of the supplied configs

  • jsx-classname/tailwindcss

by adding them to your .eslintrc:

"extends": [
  ...,
  "plugin:jsx-classname/tailwindcss"
],

Or use one of the above rules.

jsx-classname/sort

Sorts className given specified patterns, falling back to alphabetical order.

jsx-classname/sort

Use the rule by adding it to your .eslintrc:

"jsx-classname/sort": [
  "warn",
  {
    "order": [
      "^display-"
    ]
  }

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published