diff options
Diffstat (limited to 'ale_linters/json5')
-rw-r--r-- | ale_linters/json5/eslint.vim | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/ale_linters/json5/eslint.vim b/ale_linters/json5/eslint.vim new file mode 100644 index 00000000..6207f2d7 --- /dev/null +++ b/ale_linters/json5/eslint.vim @@ -0,0 +1,16 @@ +" Author: João Pesce <joao@pesce.cc> +" Description: eslint for JSON5 files. +" +" Requires eslint-plugin-jsonc or a similar plugin to work +" +" Uses the same funtcions as ale_linters/javascript/eslint.vim by w0rp +" <devw0rp@gmail.com> + +call ale#linter#Define('json5', { +\ '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', +\}) |