0.2.0 ā€¢ Published 12 months ago

@saswatb/eslint-plugin-sort-sx-prop v0.2.0

Weekly downloads
-
License
MIT
Repository
github
Last release
12 months ago

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.

NameDescriptionšŸ”§
sort-sx-propSort the sx propšŸ”§
0.2.0

12 months ago

0.1.0

12 months ago