Skip to content

Commit 47eb836

Browse files
authored
add format check to validate
Fixes #64
1 parent 3f916e8 commit 47eb836

1 file changed

Lines changed: 1 addition & 0 deletions

File tree

src/scripts/validate.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,7 @@ const useDefaultScripts = typeof validateScripts !== 'string'
1818
const scripts = useDefaultScripts
1919
? {
2020
build: ifScript('build', 'npm run build --silent'),
21+
format: precommit ? null : ifScript('format', 'npm run format --list-different'),
2122
lint: precommit ? null : ifScript('lint', 'npm run lint --silent'),
2223
test: precommit
2324
? null

0 commit comments

Comments
 (0)