Skip to content

Commit 8a34f9b

Browse files
authored
remove section about html language in VS Code integration (#112)
1 parent bce926e commit 8a34f9b

File tree

1 file changed

+2
-14
lines changed

1 file changed

+2
-14
lines changed

INTEGRATIONS.md

Lines changed: 2 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -2,30 +2,18 @@
22

33
You'll need the [ESLint](https://marketplace.visualstudio.com/items?itemName=dbaeumer.vscode-eslint) extension installed.
44

5-
Unless you're using `.html` for your Svelte components, you'll need to configure `files.associations` to associate the appropriate file extension with the `html` language. For example, to associate `.svelte`, put this in your `settings.json`:
6-
7-
```json
8-
{
9-
"files.associations": {
10-
"*.svelte": "html"
11-
}
12-
}
13-
```
14-
15-
Then, you'll need to tell the ESLint extension to also lint files with language `html`. If you haven't adjusted the `eslint.validate` setting, it defaults to `[ "javascript", "javascriptreact" ]`, so put this in your `settings.json`:
5+
Then, you'll need to tell the ESLint extension to also lint files with language `svelte`. If you haven't adjusted the `eslint.validate` setting, it defaults to `[ "javascript", "javascriptreact" ]`, so put this in your `settings.json`:
166

177
```json
188
{
199
"eslint.validate": [
2010
"javascript",
2111
"javascriptreact",
22-
"html"
12+
"svelte"
2313
]
2414
}
2515
```
2616

27-
If you are using an extension that provides Svelte syntax highlighting, don't associate `*.svelte` files with the `html` language, and instead enable the ESLint extension on `"svelte"`.
28-
2917
Reload VS Code and give it a go!
3018

3119
# Atom

0 commit comments

Comments
 (0)