![Oracle Drags Its Feet in the JavaScript Trademark Dispute](https://cdn.sanity.io/images/cgdhsj6q/production/919c3b22c24f93884c548d60cbb338e819ff2435-1024x1024.webp?w=400&fit=max&auto=format)
Security News
Oracle Drags Its Feet in the JavaScript Trademark Dispute
Oracle seeks to dismiss fraud claims in the JavaScript trademark dispute, delaying the case and avoiding questions about its right to the name.
eslint-ignore-inserter
Advanced tools
When moving to a new ESLint config, or when adopting ESLint for the first time, it's common to have tons of violations that you want to silence for now.
When moving to a new ESLint config, or when adopting ESLint for the first time, it's common to have tons of violations that you want to silence for now.
This library exposes a helpful utility, eslint-ignore-inserter
, that will
do all the heavy lifting, and insert // eslint-ignore-next-line ...
comments
into your code.
Say you have the following code, with an indentation violation:
function example () {
console.log('Hello')
console.log('World!')
}
Assuming you have the ESLint indent
rule turned on, running this...
eslint --format json . | eslint-ignore-inserter
... yields this:
function example () {
console.log('Hello')
// eslint-disable-next-line indent
console.log('World!)
}
$ yarn add --dev eslint-ignore-inserter
Then, in your package.json
, you can do something like this:
{
"scripts": {
"eslint:insert-ignores": "eslint --format json . | eslint-ignore-inserter"
}
}
Alternatively, you can install it globally and do the piping in your shell.
The --dry-run
/ -d
flag will prevent any filesystem writes, and will instead
print the modified files to stdout for you to inspect.
MIT
FAQs
When moving to a new ESLint config, or when adopting ESLint for the first time, it's common to have tons of violations that you want to silence for now.
The npm package eslint-ignore-inserter receives a total of 32 weekly downloads. As such, eslint-ignore-inserter popularity was classified as not popular.
We found that eslint-ignore-inserter 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
Oracle seeks to dismiss fraud claims in the JavaScript trademark dispute, delaying the case and avoiding questions about its right to the name.
Security News
The Linux Foundation is warning open source developers that compliance with global sanctions is mandatory, highlighting legal risks and restrictions on contributions.
Security News
Maven Central now validates Sigstore signatures, making it easier for developers to verify the provenance of Java packages.