es

eslint-staged

A simple way to run eslint on staged changes.

Showing:

Popularity

Downloads/wk

209

GitHub Stars

3

Maintenance

Last Commit

4yrs ago

Contributors

1

Package

Dependencies

0

Size (min+gzip)

0.4KB

License

ISC

Type Definitions

Tree-Shakeable

No?

Categories

Readme

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.

Rate & Review

Great Documentation0
Easy to Use0
Performant0
Highly Customizable0
Bleeding Edge0
Responsive Maintainers0
Poor Documentation0
Hard to Use0
Slow0
Buggy0
Abandoned0
Unwelcoming Community0
100