Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

eslint-git-integration

Package Overview
Dependencies
Maintainers
2
Versions
2
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

eslint-git-integration

ESLint integration with Git to allow linting only changed files inside a Git repository.

  • 1.1.0
  • latest
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
0
Maintainers
2
Weekly downloads
 
Created
Source

ESLint Git Integration

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.

Example

var eslintGit = require('eslint-git-integration');

eslintGit.lintChanges({
        stagedFilesOnly: true,
        showColors: true,
        debug: true
    })
    .then(function () {
        // Success commands
    })
    .catch(function () {
        // Failure commands
    });

Options

  • 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

Package last updated on 17 Nov 2017

Did you know?

Socket

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.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc