Skip to content

Commit

Permalink
feat: add oclif (#312)
Browse files Browse the repository at this point in the history
* feat: add oclif

* chore: update README.md
  • Loading branch information
mdonnalley authored Feb 21, 2024
1 parent 4b73393 commit 26c5f9d
Show file tree
Hide file tree
Showing 10 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 @@ -210,6 +210,7 @@ console.log(Object.keys(sorted))
- [Mocha](https://mochajs.org/)
- [node-pre-gyp](https://github.com/mapbox/node-pre-gyp)
- [npm-package-json-lint](https://npmpackagejsonlint.org/)
- [oclif](https://oclif.io/)
- [Prettier](https://prettier.io/)
- [remark](https://remark.js.org/)
- [semantic-release](https://github.com/semantic-release/semantic-release)
Expand Down
1 change: 1 addition & 0 deletions defaultRules.md
Original file line number Diff line number Diff line change
Expand Up @@ -79,6 +79,7 @@ _Note: when a specific key order is used, any other keys will be sorted in the e
| mocha | Key sort |
| nyc | Key sort |
| tap | Key sort |
| oclif | Key sort (deep) |
| resolutions | Key sort |
| dependencies | Key sort |
| devDependencies | Key sort |
Expand Down
1 change: 1 addition & 0 deletions index.js
Original file line number Diff line number Diff line change
Expand Up @@ -281,6 +281,7 @@ const fields = [
{ key: 'nyc', over: sortObject },
{ key: 'c8', over: sortObject },
{ key: 'tap', over: sortObject },
{ key: 'oclif', over: sortObjectBy(undefined, true) },
{ key: 'resolutions', over: sortObject },
{ key: 'dependencies', over: sortObject },
{ key: 'devDependencies', over: sortObject },
Expand Down
Binary file modified tests/snapshots/cli.js.snap
Binary file not shown.
Binary file modified tests/snapshots/deps.js.snap
Binary file not shown.
Binary file modified tests/snapshots/eslint.js.snap
Binary file not shown.
Binary file modified tests/snapshots/fields.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).
"npmpackagejsonlint": "npmpackagejsonlint",␊
"npmpkgjsonlint": "npmpkgjsonlint",␊
"nyc": "nyc",␊
"oclif": "oclif",␊
"optionalDependencies": "optionalDependencies",␊
"os": "os",␊
"packageManager": "packageManager",␊
Expand Down Expand Up @@ -195,6 +196,7 @@ Generated by [AVA](https://avajs.dev).
"nyc": "nyc",␊
"c8": "c8",␊
"tap": "tap",␊
"oclif": "oclif",␊
"resolutions": "resolutions",␊
"dependencies": "dependencies",␊
"devDependencies": "devDependencies",␊
Expand Down
Binary file modified tests/snapshots/main.js.snap
Binary file not shown.
Binary file modified tests/snapshots/prettier.js.snap
Binary file not shown.

0 comments on commit 26c5f9d

Please sign in to comment.