How to Install lint-staged NPM Packages on Ubuntu / Debian

How to Install lint-staged software package in NPM Packages

lint-staged : Lint files staged by git. You can installing lint-staged npm packages, there are two ways to install this module locally and globaly. -g option is specified to global. Execute the below command.

$ sudo npm install lint-staged
$ sudo npm install -g lint-staged

If want to update the lint-staged package execute the command as below,

$ sudo npm update lint-staged

Update package globally,

$ npm install -g lint-staged

Git clone:

$ sudo  git clone https://github.com/rektide/lint-staged.git
$ sudo  npm install -g ./lint-staged

lint-staged@5.0.0 /usr/lib/node_modules/lint-staged

How to remove lint-staged package :

You can uninstall or remove this package from your node_modules run the command as below,

$ sudo npm uninstall lint-staged

Basic Information of lint-staged NPM Package:

Package Name lint-staged
Version 5.0.0
Description Lint files staged by git
Released Date 2017-11-11T08:24:34.487Z
Published by okonet
How to Learn https://www.npmjs.com/package/lint-staged/tutorial