Allow tsfmt to use the local project's config.

By adding `--baseDir=.` to the command line arguments.
This commit is contained in:
Overmind JIANG 2016-02-17 15:30:23 +08:00 committed by syl20bnr
parent 9f57a0da63
commit 5eac955cd3

View file

@ -89,7 +89,7 @@
(progn
(with-current-buffer outputbuf (erase-buffer))
(write-region nil nil tmpfile)
(if (zerop (apply 'call-process "tsfmt" nil outputbuf nil (list tmpfile)))
(if (zerop (apply 'call-process "tsfmt" nil outputbuf nil (list "--baseDir=." tmpfile)))
(let ((p (point)))
(save-excursion
(with-current-buffer (current-buffer)