Skip to content

Commit f00de69

Browse files
committed
fix(prettier): drop --stdin parameter
This changed in Prettier 2.0, and apparently was never needed. See https://prettier.io/blog/2020/03/21/2.0.0.html#remove---stdin-7668httpsgithubcomprettierprettierpull7668-by-thorn0httpsgithubcomthorn0
1 parent 613b979 commit f00de69

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

autoload/codefmt/prettier.vim

+1-1
Original file line numberDiff line numberDiff line change
@@ -65,7 +65,7 @@ function! codefmt#prettier#GetFormatter() abort
6565
" {endline}.
6666
function l:formatter.FormatRange(startline, endline) abort
6767
let l:cmd = codefmt#formatterhelpers#ResolveFlagToArray(
68-
\ 'prettier_executable') + ['--stdin', '--no-color']
68+
\ 'prettier_executable') + ['--no-color']
6969

7070
" prettier is able to automatically choose the best parser if the filepath
7171
" is provided. Otherwise, fall back to the previous default: babylon.

0 commit comments

Comments
 (0)