Skip to content

Commit

Permalink
Prettier and vscode settings tweaks (#2503)
Browse files Browse the repository at this point in the history
* Prevent singleQuote for liquid files

* Be prescriptive with formatOnSave
  • Loading branch information
kmeleta authored Apr 10, 2023
1 parent 1e29b3d commit 88d3203
Show file tree
Hide file tree
Showing 2 changed files with 19 additions and 2 deletions.
10 changes: 9 additions & 1 deletion .prettierrc.json
Original file line number Diff line number Diff line change
@@ -1,4 +1,12 @@
{
"printWidth": 120,
"singleQuote": true
"singleQuote": true,
"overrides": [
{
"files": "*.liquid",
"options": {
"singleQuote": false
}
}
]
}
11 changes: 10 additions & 1 deletion .vscode/settings.json
Original file line number Diff line number Diff line change
@@ -1,3 +1,12 @@
{
"editor.formatOnSave": true
"editor.formatOnSave": false,
"[javascript]": {
"editor.formatOnSave": true
},
"[css]": {
"editor.formatOnSave": true
},
"[liquid]": {
"editor.formatOnSave": true
}
}

0 comments on commit 88d3203

Please sign in to comment.