1.1.1 • Published 5 years ago
laf-hg v1.1.1
Lint and Format HG Commits
Precommit mercurial hook. Make your build stable and code reviews readable.
Description
EsLint + Prettier before HG commit on .js and .jsx files.
Always us hg commands from directory where you have .hg.
It will first format your added and modified files, and then eslint it. In case something failed, you will get a error message. For more information about eslint issues, better would be to execute commit from console.
Usage
Add following script to package.json scripts:
{
"precommit": "laf-hg"
}