summaryrefslogtreecommitdiff
path: root/ale_linters/html/eslint.vim
diff options
context:
space:
mode:
Diffstat (limited to 'ale_linters/html/eslint.vim')
-rw-r--r--ale_linters/html/eslint.vim12
1 files changed, 12 insertions, 0 deletions
diff --git a/ale_linters/html/eslint.vim b/ale_linters/html/eslint.vim
new file mode 100644
index 00000000..699f5301
--- /dev/null
+++ b/ale_linters/html/eslint.vim
@@ -0,0 +1,12 @@
+" Author: Victor Ananyev <vindex10@gmail.com>
+" Description: eslint for js snippets in HTML files
+
+
+call ale#linter#Define('html', {
+\ 'name': 'eslint',
+\ 'output_stream': 'both',
+\ 'executable': function('ale#handlers#eslint#GetExecutable'),
+\ 'cwd': function('ale#handlers#eslint#GetCwd'),
+\ 'command': function('ale#handlers#eslint#GetCommand'),
+\ 'callback': 'ale#handlers#eslint#HandleJSON',
+\ })