Skip to content

Commit

Permalink
feat: support more fields of packageJson as ascending order
Browse files Browse the repository at this point in the history
  • Loading branch information
kelsos committed Mar 21, 2024
1 parent 769fed6 commit 011c0f8
Showing 1 changed file with 16 additions and 0 deletions.
16 changes: 16 additions & 0 deletions src/configs/sort.ts
Original file line number Diff line number Diff line change
Expand Up @@ -73,6 +73,22 @@ export function sortPackageJson(): FlatConfigItem[] {
order: ['types', 'require', 'import', 'default'],
pathPattern: '^exports.*$',
},
{
order: [
// client hooks only
'pre-commit',
'prepare-commit-msg',
'commit-msg',
'post-commit',
'pre-rebase',
'post-rewrite',
'post-checkout',
'post-merge',
'pre-push',
'pre-auto-gc',
],
pathPattern: '^(?:gitHooks|husky|simple-git-hooks)$',
},
],
},
},
Expand Down

0 comments on commit 011c0f8

Please sign in to comment.