Skip to content

Commit 0f1c956

Browse files
authoredMay 4, 2021
feat: add support for simple-git-hooks (#221)
1 parent 9b76ec1 commit 0f1c956

File tree

5 files changed

+4
-0
lines changed

5 files changed

+4
-0
lines changed
 

‎defaultRules.md

+1
Original file line numberDiff line numberDiff line change
@@ -54,6 +54,7 @@ _Note: when a specific key order is used, any other keys will be sorted in the e
5454
| contributes | Key sort |
5555
| activationEvents | Unique items |
5656
| husky | Sorts the `hooks` field using [git hook sort](#git-hooks) |
57+
| simple-git-hooks | Key sort using [git hook sort](#git-hooks) |
5758
| pre-commit | |
5859
| commitlint | Key sort |
5960
| lint-staged | |

‎index.js

+1
Original file line numberDiff line numberDiff line change
@@ -229,6 +229,7 @@ const fields = [
229229
/* vscode */ { key: 'contributes', over: sortObject },
230230
/* vscode */ { key: 'activationEvents', over: uniq },
231231
{ key: 'husky', over: overProperty('hooks', sortGitHooks) },
232+
{ key: 'simple-git-hooks', over: sortGitHooks },
232233
{ key: 'pre-commit' },
233234
{ key: 'commitlint', over: sortObject },
234235
{ key: 'lint-staged' },

‎tests/snapshots/cli.js.snap

15 Bytes
Binary file not shown.

‎tests/snapshots/main.js.md

+2
Original file line numberDiff line numberDiff line change
@@ -89,6 +89,7 @@ Generated by [AVA](https://avajs.dev).
8989
"resolutions": "resolutions",␊
9090
"scripts": "scripts",␊
9191
"sideEffects": "sideEffects",␊
92+
"simple-git-hooks": "simple-git-hooks",␊
9293
"source": "source",␊
9394
"style": "style",␊
9495
"stylelint": "stylelint",␊
@@ -153,6 +154,7 @@ Generated by [AVA](https://avajs.dev).
153154
"contributes": "contributes",␊
154155
"activationEvents": "activationEvents",␊
155156
"husky": "husky",␊
157+
"simple-git-hooks": "simple-git-hooks",␊
156158
"pre-commit": "pre-commit",␊
157159
"commitlint": "commitlint",␊
158160
"lint-staged": "lint-staged",␊

‎tests/snapshots/main.js.snap

20 Bytes
Binary file not shown.

0 commit comments

Comments
 (0)
Please sign in to comment.