Skip to content

Commit 0a87cd7

Browse files
committed
chore(vscode): update extensions and settings for svelte support
1 parent b5a23dd commit 0a87cd7

File tree

2 files changed

+11
-1
lines changed

2 files changed

+11
-1
lines changed

.vscode/extensions.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
{
22
"recommendations": [
33
"dbaeumer.vscode-eslint",
4+
"svelte.svelte-vscode",
45
"stylelint.vscode-stylelint",
56
"vitest.explorer"
67
],

.vscode/settings.json

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,14 @@
11
{
22
"stylelint.validate": [
33
"less",
4-
]
4+
],
5+
// autodetection of Svelte files doesn't work yet in vscode-eslint
6+
// https://github.com/microsoft/vscode-eslint/issues/1468
7+
"eslint.validate": ["svelte"],
8+
// on save let eslint fix all auto-fixable problems
9+
"editor.codeActionsOnSave": {
10+
"source.fixAll": "always"
11+
},
12+
// https://eslint.org/docs/latest/use/configure/configuration-files#experimental-configuration-file-resolution
13+
"eslint.options": { "flags": ["unstable_config_lookup_from_file"] }
514
}

0 commit comments

Comments
 (0)