Skip to content

Instantly share code, notes, and snippets.

@reacto11mecha
Last active June 16, 2022 19:48
Show Gist options
  • Select an option

  • Save reacto11mecha/6b1f9a3efa0d1bdde33701b3e4575185 to your computer and use it in GitHub Desktop.

Select an option

Save reacto11mecha/6b1f9a3efa0d1bdde33701b3e4575185 to your computer and use it in GitHub Desktop.
Husky installer and other stuff
pnpm install --save-dev @commitlint/{config-conventional,cli} husky prettier eslint eslint-config-prettier
npm init @eslint/config
echo "module.exports = {extends: ['@commitlint/config-conventional']}" > commitlint.config.js
npx husky install
npx husky add .husky/commit-msg 'npx --no -- commitlint --edit "$1"'
npx mrm@2 lint-staged
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment