chore: add lint-staged + husky

This commit is contained in:
Sebastian Rindom
2021-10-12 22:09:46 +02:00
parent f02cb638db
commit 30b6a793f1
6 changed files with 643 additions and 23 deletions

11
scripts/on-lint-error.js Normal file
View File

@@ -0,0 +1,11 @@
console.log(`
Oops! Medusa noticed some lint or style warnings in the code for this
commit. Your changes have been committed, but you should fix the warnings before
creating a pull request.
Use 'npm run lint' to manually re-run these checks. You can also disable these
checks:
- for a single commit: git commit --no-verify
- for all future commits: npm run hooks:uninstall
`)