From 5ca8836b5823f57148b6b39ab0bda194df5b6334 Mon Sep 17 00:00:00 2001 From: Anton Kuznetsov Date: Tue, 30 Oct 2018 15:20:14 +0300 Subject: [PATCH] Added "how to activate linter on Sublime Text" --- README.md | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/README.md b/README.md index 1592d02a3..4098127ef 100644 --- a/README.md +++ b/README.md @@ -288,6 +288,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