Skip to content

Commit

Permalink
feat(remark): add settings to package.json (#336)
Browse files Browse the repository at this point in the history
  • Loading branch information
ybiquitous committed Feb 1, 2019
1 parent df7e35f commit a536e25
Show file tree
Hide file tree
Showing 3 changed files with 19 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"];
const keys = ["husky", "lint-staged", "remarkConfig"];
keys.forEach(key => {
if (!(key in packageInfo)) {
packageInfo[key] = {};
Expand Down
9 changes: 9 additions & 0 deletions test/fixtures/package-empty_expected.json
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,15 @@
},
"ignore": ["CHANGELOG.md"]
},
"remarkConfig": {
"plugins": [
"remark-preset-lint-markdown-style-guide",
"remark-preset-lint-recommended",
"remark-lint-first-heading-level",
"remark-lint-no-tabs",
"remark-validate-links"
]
},
"commitlint": {
"extends": ["@commitlint/config-conventional"]
},
Expand Down
9 changes: 9 additions & 0 deletions test/fixtures/package-normal_expected.json
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,15 @@
},
"ignore": ["CHANGELOG.md"]
},
"remarkConfig": {
"plugins": [
"remark-preset-lint-markdown-style-guide",
"remark-preset-lint-recommended",
"remark-lint-first-heading-level",
"remark-lint-no-tabs",
"remark-validate-links"
]
},
"commitlint": {
"extends": ["@commitlint/config-conventional"]
},
Expand Down

0 comments on commit a536e25

Please sign in to comment.