eslint-plugin-material-ui

v1.0.1
Custom eslint rules for Material-UI
eslint eslintplugin eslint-plugin

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
npm i eslint-plugin-material-ui

Metadata

  • MIT
  • >=0.10.0
  • Matthew Brookes
  • released 3/9/2016

Downloads

Maintainers