eslint-pre-commit-hook

3.0.3 • Public • Published

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).

Package Sidebar

Install

npm i eslint-pre-commit-hook

Weekly Downloads

276

Version

3.0.3

License

MIT

Unpacked Size

14 kB

Total Files

10

Last publish

Collaborators

  • mirismaili