Skip to content

A simple way to run eslint on staged changes.

Notifications You must be signed in to change notification settings

nrn/eslint-staged

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 
 
 

Repository files navigation

eslint-staged

A simple way to run eslint on staged changes.

npm install --save-dev eslint-staged

Pairs great with husky. Install husky, and add a precommit script to your package.json:

{
  "scripts": {
    "precommit": "eslint-staged"
  }
}

This lets you make sure you always lint the changes you're actually committing, not just your working tree. Run it any time with npm run -s precommit.

About

A simple way to run eslint on staged changes.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published