pre-commit 315 B

1234567891011121314
  1. #!/bin/sh
  2. . "$(dirname "$0")/_/husky.sh"
  3. . "$(dirname "$0")/common.sh"
  4. [ -n "$CI" ] && exit 0
  5. # Check the file name
  6. # ! ls-lint cannot be used normally in mac pro of M1 system.
  7. npm run lint:ls-lint
  8. # Format and submit code according to lintstagedrc.js configuration
  9. npm run lint:lint-staged
  10. npm run lint:pretty