Skip to content

Commit

Permalink
feat: add support for nano-staged (#302)
Browse files Browse the repository at this point in the history
  • Loading branch information
kevinwolfcr committed Sep 27, 2023
1 parent 058d8cb commit 93a1cbc
Show file tree
Hide file tree
Showing 5 changed files with 4 additions and 0 deletions.
1 change: 1 addition & 0 deletions defaultRules.md
Original file line number Diff line number Diff line change
Expand Up @@ -60,6 +60,7 @@ _Note: when a specific key order is used, any other keys will be sorted in the e
| pre-commit | |
| commitlint | Key sort |
| lint-staged | |
| nano-staged | |
| config | Key sort |
| nodemonConfig | Key sort |
| browserify | Key sort |
Expand Down
1 change: 1 addition & 0 deletions index.js
Original file line number Diff line number Diff line change
Expand Up @@ -254,6 +254,7 @@ const fields = [
{ key: 'pre-commit' },
{ key: 'commitlint', over: sortObject },
{ key: 'lint-staged' },
{ key: 'nano-staged' },
{ key: 'config', over: sortObject },
{ key: 'nodemonConfig', over: sortObject },
{ key: 'browserify', over: sortObject },
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 @@ -72,6 +72,7 @@ Generated by [AVA](https://avajs.dev).
"mocha": "mocha",␊
"module": "module",␊
"name": "name",␊
"nano-staged": "nano-staged",␊
"nodemonConfig": "nodemonConfig",␊
"npmPackageJsonLintConfig": "npmPackageJsonLintConfig",␊
"npmpackagejsonlint": "npmpackagejsonlint",␊
Expand Down Expand Up @@ -170,6 +171,7 @@ Generated by [AVA](https://avajs.dev).
"pre-commit": "pre-commit",␊
"commitlint": "commitlint",␊
"lint-staged": "lint-staged",␊
"nano-staged": "nano-staged",␊
"config": "config",␊
"nodemonConfig": "nodemonConfig",␊
"browserify": "browserify",␊
Expand Down
Binary file modified tests/snapshots/main.js.snap
Binary file not shown.

0 comments on commit 93a1cbc

Please sign in to comment.