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