diff options
| author | mitermayer <mitermayer.reis@gmail.com> | 2017-07-01 21:57:57 -0700 |
|---|---|---|
| committer | mitermayer <mitermayer.reis@gmail.com> | 2017-07-01 21:57:57 -0700 |
| commit | a4a1ca5d5bb6c09d56683db3533a77d8a89d0e35 (patch) | |
| tree | b3633c14d7a0db35d8d349f48aae54c990dd2f92 | |
| parent | a0c209facddb4e4254de566faf3c0acc416a43ae (diff) | |
| download | vim-prettier-a4a1ca5d5bb6c09d56683db3533a77d8a89d0e35.tar.xz | |
bugfix: json parser should not add extra comma to the end
- adding extra comma to the end properties cause creates invalid json
| -rw-r--r-- | ftplugin/json.vim | 3 |
1 files changed, 2 insertions, 1 deletions
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 |
