Skip to content

Commit

Permalink
Added "how to activate linter on Sublime Text" (#624)
Browse files Browse the repository at this point in the history
  • Loading branch information
isnifer authored and michalsnik committed Nov 6, 2018
1 parent ba3ba3d commit cd26c7e
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -289,6 +289,16 @@ The `vue-eslint-parser` uses the parser which is set by `parserOptions.parser` t
- 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" ]`
- 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.
- 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`.
- 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:
```json
{
"linters": {
"eslint": {
"selector": "source.js, text.html.vue"
}
}
}
```

## :anchor: Semantic Versioning Policy

Expand Down

0 comments on commit cd26c7e

Please sign in to comment.