Skip to content

SaswatB/eslint-plugin-sort-sx-prop

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

eslint-plugin-sort-sx-prop

Sorts the sx prop from ui libraries like MUI

Installation

You'll first need to install ESLint:

npm i eslint --save-dev

Next, install eslint-plugin-sort-sx-prop:

npm install @saswatb/eslint-plugin-sort-sx-prop --save-dev

Usage

Add sort-sx-prop to the plugins section of your .eslintrc configuration file. You can omit the eslint-plugin- prefix:

{
  "plugins": ["@saswatb/eslint-plugin-sort-sx-prop"]
}

Then configure the rules you want to use under the rules section.

{
  "rules": {
    "@saswatb/eslint-plugin-sort-sx-prop/sort-sx-prop": [
      "error",
      { "addWhitespace": true }
    ]
  }
}

Rules

🔧 Automatically fixable by the --fix CLI option.

Name Description 🔧
sort-sx-prop Sort the sx prop 🔧

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published