Skip to content

Commit

Permalink
fix: format script is not applied to newly added files (#13)
Browse files Browse the repository at this point in the history
  • Loading branch information
HenryQW authored Jan 30, 2024
1 parent be31c8b commit 220f3d9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
"type": "module",
"scripts": {
"lint": "remark -i .gitignore . --quiet --frail",
"format": "git diff --name-only -- '*.md' | while read file; do remark \"$file\" --output \"$file\"; done"
"format": "git ls-files --modified --others --exclude-standard '*.md' | while read file; do remark \"$file\" --output \"$file\"; done"
},
"remarkConfig": {
"settings": {
Expand Down

0 comments on commit 220f3d9

Please sign in to comment.