aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMitermayer Reis <mitermayer.reis@gmail.com>2017-07-01 22:04:22 -0700
committermitermayer <mitermayer.reis@gmail.com>2017-07-01 22:30:48 -0700
commitad496348a1526ebac381fb68785af55a177a4aff (patch)
tree65551c75e547bc2f70847ac39d46ed0aeb2fd70b
parenta0c209facddb4e4254de566faf3c0acc416a43ae (diff)
parenta4a1ca5d5bb6c09d56683db3533a77d8a89d0e35 (diff)
downloadvim-prettier-ad496348a1526ebac381fb68785af55a177a4aff.tar.xz
Merge pull request #27 from mitermayer/bugfix-json-parser
bugfix: json parser should not add extra comma to the end
-rw-r--r--ftplugin/json.vim3
-rw-r--r--package.json2
2 files changed, 3 insertions, 2 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
diff --git a/package.json b/package.json
index 1495dee..bd70a0a 100644
--- a/package.json
+++ b/package.json
@@ -1,7 +1,7 @@
{
"name": "vim-prettier",
"author": "Mitermayer Reis <mitermayer.reis@gmail.com>",
- "version": "0.0.7",
+ "version": "0.0.10",
"description": "Vim plugin for prettier",
"repository": {
"type": "git",