Skip to content

Commit 8f72850

Browse files
authored
feat: add remarkConfig field (#169)
1 parent e10e447 commit 8f72850

File tree

6 files changed

+5
-0
lines changed

6 files changed

+5
-0
lines changed

README.md

+1
Original file line numberDiff line numberDiff line change
@@ -181,6 +181,7 @@ console.log(Object.keys(sorted))
181181
- [Mocha](https://mochajs.org/)
182182
- [node-pre-gyp](https://github.com/mapbox/node-pre-gyp)
183183
- [Prettier](https://prettier.io/)
184+
- [remark](https://remark.js.org/)
184185
- [stylelint](https://github.com/stylelint/stylelint)
185186
- [xojs](https://github.com/xojs/xo)
186187

index.js

+1
Original file line numberDiff line numberDiff line change
@@ -236,6 +236,7 @@ const fields = [
236236
{ key: 'prettier', over: sortPrettierConfig },
237237
{ key: 'eslintConfig', over: sortEslintConfig },
238238
{ key: 'eslintIgnore' },
239+
{ key: 'remarkConfig', over: sortObject },
239240
{ key: 'stylelint' },
240241
{ key: 'ava', over: sortObject },
241242
{ key: 'jest', over: sortObject },

tests/fields.js

+1
Original file line numberDiff line numberDiff line change
@@ -63,6 +63,7 @@ for (const field of [
6363
'preferGlobal',
6464
'publishConfig',
6565
'galleryBanner',
66+
'remarkConfig',
6667
]) {
6768
test(field, macro.sortObjectAlphabetically, { path: field })
6869
}

tests/snapshots/cli.js.snap

-6 Bytes
Binary file not shown.

tests/snapshots/main.js.md

+2
Original file line numberDiff line numberDiff line change
@@ -78,6 +78,7 @@ Generated by [AVA](https://avajs.dev).
7878
"publishConfig": "publishConfig",␊
7979
"publisher": "publisher",␊
8080
"qna": "qna",␊
81+
"remarkConfig": "remarkConfig",␊
8182
"repository": "repository",␊
8283
"resolutions": "resolutions",␊
8384
"scripts": "scripts",␊
@@ -152,6 +153,7 @@ Generated by [AVA](https://avajs.dev).
152153
"prettier": "prettier",␊
153154
"eslintConfig": "eslintConfig",␊
154155
"eslintIgnore": "eslintIgnore",␊
156+
"remarkConfig": "remarkConfig",␊
155157
"stylelint": "stylelint",␊
156158
"ava": "ava",␊
157159
"jest": "jest",␊

tests/snapshots/main.js.snap

13 Bytes
Binary file not shown.

0 commit comments

Comments
 (0)