Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/rafaelgomesxyz/eslint-plugin-mui

Custom ESLint rules for MUI
https://github.com/rafaelgomesxyz/eslint-plugin-mui

Last synced: 17 days ago
JSON representation

Custom ESLint rules for MUI

Awesome Lists containing this project

README

        

# eslint-plugin-mui

Custom ESLint rules for MUI

## Installation

You'll first need to install [ESLint](https://eslint.org/):

```sh
npm install eslint --save-dev
```

Next, install `eslint-plugin-mui`:

```sh
npm install eslint-plugin-mui --save-dev
```

## Usage

Add `mui` to the plugins section of your `.eslintrc` configuration file. You can omit the `eslint-plugin-` prefix:

```json
{
"plugins": ["mui"]
}
```

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

```json
{
"rules": {
"mui/rule-name": 2
}
}
```

## Supported Rules

- [sort-sx-keys](https://github.com/rafaelgomesxyz/eslint-plugin-mui/tree/main/docs/rules/sort-sx-keys.md)

## Credits

This plugin is based on eslint-plugin-sort-keys-fix (https://github.com/leo-buneev/eslint-plugin-sort-keys-fix).