New Research: Supply Chain Attack on Axios Pulls Malicious Dependency from npm.Details →
Socket
Book a DemoSign in
Socket

tslint-gitstatus

Package Overview
Dependencies
Maintainers
1
Versions
9
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

tslint-gitstatus

tslint-gitstatus

latest
npmnpm
Version
0.4.0
Version published
Weekly downloads
0
Maintainers
1
Weekly downloads
 
Created
Source

tslint-gitstatus

Please use v5.4.3 or higher version of tslint

Using current git status to find out modfied and added files passing tslint, to prevent lint the whole repository again and again. This is a nice package to use along with git precommit.

Install

npm install tslint-gitstatus

Command line usage

Install global

npm i -g tslint-gitstatus

Usage

  Usage: tslintgs [options] [command]

  Commands:

    help  Display help

  Options:

    -e, --ext [value]     extension names, can use multiple extensions seperate with comma (defaults to "ts,tsx")
    -g, --git [value]     your git directory, where your .git exist (defaults to "./")
    -h, --help            Output usage information
    -t, --tslint [value]  tslint.json file path (defaults to "./tslint.json")
    -v, --version         Output the version number

API

TslintGitStatus(tslintrcPath, gitPath, extension)

  • tslintrcPath: path to your tslintrc file
  • gitPath: path to your .git
  • extension string | string[]: which kind of extensions do you want to lint with tslint.

Usage

// TslintGitStatus(<tslint.json path>, <git repository path>, <extension default 'ts'>)
new TslintGitStatus(resolve(__dirname, "./tslint.json"), resolve(__dirname, "../"), ".ts").start()
      .then((result) => {
        // success no lint error, done lint
      })
      .catch((err) => {
        // err, when lint failed
      });

Eslint users

  • https://github.com/Canner/eslint-gitstatus

License

MIT

FAQs

Package last updated on 19 Sep 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