Research
Security News
Threat Actor Exposes Playbook for Exploiting npm to Build Blockchain-Powered Botnets
A threat actor's playbook for exploiting the npm ecosystem was exposed on the dark web, detailing how to build a blockchain-powered botnet.
@grvcoelho/lint-diff
Advanced tools
:nail_care: Run eslint only in the changed parts of the code
:nail_care: Run eslint only in the changed parts of the code
ESLint is a great tool to enforce code style in your code, but it has some limitations: it can only lint entire files. When working with legacy code, we often have to make changes to very large files (which would be too troublesome to fix all lint errors)and thus it would be good to lint only the lines changed and not the entire file.
lint-diff receives a commit range and uses ESLint to lint the changed files and filter only the errors introduced in the commit range (and nothing more).
npm install @grvcoelho/lint-diff
Install eslint
and add your eslint configuration file.
Use it:
# This will lint the last commit
lint-diff lint HEAD^..HEAD
lint-diff lint HEAD~3..HEAD
lint-diff lint HEAD
# This environment variable will be available in any Travis build
lint-diff lint $TRAVIS_COMMIT_RANGE
FAQs
:nail_care: Run eslint only in the changed parts of the code
We found that @grvcoelho/lint-diff 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 threat actor's playbook for exploiting the npm ecosystem was exposed on the dark web, detailing how to build a blockchain-powered botnet.
Security News
NVD’s backlog surpasses 20,000 CVEs as analysis slows and NIST announces new system updates to address ongoing delays.
Security News
Research
A malicious npm package disguised as a WhatsApp client is exploiting authentication flows with a remote kill switch to exfiltrate data and destroy files.