
Security News
Crates.io Implements Trusted Publishing Support
Crates.io adds Trusted Publishing support, enabling secure GitHub Actions-based crate releases without long-lived API tokens.
eslint-git-integration
Advanced tools
ESLint integration with Git to allow linting only changed files inside a Git repository.
This tool allows linting only changed files inside a Git repository.
This tool uses git diff
to obtain list of changed JavaScript files in the repository and then lint them with eslint
.
var eslintGit = require('eslint-git-integration');
eslintGit.lintChanges({
stagedFilesOnly: true,
showColors: true,
debug: true
})
.then(function () {
// Success commands
})
.catch(function () {
// Failure commands
});
stagedFilesOnly: If you want to check only the changed files which are staged.
showColors: If you want to show eslint
results with colors.
debug: If you want to see additional information.
FAQs
ESLint integration with Git to allow linting only changed files inside a Git repository.
We found that eslint-git-integration demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 2 open source maintainers 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
Crates.io adds Trusted Publishing support, enabling secure GitHub Actions-based crate releases without long-lived API tokens.
Research
/Security News
Undocumented protestware found in 28 npm packages disrupts UI for Russian-language users visiting Russian and Belarusian domains.
Research
/Security News
North Korean threat actors deploy 67 malicious npm packages using the newly discovered XORIndex malware loader.