Skip to content

Commit

Permalink
fix prettier#77: prettier-js cleanse the code
Browse files Browse the repository at this point in the history
  • Loading branch information
t1anchen committed May 15, 2024
1 parent e9b73e8 commit d4f7fd7
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions prettier-js.el
Original file line number Diff line number Diff line change
Expand Up @@ -183,8 +183,8 @@ a `before-save-hook'."
(with-current-buffer patchbuf
(erase-buffer))
(if (zerop (apply 'call-process
prettier-js-command bufferfile (list (list :file outputfile) errorfile)
nil (append prettier-js-args width-args (list "--stdin" "--stdin-filepath" buffer-file-name))))
prettier-js-command nil (list (list :file outputfile) errorfile)
nil (append prettier-js-args (list bufferfile) width-args (list "--stdin" "--stdin-filepath" buffer-file-name))))
(progn
(call-process-region (point-min) (point-max) "diff" nil patchbuf nil "-n" "--strip-trailing-cr" "-"
outputfile)
Expand Down

0 comments on commit d4f7fd7

Please sign in to comment.