1.0.1 • Published 10 years ago
eslint-plugin-material-ui v1.0.1
eslint-plugin-material-ui
Custom eslint rules for Material-UI
Installation
You'll first need to install ESLint:
$ npm i eslint --save-devNext, install eslint-plugin-material-ui:
$ npm install eslint-plugin-material-ui --save-devNote: 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