From a4a1ca5d5bb6c09d56683db3533a77d8a89d0e35 Mon Sep 17 00:00:00 2001 From: mitermayer Date: Sat, 1 Jul 2017 21:57:57 -0700 Subject: bugfix: json parser should not add extra comma to the end - adding extra comma to the end properties cause creates invalid json --- ftplugin/json.vim | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/ftplugin/json.vim b/ftplugin/json.vim index b5751ca..179e630 100644 --- a/ftplugin/json.vim +++ b/ftplugin/json.vim @@ -1,5 +1,6 @@ let b:prettier_ft_default_args = { - \ 'parser': 'json' + \ 'parser': 'json', + \ 'trailingComma': 'none' \ } augroup Prettier -- cgit v1.3