Skip to content

Commit cd75935

Browse files
committed
ci: fail format scripts on a warning
1 parent 8ef7d79 commit cd75935

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

package.json

+2-2
Original file line numberDiff line numberDiff line change
@@ -32,8 +32,8 @@
3232
"build": "npm run build:esm && npm run build:cjs",
3333
"build:cjs": "esbuild src/index.ts --bundle --target=ES2022 --platform=node --outfile=dist/index.cjs",
3434
"build:esm": "tsc",
35-
"format": "prettier --ignore-path .gitignore --write \"**/*.{vue,css,less,scss,html,htm,json,md,markdown,yml,yaml}\" --loglevel warn",
36-
"format:check": "prettier --ignore-path .gitignore --check \"**/*.{vue,css,less,scss,html,htm,json,md,markdown,yml,yaml}\" --loglevel warn",
35+
"format": "prettier --ignore-path .gitignore --write \"**/*.{vue,css,less,scss,html,htm,json,md,markdown,yml,yaml}\" --log-level warn",
36+
"format:check": "prettier --ignore-path .gitignore --check \"**/*.{vue,css,less,scss,html,htm,json,md,markdown,yml,yaml}\" --log-level warn",
3737
"lint": "npm run format:check && xo",
3838
"lint:fix": "npm run format && xo --fix",
3939
"prepare": "husky install .github/husky",

0 commit comments

Comments
 (0)