New Research: Supply Chain Attack on Axios Pulls Malicious Dependency from npm.Details →
Socket
Book a DemoSign in
Socket

eslint-pre-commit-hook

Package Overview
Dependencies
Maintainers
1
Versions
7
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

eslint-pre-commit-hook

Pre-commit hook for ESLint. Check eslint issues before commit.

latest
Source
npmnpm
Version
3.0.3
Version published
Weekly downloads
47
-28.79%
Maintainers
1
Weekly downloads
 
Created
Source

ESLint Pre-Commit Hook

Pre-commit hook for ESLint

npm (scoped) install size downloads
license Forks Stars

npm i eslint-pre-commit-hook -D

or:

yarn add eslint-pre-commit-hook -D

Usage

There is no further requirements after installation. It automatically sets pre-commit hook after installation. Check .git/hooks/pre-commit to sure. Also, make sure it's executable.

You can customize its default behaviour by setting breakOnWarningsToo field in your package.json file:

  "eslintPreCommit": {
    "breakOnWarningsToo": true
  }

Then it'll be failed on both errors and warnings (no errors or warnings allowed).

Keywords

pre-commit

FAQs

Package last updated on 12 Mar 2023

Did you know?

Socket

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