Skip to content

Commit c0018b6

Browse files
committed
build(editor): add VS Code config
Make it easy to initialize the development environment.
1 parent 02e296e commit c0018b6

File tree

3 files changed

+36
-1
lines changed

3 files changed

+36
-1
lines changed

.gitignore

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,6 @@ package-lock.json
1616

1717
# IDE configurations
1818
.idea
19-
.vscode
2019

2120
# Misc
2221
assets/js/dist

.vscode/extensions.json

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
{
2+
"recommendations": [
3+
// Liquid tags auto-complete
4+
"killalau.vscode-liquid-snippets",
5+
// Liquid syntax highlighting and formatting
6+
"Shopify.theme-check-vscode",
7+
// Common formatter
8+
"esbenp.prettier-vscode",
9+
"foxundermoon.shell-format",
10+
"stylelint.vscode-stylelint"
11+
]
12+
}

.vscode/settings.json

Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
1+
{
2+
// Prettier
3+
"editor.defaultFormatter": "esbenp.prettier-vscode",
4+
"editor.formatOnSave": true,
5+
"prettier.trailingComma": "none",
6+
// Shopify Liquid
7+
"files.associations": {
8+
"*.html": "liquid"
9+
},
10+
// Formatter
11+
"[html][liquid]": {
12+
"editor.defaultFormatter": "Shopify.theme-check-vscode"
13+
},
14+
"[shellscript]": {
15+
"editor.defaultFormatter": "foxundermoon.shell-format"
16+
},
17+
// Disable vscode built-in stylelint
18+
"css.validate": false,
19+
"scss.validate": false,
20+
"less.validate": false,
21+
// Stylint extension settings
22+
"stylelint.snippet": ["css", "less", "postcss", "scss"],
23+
"stylelint.validate": ["css", "less", "postcss", "scss"]
24+
}

0 commit comments

Comments
 (0)