Skip to content

Commit cd26c7e

Browse files
isnifermichalsnik
authored andcommitted
Added "how to activate linter on Sublime Text" (#624)
1 parent ba3ba3d commit cd26c7e

File tree

1 file changed

+10
-0
lines changed

1 file changed

+10
-0
lines changed

README.md

+10
Original file line numberDiff line numberDiff line change
@@ -289,6 +289,16 @@ The `vue-eslint-parser` uses the parser which is set by `parserOptions.parser` t
289289
- VSCode targets only JavaScript or HTML files by default. You have to add `"vue"` to the `"eslint.validate"` array in vscode settings. e.g. `"eslint.validate": [ "javascript", "javascriptreact", "vue" ]`
290290
- If you use `Vetur` plugin in VSCode - set `"vetur.validation.template": false` to avoid default Vetur template validation. Check out [vetur documentation](https://github.com/vuejs/vetur/blob/master/docs/linting-error.md) for more info.
291291
- For Atom editor, you need to go into Settings -> Packages -> linter-eslint, under the option “List of scopes to run eslint on”, add `text.html.vue`.
292+
- For Sublime Text, you need to open command-pallete via cmd+shift+p (cmd => ctrl for windows) and type "Preferences: SublimeLinter Settings", paste to the config on the right side:
293+
```json
294+
{
295+
"linters": {
296+
"eslint": {
297+
"selector": "source.js, text.html.vue"
298+
}
299+
}
300+
}
301+
```
292302

293303
## :anchor: Semantic Versioning Policy
294304

0 commit comments

Comments
 (0)