
Research
Security News
The Landscape of Malicious Open Source Packages: 2025 Mid‑Year Threat Report
A look at the top trends in how threat actors are weaponizing open source packages to deliver malware and persist across the software supply chain.
eslint-plugin-rebase
Advanced tools
Supply Chain Security
Vulnerability
Quality
Maintenance
License
⬣⬡ Start ESLinting new code, without fixing all the old.
Ever wanted to introduce and enforce new ESLint rules to your project, but noticed too many errors in existing code? Maybe you didn't have time to fix everything, so you gave up. So even new code is being added that might violate the rules you had wanted.
But what if you could allow all existing violations, and have ESLint only report on new or changed code?
eslint-plugin-rebase
empowers you to do exactly that!
npm add -D eslint-plugin-rebase
Use our CLI to initialize, pointing it to your source files:
eslint-rebase 'src/**'
Or alternatively, to set as warnings rather than ignore:
eslint-rebase --warning 'src/**'
This creates a .eslint-rebase.json
file that looks something like this (though you may have no ignores
initially):
{
"ignores": {
"src/index.js": {
"no-console": ["console.log(\"ok\");", "console.log(\"oops\");"]
}
}
}
This .eslint-rebase.json
file should be commited to your repository.
Suppose you consider adding a new rule to your ESLint config (e.g., no-console
).
If you run eslint
, you may see many existing violations.
If you want to allow them, run eslint-rebase
again, and they will be written to ignores
in .eslint-rebase.json
.
Running eslint
again, you'll see it passes with no errors.
But now if you were to write any new code (or change any existing lines) that violate this new rule, you'll see those new lines start to report errors.
Tools like disable-eslint-issues-cli and suppress-eslint-errors
let you add eslint-disable
comments to each violation in your source code,
but that can be noisy and invasive, may encourage copy/pasting of disable comments along with code,
and even make disabling seem acceptable (rather than an exception to be used as sparingly as is feasible).
FAQs
Start ESLinting new code, without fixing all the old.
We found that eslint-plugin-rebase 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.
Research
Security News
A look at the top trends in how threat actors are weaponizing open source packages to deliver malware and persist across the software supply chain.
Security News
ESLint now supports HTML linting with 48 new rules, expanding its language plugin system to cover more of the modern web development stack.
Security News
CISA is discontinuing official RSS support for KEV and cybersecurity alerts, shifting updates to email and social media, disrupting automation workflows.