Skip to content

Commit

Permalink
feat: add support for semantic-release (#235)
Browse files Browse the repository at this point in the history
  • Loading branch information
shaneog committed Nov 11, 2021
1 parent 675ed2f commit 732347e
Show file tree
Hide file tree
Showing 7 changed files with 6 additions and 0 deletions.
1 change: 1 addition & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -184,6 +184,7 @@ console.log(Object.keys(sorted))
- [npm-package-json-lint](https://npmpackagejsonlint.org/)
- [Prettier](https://prettier.io/)
- [remark](https://remark.js.org/)
- [semantic-release](https://github.com/semantic-release/semantic-release)
- [stylelint](https://github.com/stylelint/stylelint)
- [Tap](https://node-tap.org/)
- [xojs](https://github.com/xojs/xo)
Expand Down
1 change: 1 addition & 0 deletions defaultRules.md
Original file line number Diff line number Diff line change
Expand Up @@ -68,6 +68,7 @@ _Note: when a specific key order is used, any other keys will be sorted in the e
| eslintConfig | [ESLint sort](#eslint) |
| eslintIgnore | |
| npmpkgjsonlint | Key sort |
| release | Key sort |
| remarkConfig | Key sort |
| stylelint | |
| ava | Key sort |
Expand Down
1 change: 1 addition & 0 deletions index.js
Original file line number Diff line number Diff line change
Expand Up @@ -255,6 +255,7 @@ const fields = [
{ key: 'eslintConfig', over: sortEslintConfig },
{ key: 'eslintIgnore' },
{ key: 'npmpkgjsonlint', over: sortObject },
{ key: 'release', over: sortObject },
{ key: 'remarkConfig', over: sortObject },
{ key: 'stylelint' },
{ key: 'ava', 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 @@ -66,6 +66,7 @@ for (const field of [
'galleryBanner',
'remarkConfig',
'npmpkgjsonlint',
'release',
]) {
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 @@ -85,6 +85,7 @@ Generated by [AVA](https://avajs.dev).
"publishConfig": "publishConfig",␊
"publisher": "publisher",␊
"qna": "qna",␊
"release": "release",␊
"remarkConfig": "remarkConfig",␊
"repository": "repository",␊
"resolutions": "resolutions",␊
Expand Down Expand Up @@ -169,6 +170,7 @@ Generated by [AVA](https://avajs.dev).
"eslintConfig": "eslintConfig",␊
"eslintIgnore": "eslintIgnore",␊
"npmpkgjsonlint": "npmpkgjsonlint",␊
"release": "release",␊
"remarkConfig": "remarkConfig",␊
"stylelint": "stylelint",␊
"ava": "ava",␊
Expand Down
Binary file modified tests/snapshots/main.js.snap
Binary file not shown.

0 comments on commit 732347e

Please sign in to comment.