Custom ESLint rules for MUI
You'll first need to install ESLint:
npm install eslint --save-devNext, install eslint-plugin-mui:
npm install eslint-plugin-mui --save-devAdd mui to the plugins section of your .eslintrc configuration file. You can omit the eslint-plugin- prefix:
{
"plugins": ["mui"]
}Then configure the rules you want to use under the rules section.
{
"rules": {
"mui/rule-name": 2
}
}This plugin is based on eslint-plugin-sort-keys-fix (https://github.com/leo-buneev/eslint-plugin-sort-keys-fix).