diff options
author | Yaroslav <contact@yaroslavps.com> | 2020-02-25 14:47:03 +0300 |
---|---|---|
committer | Yaroslav <contact@yaroslavps.com> | 2020-02-25 14:47:03 +0300 |
commit | d16e82d468eb0d5bb1e662ac4812c0ca6fc0fc64 (patch) | |
tree | 6575864b75dc0c9de61b5d523e77dbcff785c998 /.vim/autoload/neomake/makers/ft/typescript.vim | |
parent | 69d47128244a06ee28e4b43191ef9216b04bce13 (diff) | |
download | vimrice-d16e82d468eb0d5bb1e662ac4812c0ca6fc0fc64.tar.gz vimrice-d16e82d468eb0d5bb1e662ac4812c0ca6fc0fc64.zip |
reorganized repo to be easier to use with GNU stow; added script to stow
Diffstat (limited to '.vim/autoload/neomake/makers/ft/typescript.vim')
-rw-r--r-- | .vim/autoload/neomake/makers/ft/typescript.vim | 45 |
1 files changed, 0 insertions, 45 deletions
diff --git a/.vim/autoload/neomake/makers/ft/typescript.vim b/.vim/autoload/neomake/makers/ft/typescript.vim deleted file mode 100644 index 4d011b7..0000000 --- a/.vim/autoload/neomake/makers/ft/typescript.vim +++ /dev/null @@ -1,45 +0,0 @@ -" vim: ts=4 sw=4 et - -function! neomake#makers#ft#typescript#EnabledMakers() abort - return ['tsc', 'tslint'] -endfunction - -function! neomake#makers#ft#typescript#tsc() abort - " tsc should not be passed a single file. - let maker = { - \ 'args': ['--noEmit', '--watch', 'false', '--pretty', 'false'], - \ 'append_file': 0, - \ 'errorformat': - \ '%E%f %#(%l\,%c): error %m,' . - \ '%E%f %#(%l\,%c): %m,' . - \ '%Eerror %m,' . - \ '%C%\s%\+%m' - \ } - let config = neomake#utils#FindGlobFile('tsconfig.json') - if !empty(config) - let maker.args += ['--project', config] - endif - return maker -endfunction - -function! neomake#makers#ft#typescript#tslint() abort - " NOTE: output format changed in tslint 5.12.0. - let maker = { - \ 'args': ['-t', 'prose'], - \ 'errorformat': '%-G,' - \ .'%EERROR: %f:%l:%c - %m,' - \ .'%WWARNING: %f:%l:%c - %m,' - \ .'%EERROR: %f[%l\, %c]: %m,' - \ .'%WWARNING: %f[%l\, %c]: %m', - \ } - let config = neomake#utils#FindGlobFile('tsconfig.json') - if !empty(config) - let maker.args += ['--project', config] - let maker.cwd = fnamemodify(config, ':h') - endif - return maker -endfunction - -function! neomake#makers#ft#typescript#eslint() abort - return neomake#makers#ft#javascript#eslint() -endfunction |