Security News
PyPI’s New Archival Feature Closes a Major Security Gap
PyPI now allows maintainers to archive projects, improving security and helping users make informed decisions about their dependencies.
@mccraveiro/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
The npm package @mccraveiro/lint-diff receives a total of 2 weekly downloads. As such, @mccraveiro/lint-diff popularity was classified as not popular.
We found that @mccraveiro/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.
Security News
PyPI now allows maintainers to archive projects, improving security and helping users make informed decisions about their dependencies.
Research
Security News
Malicious npm package postcss-optimizer delivers BeaverTail malware, targeting developer systems; similarities to past campaigns suggest a North Korean connection.
Security News
CISA's KEV data is now on GitHub, offering easier access, API integration, commit history tracking, and automated updates for security teams and researchers.