ale/ale_linters/javascript/jscs.vim

23 lines
577 B
VimL
Raw Normal View History

" Author: Chris Kyrouac - https://github.com/fijshion
2016-10-03 18:55:55 +00:00
" Description: jscs for JavaScript files
2016-09-14 19:22:29 +00:00
if exists('g:loaded_ale_linters_javascript_jscs')
finish
endif
let g:loaded_ale_linters_javascript_jscs = 1
call ale#linter#Define('javascript', {
\ 'name': 'jscs',
2016-09-14 19:22:29 +00:00
\ 'executable': 'jscs',
\ 'command': 'jscs -r unix -n -',
2016-10-11 14:22:47 +00:00
\ 'callback': 'ale#handlers#HandleUnixFormatAsError',
2016-09-14 19:22:29 +00:00
\})
call ale#linter#Define('javascript.jsx', {
\ 'name': 'jscs',
\ 'executable': 'jscs',
\ 'command': 'jscs -r unix -n -',
2016-10-11 14:22:47 +00:00
\ 'callback': 'ale#handlers#HandleUnixFormatAsError',
\})