Skip to content

Commit 2eeb43f

Browse files
committed
chore: format script add --experimental-cli option
1 parent 88561ab commit 2eeb43f

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

.prettierrc.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,14 +3,14 @@
33
"singleQuote": true,
44
"overrides": [
55
{
6-
"files": ["*.json5"],
6+
"files": ["**/*.json5"],
77
"options": {
88
"singleQuote": false,
99
"quoteProps": "preserve"
1010
}
1111
},
1212
{
13-
"files": ["*.yml"],
13+
"files": ["**/*.yml"],
1414
"options": {
1515
"singleQuote": false
1616
}

package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@
2020
"scripts": {
2121
"preinstall": "npx only-allow pnpm",
2222
"postinstall": "simple-git-hooks",
23-
"format": "prettier --write --cache .",
23+
"format": "prettier --write --cache . --experimental-cli",
2424
"lint": "eslint --cache . --concurrency auto",
2525
"typecheck": "tsc -p scripts && pnpm -r --parallel run typecheck",
2626
"test": "pnpm test-unit && pnpm test-serve && pnpm test-build",
@@ -78,7 +78,7 @@
7878
},
7979
"lint-staged": {
8080
"*": [
81-
"prettier --write --cache --ignore-unknown"
81+
"prettier --write --cache --ignore-unknown --experimental-cli"
8282
],
8383
"packages/*/{src,types}/**/*.ts": [
8484
"eslint --cache --fix --concurrency auto"

0 commit comments

Comments
 (0)