add eslint plugin html for linting js in html files (#4428)

* add eslint plugin html for linting js in html files

* fix linting
This commit is contained in:
vindex10 authored and GitHub committed 2023-02-02 14:13:52 +09:00
1 parent 599f7b1eda
commit 98f466f9ce
3 files changed
+14

No files matched your search

+12
View File
@@ -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',
\ })