
Security News
Browserslist-rs Gets Major Refactor, Cutting Binary Size by Over 1MB
Browserslist-rs now uses static data to reduce binary size by over 1MB, improving memory use and performance for Rust-based frontend tools.
eslint-index
Advanced tools
CLI for finding and managing rules in ESLint config files
List all the rules!
Then count them, or create a pretty table!
npm install eslint-index --save-dev
eslint-index path/to/.eslintrc [options]
This package is intended to be used as a local utility.
It needs both eslint
and the eslint-plugins
referenced in the .eslintrc.*
config file, to be installed alongside it.
Using it as a global utility will throw an error if eslint
and the eslint-plugins
referenced in the .eslintrc.*
config file are not installed globally.
It is recommended that you use it within your package.json
scripts:
"scripts": {
"list-rules": "eslint-index .eslintrc",
"count-rules": "eslint-index .eslintrc --format number",
"table-rules": "eslint-index .eslintrc --format table",
"list-rules-with-docs": "eslint-index .eslintrc --docs",
"list-eslint-rules": "eslint-index .eslintrc --groups eslint",
"list-disabled-rules": "eslint-index .eslintrc --status omitted off"
}
Alternatively, you can add ./node_modules/.bin
to your $PATH
.
This will allow you to use any node binaries within your project:
ยป cd some-project-with-eslint-index-installed
ยป which eslint-index
./node_modules/.bin/eslint-index
ยป eslint-index .eslintrc --format table
โโโโโโโโโโโโฌโโโโโโโโโโฌโโโโโโโโโโฌโโโโโโโโโโฌโโโโโโโโโโฌโโโโโโโโโโ
โ โ total โ omitted โ off โ warn โ error โ
โโโโโโโโโโโโผโโโโโโโโโโผโโโโโโโโโโผโโโโโโโโโโผโโโโโโโโโโผโโโโโโโโโโค
โ eslint โ 233 โ 0 โ 29 โ 2 โ 202 โ
โโโโโโโโโโโโผโโโโโโโโโโผโโโโโโโโโโผโโโโโโโโโโผโโโโโโโโโโผโโโโโโโโโโค
โ react โ 53 โ 4 โ 0 โ 0 โ 49 โ
โโโโโโโโโโโโดโโโโโโโโโโดโโโโโโโโโโดโโโโโโโโโโดโโโโโโโโโโดโโโโโโโโโโ
Option | Alias | Description | Arg Type | Arg Options |
---|---|---|---|---|
--help | -h | Display help | Boolean | N/A |
--docs | -d | Display docs alongside rules | Boolean | N/A |
--format | -f | Format rules | String | `list |
--status | -s | Filter rules by status | Array<String> | `omitted |
--groups | -g | Filter rules by group/plugin | Array<String> | `eslint |
--include | -i | Filter rules by id | Array<String> | rule-id-one rule-id-two |
--exclude | -e | Reject rules by id | Array<String> | rule-id-one rule-id-two |
eslint-index .eslintrc --format table
eslint-index .eslintrc --format number
eslint-index .eslintrc --status omitted off
eslint-index .eslintrc --status warn error
eslint-index .eslintrc --groups eslint react
eslint-index .eslintrc --groups eslint --status warn error
eslint-index .eslintrc --groups eslint --status warn error --format number
eslint-index .eslintrc --include semi curly
eslint-index .eslintrc --exclude semi curly
eslint-index .eslintrc --docs
eslint-index .eslintrc --groups eslint react --docs
Matthew Wagerfield @wagerfield
FAQs
CLI for finding and managing rules in ESLint config files
The npm package eslint-index receives a total of 513 weekly downloads. As such, eslint-index popularity was classified as not popular.
We found that eslint-index demonstrated a not healthy version release cadence and project activity because the last version was released a year ago.ย It has 1 open source maintainer collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Security News
Browserslist-rs now uses static data to reduce binary size by over 1MB, improving memory use and performance for Rust-based frontend tools.
Research
Security News
Eight new malicious Firefox extensions impersonate games, steal OAuth tokens, hijack sessions, and exploit browser permissions to spy on users.
Security News
The official Go SDK for the Model Context Protocol is in development, with a stable, production-ready release expected by August 2025.