Load arbitrary ESLint rules from multiple directories into a single namespace (lint/). Version 1.0.0 is the current stable release; the package is quite stable with no frequent releases. It differentiates from alternatives like eslint-plugin-rulesdir by supporting multiple rule directories simultaneously, and from eslint-plugin-local-rules by offering a simple API and not requiring a specific configuration structure. It works with Node.js >=4 and is intended for use in ESLint configurations to merge custom rules from various sources into one plugin namespace.
npm install eslint-plugin-lintNo compatibility data collected yet for this library.
Verified import paths — ran on the pinned version, not inferred.
Shows how to configure ESLint to load custom rules from two directories and reference them under the lint/ namespace.
Use path.join(__dirname, 'relative/path') to resolve to an absolute path.
Ensure each rule file exports an object with meta and create properties.
Always reference rules as 'lint/rule-name' and add 'lint' to plugins array.
Call load() at the top level of your .eslintrc.js or config file.
Run 'npm install eslint-plugin-lint --save-dev' from the project root.
Add 'lint' to the plugins array in your ESLint configuration.
Ensure 'no-foo.js' exists in one of the directories passed to load() and the rule name uses the filename without extension.
Export an object with 'meta' and 'create' from the rule file.
No dependency data recorded yet.