Skip to content

Commit

Permalink
fix: do not sort over lint-staged key (#214)
Browse files Browse the repository at this point in the history
* fix(index.js): do not sort over lint-staged key

* chore(fields.js): update tests
  • Loading branch information
Xunnamius authored Jan 4, 2021
1 parent 78f1110 commit f1eddf4
Show file tree
Hide file tree
Showing 3 changed files with 1 addition and 2 deletions.
2 changes: 1 addition & 1 deletion index.js
Original file line number Diff line number Diff line change
Expand Up @@ -233,7 +233,7 @@ const fields = [
{ key: 'husky', over: overProperty('hooks', sortGitHooks) },
{ key: 'pre-commit' },
{ key: 'commitlint', over: sortObject },
{ key: 'lint-staged', over: sortObject },
{ key: 'lint-staged' },
{ key: 'config', over: sortObject },
{ key: 'nodemonConfig', over: sortObject },
{ key: 'browserify', over: sortObject },
Expand Down
1 change: 0 additions & 1 deletion tests/fields.js
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,6 @@ for (const field of [
'bin',
'contributes',
'commitlint',
'lint-staged',
'config',
'nodemonConfig',
'browserify',
Expand Down
Binary file modified tests/snapshots/cli.js.snap
Binary file not shown.

0 comments on commit f1eddf4

Please sign in to comment.