Skip to content

BBleae/eslint-pre-commit

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

EsLint-Pre-Commit-Hook

Pre-commit hook for Es-Lint

npm (scoped) install size downloads
dependencies devDependencies
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). But you can customize its behaviour by setting eslintPreCommitBaseCommand field in your package.json file:

    "eslintPreCommitBaseCommand": "eslint --max-warnings=0"

The default value of the above option is "eslint". Run git commit ... on some js(x) or ts(x) files and watch the console to see how this works.

About

Pre-commit hook for Es-Lint

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages

  • JavaScript 90.8%
  • Shell 9.2%