Skip to content

Commit

Permalink
feat: sort few more keys (#52)
Browse files Browse the repository at this point in the history
  • Loading branch information
ark120202 authored and keithamus committed Jan 24, 2019
1 parent 9d42b19 commit 342fb31
Showing 1 changed file with 10 additions and 2 deletions.
12 changes: 10 additions & 2 deletions index.js
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@ var sortOrder = [
'author',
'contributors',
'files',
'sideEffects',
'main',
'module',
'jsnext:main',
Expand All @@ -32,10 +33,14 @@ var sortOrder = [
'scripts',
'betterScripts',
'husky',
'config',
'pre-commit',
'commitlint',
'lint-staged',
'config',
'nodemonConfig',
'browserify',
'babel',
'browserslist',
'xo',
'prettier',
'eslintConfig',
Expand Down Expand Up @@ -148,8 +153,11 @@ function sortPackageJson(packageJson) {
sortSubKey('directories', [ 'lib', 'bin', 'man', 'doc', 'example' ]);
sortSubKey('repository', [ 'type', 'url' ]);
sortSubKey('scripts', compareScriptKeys);
sortSubKey('betterScripts', compareScriptKeys);
sortSubKey('commitlint');
sortSubKey('lint-staged');
sortSubKey('config');
sortSubKey('browser');
sortSubKey('nodemonConfig');
sortSubKey('browserify');
sortSubKey('babel');
sortSubKey('eslintConfig');
Expand Down

0 comments on commit 342fb31

Please sign in to comment.