
Security News
Vite+ Joins the Push to Consolidate JavaScript Tooling
Evan You announces Vite+, a commercial, Rust-powered toolchain built on the Vite ecosystem to unify JavaScript development and fund open source.
eslint-find-new-rules
Advanced tools
Find built-in ESLint rules you don't have in your custom config.
This module is deprecated in favor of eslint-find-rules
Use this for your own ESLint shareable configuration to identify built-in ESLint rules that you're not explicitly configuring.
Simply install locally as a development dependency to your project's package:
npm install --save-dev eslint-find-new-rules
The intended usage is as an npm script:
{
...
"scripts": {
"find-new-rules": "eslint-find-new-rules path/to/eslint-config"
}
...
}
Then run it with: $ npm run find-new-rules -s
(the -s
is to silence npm output).
This is really handy in an actual config module (like mine) where you could also do:
eslint-find-new-rules ./index.js
This is resolved relative to the process.cwd()
which, in the context of npm scripts is always the location of your package.json
.
You may specify any config format supported by ESLint.
You can also provide an absolute path:
eslint-find-new-rules ~/Developer/eslint-config-kentcdodds/index.js
Please note that any tested ESLint config file must reside below your project's root.
main
It will also default to the main
in your package.json
, so you can omit the argument altogether:
eslint-find-new-rules
require
d modulevar getRuleFinder = require('./eslint-find-new-rules')
var ruleFinder = getRuleFinder('path/to/eslint-config')
// default to the `main` in your `package.json`
// var ruleFinder = getRuleFinder()
// get all the current, plugin, available and unused rules
// without referring the extended files or documentation
ruleFinder.getCurrentRules()
ruleFinder.getPluginRules()
ruleFinder.getAllAvailableRules()
ruleFinder.getUnusedRules()
Thanks goes to these wonderful people (emoji key):
Kent C. Dodds 💻 📖 ⚠️ 👀 | Michał Gołębiowski 💻 | Sarbbottam Bandyopadhyay ⚠️ 👀 | Andreas Windt 💻 📖 ⚠️ | Jeroen Engels 📖 |
---|
This project follows the all-contributors specification. Contributions of any kind welcome!
Special thanks to @mgol who created the original script.
MIT
FAQs
Find built-in ESLint rules you don't have in your custom config.
We found that eslint-find-new-rules demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 2 open source maintainers 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
Evan You announces Vite+, a commercial, Rust-powered toolchain built on the Vite ecosystem to unify JavaScript development and fund open source.
Security News
Ruby Central’s incident report on the RubyGems.org access dispute sparks backlash from former maintainers and renewed debate over project governance.
Research
/Security News
Socket researchers uncover how threat actors weaponize Discord across the npm, PyPI, and RubyGems ecosystems to exfiltrate sensitive data.