diff --git a/defaultRules.md b/defaultRules.md index 76e762d..b2e8e22 100644 --- a/defaultRules.md +++ b/defaultRules.md @@ -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 | diff --git a/index.js b/index.js index 66ee62c..26dfe9d 100755 --- a/index.js +++ b/index.js @@ -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 }, diff --git a/tests/snapshots/cli.js.snap b/tests/snapshots/cli.js.snap index 34c5643..87200f1 100644 Binary files a/tests/snapshots/cli.js.snap and b/tests/snapshots/cli.js.snap differ diff --git a/tests/snapshots/main.js.md b/tests/snapshots/main.js.md index 1bdd16b..b5b91c3 100644 --- a/tests/snapshots/main.js.md +++ b/tests/snapshots/main.js.md @@ -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",␊ @@ -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",␊ diff --git a/tests/snapshots/main.js.snap b/tests/snapshots/main.js.snap index 9b2f65d..06dbbaa 100644 Binary files a/tests/snapshots/main.js.snap and b/tests/snapshots/main.js.snap differ