Registry / testing / eslint-plugin-material-ui

eslint-plugin-material-ui

JSON →
library1.0.1jsnpmunverified

Custom ESLint rules for Material-UI projects. Version 1.0.1 is the latest release. This plugin provides a small set of linting rules, such as ignore-before-comment, to enforce code conventions in Material-UI codebases. It is maintained by the Material-UI team, but offers limited rules compared to more comprehensive style linting tools. The plugin follows standard ESLint plugin conventions and requires peer dependency eslint (any version). It is compatible with both CommonJS and ESM ESLint configs.

npm install eslint-plugin-material-ui
INSTALL
IMPORT
SIG · ESLINT-PLUGIN-MATE
E
eslint-plugin-material-ui
testingjavascriptv1.0.1
Install
Import
Disk
Pass rate
0/ 6
Env Coverage0 / 6
glibc
1822
musl
1822
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
musl
node 18226 runs
build_error
glibc
node 18226 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.
fix
Use 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.
fix
Run '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.
fix
Match the installation scope: if ESLint is global, install the plugin globally; if local, install locally.
Upgrade
Version history
1.0.1latest on npm
Audit
Dependencies

No dependency data recorded yet.

Agent activity
4 hits · last 30 days
node
4
Resources
eslint-plugin-material-ui — npm install eslint-plugin-material-ui · libregistry