eslint-staged

1.0.1 • Public • Published

eslint-staged

A simple way to run eslint on staged changes.

npm install --save-dev eslint-staged

Pairs great with (husky)[npm.im/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.

Versions

Current Tags

VersionDownloads (Last 7 Days)Tag
1.0.1479latest

Version History

VersionDownloads (Last 7 Days)Published
1.0.1479
1.0.00

Package Sidebar

Install

npm i eslint-staged

Weekly Downloads

479

Version

1.0.1

License

ISC

Last publish

Collaborators

  • nrn