Skip to content

Commit

Permalink
feat(prettier): add settings to package.json (#337)
Browse files Browse the repository at this point in the history
  • Loading branch information
ybiquitous authored Feb 1, 2019
1 parent a536e25 commit 761c33e
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 1 deletion.
2 changes: 1 addition & 1 deletion lib/init.js
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ const initCommand = (baseDir, logger) => {
});

// update other keys
const keys = ["husky", "lint-staged", "remarkConfig"];
const keys = ["husky", "lint-staged", "prettier", "remarkConfig"];
keys.forEach(key => {
if (!(key in packageInfo)) {
packageInfo[key] = {};
Expand Down
3 changes: 3 additions & 0 deletions test/fixtures/package-empty_expected.json
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,9 @@
},
"ignore": ["CHANGELOG.md"]
},
"prettier": {
"trailingComma": "es5"
},
"remarkConfig": {
"plugins": [
"remark-preset-lint-markdown-style-guide",
Expand Down
3 changes: 3 additions & 0 deletions test/fixtures/package-normal_expected.json
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,9 @@
},
"ignore": ["CHANGELOG.md"]
},
"prettier": {
"trailingComma": "es5"
},
"remarkConfig": {
"plugins": [
"remark-preset-lint-markdown-style-guide",
Expand Down

0 comments on commit 761c33e

Please sign in to comment.