eslint-plugin-material-ui
v1.0.1
Published
Custom eslint rules for Material-UI
Downloads
13,156
Readme
eslint-plugin-material-ui
Custom eslint rules for Material-UI
Installation
You'll first need to install ESLint:
$ npm i eslint --save-dev
Next, install eslint-plugin-material-ui
:
$ npm install eslint-plugin-material-ui --save-dev
Note: If you installed ESLint globally (using the -g
flag) then you must also install eslint-plugin-material-ui
globally.
Usage
Add material-ui
to the plugins section of your .eslintrc
configuration file. You can omit the eslint-plugin-
prefix:
{
"plugins": [
"material-ui"
]
}
Then configure the rules you want to use under the rules section.
{
"rules": {
"material-ui/rule-name": 2
}
}
Supported Rules
- ignore-before-comment