Skip to content

Commit

Permalink
feat: add remarkConfig field (#169)
Browse files Browse the repository at this point in the history
  • Loading branch information
jeddy3 authored Apr 6, 2020
1 parent e10e447 commit 8f72850
Show file tree
Hide file tree
Showing 6 changed files with 5 additions and 0 deletions.
1 change: 1 addition & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -181,6 +181,7 @@ console.log(Object.keys(sorted))
- [Mocha](https://mochajs.org/)
- [node-pre-gyp](https://github.com/mapbox/node-pre-gyp)
- [Prettier](https://prettier.io/)
- [remark](https://remark.js.org/)
- [stylelint](https://github.com/stylelint/stylelint)
- [xojs](https://github.com/xojs/xo)
Expand Down
1 change: 1 addition & 0 deletions index.js
Original file line number Diff line number Diff line change
Expand Up @@ -236,6 +236,7 @@ const fields = [
{ key: 'prettier', over: sortPrettierConfig },
{ key: 'eslintConfig', over: sortEslintConfig },
{ key: 'eslintIgnore' },
{ key: 'remarkConfig', over: sortObject },
{ key: 'stylelint' },
{ key: 'ava', over: sortObject },
{ key: 'jest', over: sortObject },
Expand Down
1 change: 1 addition & 0 deletions tests/fields.js
Original file line number Diff line number Diff line change
Expand Up @@ -63,6 +63,7 @@ for (const field of [
'preferGlobal',
'publishConfig',
'galleryBanner',
'remarkConfig',
]) {
test(field, macro.sortObjectAlphabetically, { path: field })
}
Expand Down
Binary file modified tests/snapshots/cli.js.snap
Binary file not shown.
2 changes: 2 additions & 0 deletions tests/snapshots/main.js.md
Original file line number Diff line number Diff line change
Expand Up @@ -78,6 +78,7 @@ Generated by [AVA](https://avajs.dev).
"publishConfig": "publishConfig",␊
"publisher": "publisher",␊
"qna": "qna",␊
"remarkConfig": "remarkConfig",␊
"repository": "repository",␊
"resolutions": "resolutions",␊
"scripts": "scripts",␊
Expand Down Expand Up @@ -152,6 +153,7 @@ Generated by [AVA](https://avajs.dev).
"prettier": "prettier",␊
"eslintConfig": "eslintConfig",␊
"eslintIgnore": "eslintIgnore",␊
"remarkConfig": "remarkConfig",␊
"stylelint": "stylelint",␊
"ava": "ava",␊
"jest": "jest",␊
Expand Down
Binary file modified tests/snapshots/main.js.snap
Binary file not shown.

0 comments on commit 8f72850

Please sign in to comment.