Package Exports
- console-log-checker
This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (console-log-checker) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.
Readme
console-log-checker
The main goal for this package is to be used with git hooks like pre-commit or pre-push to prevend console.log debugging in your code.
We recommend to use this package with husky.
How to use
1. Install console-log-checker and husky
npm install --save-dev husky console-log-checkeror
yarn add husky console-log-checker --dev2. Active husky hooks:
npx husky installor
yarn husky install3. Add husky hook for console-log-checker:
npx husky add .husky/pre-commit "npx console-log-checker"or
yarn husky add .husky/pre-commit "npx console-log-checker"You are ready to go!