summaryrefslogtreecommitdiff
path: root/ale_linters/pug/puglint.vim
blob: be1be1900dc321962e8ae04c7574f4aceac413b8 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
" Author: w0rp - <devw0rp@gmail.com>
" Description: pug-lint for checking Pug/Jade files.

if exists('g:loaded_ale_linters_pug_puglint')
    finish
endif

let g:loaded_ale_linters_pug_puglint = 1

call ale#linter#Define('pug', {
\   'name': 'puglint',
\   'executable': 'pug-lint',
\   'output_stream': 'stderr',
\   'command': g:ale#util#stdin_wrapper . ' .pug pug-lint -r inline',
\   'callback': 'ale#handlers#HandleUnixFormatAsError',
\})