
Security News
pnpm 10.12 Introduces Global Virtual Store and Expanded Version Catalogs
pnpm 10.12.1 introduces a global virtual store for faster installs and new options for managing dependencies with version catalogs.
eslint-plugin-rebase
Advanced tools
⬣⬡ 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.
The npm package eslint-plugin-rebase receives a total of 0 weekly downloads. As such, eslint-plugin-rebase popularity was classified as not popular.
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.
Security News
pnpm 10.12.1 introduces a global virtual store for faster installs and new options for managing dependencies with version catalogs.
Security News
Amaro 1.0 lays the groundwork for stable TypeScript support in Node.js, bringing official .ts loading closer to reality.
Research
A deceptive PyPI package posing as an Instagram growth tool collects user credentials and sends them to third-party bot services.