Registry /
testing / eslint-plugin-material-ui
Install & Compatibility
Where this runs
tested against v? · npm install
Install × environment matrix
Each cell = how many times install + import succeeded across repeated harness runs. Partial = flaky.
glibc = Debian/Ubuntu slim · musl = Alpine Linux
muslnode 18–226 runs
build_error
glibcnode 18–226 runs
build_error
Code
Verified usage
Verified import paths — ran on the pinned version, not inferred.
ESLint plugin
✓ // In .eslintrc
{
"plugins": ["material-ui"]
}
✗ const plugin = require('eslint-plugin-material-ui'); // Not needed for plugin registration
ESLint plugins are referenced by their short name in config files.
Rule configuration
✓ // In .eslintrc
{
"rules": {
"material-ui/ignore-before-comment": "warn"
}
}
✗ rules: { 'material-ui/ignore-before-comment': 2 } // Valid but less semantic
Rules are prefixed with 'material-ui/' and can use severity levels 0/1/2 or 'off'/'warn'/'error'.
Set up ESLint with eslint-plugin-material-ui and configure a rule.
// 1. Install dependencies
npm install eslint eslint-plugin-material-ui --save-dev
// 2. Create .eslintrc.json
{
"plugins": ["material-ui"],
"rules": {
"material-ui/ignore-before-comment": "error"
}
}
// 3. Example code that triggers the rule
// Code with a comment before ignored block
// eslint-disable-next-line material-ui/ignore-before-comment
const x = 1;
Debug
Known issues
gotchaThe plugin only includes one rule ('ignore-before-comment') as of v1.0.1. Do not expect comprehensive Material-UI linting.fixUse additional plugins like eslint-plugin-react or eslint-plugin-material-ui (community) for broader coverage.
affects: >=1.0.0
deprecatedNo known deprecated rules.
Errors
Common errors & fixes
ESLint couldn't find the plugin "eslint-plugin-material-ui".
Missing or not installed in the local node_modules.
fixRun 'npm install eslint-plugin-material-ui --save-dev' from the project root.
Error: Failed to load plugin 'material-ui': Cannot find module 'eslint-plugin-material-ui'
Global ESLint installation with local plugin or vice versa.
fixMatch the installation scope: if ESLint is global, install the plugin globally; if local, install locally.
Audit
Dependencies
No dependency data recorded yet.