summaryrefslogtreecommitdiff
path: root/ale_linters
diff options
context:
space:
mode:
authorvindex10 <vindex10@gmail.com>2023-02-02 06:13:52 +0100
committerGitHub <noreply@github.com>2023-02-02 14:13:52 +0900
commit98f466f9ce851edeb99fa14a75fca1f266f62d52 (patch)
tree87e0f11e3a70ddd3bff53651fa4c6dd83f7e8989 /ale_linters
parent599f7b1eda20d48cf0a68c543b9e8d31266010eb (diff)
downloadale-98f466f9ce851edeb99fa14a75fca1f266f62d52.zip
add eslint plugin html for linting js in html files (#4428)
* add eslint plugin html for linting js in html files * fix linting
Diffstat (limited to 'ale_linters')
-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',
+\ })