Skip to content

Commit 4e4362f

Browse files
committed
readme: add sublime text integration information
1 parent 3eb3ed5 commit 4e4362f

File tree

1 file changed

+22
-2
lines changed

1 file changed

+22
-2
lines changed

README.md

Lines changed: 22 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -66,11 +66,31 @@ Then, you'll need to tell the ESLint extension to also lint files with language
6666
],
6767
```
6868

69-
Cross your fingers and give it a go!
69+
Reload VS Code and give it a go!
70+
71+
### Sublime Text
72+
73+
You'll need the [SublimeLinter](https://github.com/SublimeLinter/SublimeLinter) and [SublimeLinter-eslint](https://github.com/SublimeLinter/SublimeLinter-eslint) package installed.
74+
75+
If you're using a different extension than `.html` for your Svelte components, you'll need to configure Sublime to associate it with the `text.html` syntax.
76+
77+
Then, you'll need to tell SublimeLinter-eslint to lint entire files with the `text.html` syntax, and not just the contents of their `<script>` tags (which is the default). In your SublimeLinter configuration, you'll need to add `text.html` to `linters.eslint.selector`. Starting with the default values, this would mean:
78+
79+
```
80+
{
81+
"linters": {
82+
"eslint": {
83+
"selector": "source.js - meta.attribute-with-value, text.html"
84+
}
85+
}
86+
}
87+
```
88+
89+
Reload Sublime and give it a go!
7090

7191
### Other integrations
7292

73-
If you've gotten this plugin to work with other editors, let me know how you did it!
93+
If you've gotten this plugin to work with other editors, please let us know!
7494

7595
## License
7696

0 commit comments

Comments
 (0)