Skip to content

Commit d5f0df1

Browse files
fix: format script glob only matched directories (#219)
The format script used 'prettier --write src/**/' where the trailing slash made the glob match directories only, so prettier never actually formatted files. Change to 'prettier --write .' to mirror the existing lint script ('prettier --check .'). .prettierignore already excludes generated content. Closes #216 Co-authored-by: dobby-yivi-agent[bot] <275734547+dobby-yivi-agent[bot]@users.noreply.github.com>
1 parent 7e69b9d commit d5f0df1

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010
"check": "svelte-kit sync && svelte-check --tsconfig ./tsconfig.json",
1111
"check:watch": "svelte-kit sync && svelte-check --tsconfig ./tsconfig.json --watch",
1212
"lint": "prettier --check . && eslint .",
13-
"format": "prettier --write src/**/",
13+
"format": "prettier --write .",
1414
"prepare": "husky"
1515
},
1616
"devDependencies": {

0 commit comments

Comments
 (0)