eslint-plugin-material-ui

Custom eslint rules for Material-UI

Usage no npm install needed!

<script type="module">
  import eslintPluginMaterialUi from 'https://cdn.skypack.dev/eslint-plugin-material-ui';
</script>

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