Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: add support for semantic-release #235

Merged
merged 1 commit into from
Nov 11, 2021
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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.