Simplify the creation of an index file for your ESLint plugin. Version 1.0.0 is stable, with no recent updates. It helps generate recommended configurations and rule descriptions from rule metadata. Key differentiators: automates index generation for ESLint plugins, extracts metadata like recommended severity and descriptions. Requires Node >=4.0.0 and typically used with req-all library to load rules.
npm install create-eslint-indexVerified import paths — ran on the pinned version, not inferred.
Demonstrates creating a recommended config from all rules in a directory.
Ensure the path is correct and that the rule objects have the field at that path.
Use rule names as keys, e.g., 'rule-1' not 'myplugin/rule-1'.
Ensure all rules have the required metadata or validate before calling createConfig.
Double-check the path string and that your rule exports follow the correct format (meta.docs.recommended).
Use const createIndex = require('create-eslint-index') then call createIndex.createConfig().No dependency data recorded yet.