LoginSignup
2
0

More than 5 years have passed since last update.

Neomakeでtscを使う際にprojectのtsconfigを使うようにする設定

Posted at

結論

let g:neomake_typescript_tsc_maker = {
        \ 'args': [
            \ '--project', getcwd(), '--noEmit'
        \ ],
        \ 'append_file': 0,
        \ 'errorformat':
            \ '%E%f %#(%l\,%c): error %m,' .
            \ '%E%f %#(%l\,%c): %m,' .
            \ '%Eerror %m,' .
            \ '%C%\s%\+%m'
        \ }

補足

'append_file': 0がないと
tsc --project /path/to/project --noEmit /path/to/fileというコマンドが渡されるのだが、tsc--projectオプションを渡すとfile pathを引数にとれないため'append_file': 0としてfile pathを渡さないようにする。

2
0
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
2
0