Socket
Socket
Sign inDemoInstall

eslint-staged

Package Overview
Dependencies
0
Maintainers
1
Versions
2
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

    eslint-staged

Run eslint on staged changes.


Version published
Weekly downloads
159
increased by18.66%
Maintainers
1
Install size
3.04 kB
Created
Weekly downloads
 

Readme

Source

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.

FAQs

Last updated on 13 Feb 2017

Did you know?

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

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc