From 98f466f9ce851edeb99fa14a75fca1f266f62d52 Mon Sep 17 00:00:00 2001 From: vindex10 Date: Thu, 2 Feb 2023 06:13:52 +0100 Subject: add eslint plugin html for linting js in html files (#4428) * add eslint plugin html for linting js in html files * fix linting --- ale_linters/html/eslint.vim | 12 ++++++++++++ 1 file changed, 12 insertions(+) create mode 100644 ale_linters/html/eslint.vim (limited to 'ale_linters/html') 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 +" 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', +\ }) -- cgit v1.2.3