mirror of
https://github.com/dense-analysis/ale.git
synced 2025-12-06 12:44:23 +08:00
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:
12
ale_linters/html/eslint.vim
Normal file
12
ale_linters/html/eslint.vim
Normal 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',
|
||||
\ })
|
||||
@@ -255,6 +255,7 @@ Notes:
|
||||
* `alex`
|
||||
* `angular`
|
||||
* `cspell`
|
||||
* `eslint`
|
||||
* `fecs`
|
||||
* `html-beautify`
|
||||
* `htmlhint`
|
||||
|
||||
@@ -264,6 +264,7 @@ formatting.
|
||||
* [alex](https://github.com/get-alex/alex)
|
||||
* [angular](https://www.npmjs.com/package/@angular/language-server)
|
||||
* [cspell](https://github.com/streetsidesoftware/cspell/tree/main/packages/cspell)
|
||||
* [eslint](https://github.com/BenoitZugmeyer/eslint-plugin-html)
|
||||
* [fecs](http://fecs.baidu.com/)
|
||||
* [html-beautify](https://beautifier.io/)
|
||||
* [htmlhint](http://htmlhint.com/)
|
||||
|
||||
Reference in New Issue
Block a user