Skip to content

Commit 1e5bc9f

Browse files
authored
add -- to pass args to format
1 parent 47eb836 commit 1e5bc9f

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/scripts/validate.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +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'),
21+
format: precommit ? null : ifScript('format', 'npm run format --silent -- --list-different'),
2222
lint: precommit ? null : ifScript('lint', 'npm run lint --silent'),
2323
test: precommit
2424
? null

0 commit comments

Comments
 (0)