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.
plugin
✓ // in .eslintrc: { "plugins": ["index"] }
✗ { "plugins": ["eslint-plugin-index"] } // also works but unnecessary prefix
ESLint automatically strips 'eslint-plugin-' prefix when loading plugins from node_modules.
recommended config
✓ // in .eslintrc: { "extends": ["plugin:index/recommended"] }
✗ { "extends": ["index/recommended"] } // missing plugin: prefix
Extending plugin configs requires 'plugin:' prefix.
only-import-export rule
✓ // in .eslintrc rules: { "index/only-import-export": "error" }
✗ // no common wrong pattern
Rule name must include plugin namespace prefix 'index/'.
forbid rule
✓ // in .eslintrc rules: { "index/forbid": "error" }
✗ // no common wrong pattern
Rule name must include plugin namespace prefix 'index/'.
Install the plugin, enable recommended rules, and optionally enable the forbid rule.
npm install -D eslint eslint-plugin-index
// .eslintrc.json
{
"plugins": ["index"],
"extends": ["plugin:index/recommended"],
"rules": {
"index/forbid": "error"
}
}
Errors
Common errors & fixes
ESLint couldn't find the plugin "eslint-plugin-index".
Plugin not installed or not in node_modules.
fixRun `npm install -D eslint-plugin-index`.
Configuration for rule "index/only-import-export" is invalid: Value "error" must be an object or string.
Incorrect rule configuration syntax in ESLint config.
fixUse string severity: "index/only-import-export": "error"
Audit
Dependencies
eslintrequiredPeer dependency required for plugin to work