eslint-plugin-mui
Custom ESLint rules for MUI
Installation
You'll first need to install ESLint: ```sh npm install eslint --save-dev ``` Next, installeslint-plugin-mui
:
```sh
npm install eslint-plugin-mui --save-dev
```
Usage
Addmui
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
}
}
```