Research
Security News
Malicious npm Package Targets Solana Developers and Hijacks Funds
A malicious npm package targets Solana developers, rerouting funds in 2% of transactions to a hardcoded address.
@ethanresnick/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 lint-diff
Install eslint
and add your eslint configuration file.
Use it:
# This will lint the last commit
$ lint-diff HEAD^..HEAD
$ lint-diff HEAD~3..HEAD
$ lint-diff HEAD
# or
$ lint-diff
# This environment variable will be available in any Travis build
$ lint-diff $TRAVIS_COMMIT_RANGE
FAQs
:nail_care: Run eslint only in the changed parts of the code
We found that @ethanresnick/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 malicious npm package targets Solana developers, rerouting funds in 2% of transactions to a hardcoded address.
Security News
Research
Socket researchers have discovered malicious npm packages targeting crypto developers, stealing credentials and wallet data using spyware delivered through typosquats of popular cryptographic libraries.
Security News
Socket's package search now displays weekly downloads for npm packages, helping developers quickly assess popularity and make more informed decisions.