chore(tests): pass --yes flag to npx

This commit is contained in:
Gabe Kangas
2025-05-20 20:27:45 -07:00
parent f6c13bdc69
commit 594b8efbe7
+4 -4
View File
@@ -23,21 +23,21 @@ pre-commit:
js-linter:
glob: '*.{js,ts,jsx,tsx}'
root: web/
run: npx eslint --fix --ext {staged_files}
run: npx --yes eslint --fix --ext {staged_files}
stage_fixed: true
prettier:
glob: '*.{js,ts,jsx,tsx,css,scss}'
run: npx prettier --write {staged_files}
run: npx --yes prettier --write {staged_files}
staged_fixed: true
css-linter:
glob: '*.{css,scss}'
root: web/
run: npx stylelint --fix {staged_files}
run: npx --yes stylelint --fix {staged_files}
stage_fixed: true
js-unused:
glob: '*.{js,ts,jsx,tsx}'
root: web/
run: npx knip --include dependencies,files,exports
run: npx --yes knip --include dependencies,files,exports
go-fmt:
glob: '*.go'
run: go tool gofumpt -l -w {staged_files}