Skip to content

Commit

Permalink
Add Prettier trailingComma config
Browse files Browse the repository at this point in the history
  • Loading branch information
arildm committed May 13, 2024
1 parent 86a4191 commit 7259f7a
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 5 deletions.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
node_modules
.DS_Store
.vscode/
dist
dist-ssr
*.local
Expand Down
7 changes: 2 additions & 5 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -50,13 +50,10 @@ VSCode settings:
"source.fixAll": "explicit"
},
"editor.formatOnSave": true,
"[javascript]": {
"[javascript][typescript][vue]": {
"editor.defaultFormatter": "esbenp.prettier-vscode"
},
"[typescript]": {
"editor.defaultFormatter": "esbenp.prettier-vscode"
},
"[vue]": {
"[json][jsonc]": {
"editor.defaultFormatter": "esbenp.prettier-vscode"
}
}
Expand Down
3 changes: 3 additions & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -56,5 +56,8 @@
"happy-dom": "^12.10.3",
"prettier": "^3.2.4",
"vitest": "^1.2.2"
},
"prettier": {
"trailingComma": "all"
}
}

0 comments on commit 7259f7a

Please sign in to comment.