Skip to content

Commit

Permalink
feat: Add properties to prefer-property-order. (#1055)
Browse files Browse the repository at this point in the history
Co-authored-by: Thomas Lindner <[email protected]>
  • Loading branch information
regseb and tclindner authored Jul 3, 2023
1 parent cf074cb commit 8830c6e
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 0 deletions.
7 changes: 7 additions & 0 deletions src/validators/property-order.ts
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,9 @@ const defaultPreferredNodeOrder = [
'license',
'author',
'contributors',
'funding',
'files',
'exports',
'main',
'module',
'jsnext:main',
Expand All @@ -28,6 +30,7 @@ const defaultPreferredNodeOrder = [
'man',
'directories',
'repository',
'type',
'scripts',
'config',
'pre-commit',
Expand All @@ -37,19 +40,23 @@ const defaultPreferredNodeOrder = [
'eslintConfig',
'stylelint',
'npmpackagejsonlint',
'imports',
'dependencies',
'devDependencies',
'peerDependencies',
'peerDependenciesMeta',
'bundledDependencies',
'bundleDependencies',
'optionalDependencies',
'overrides',
'engines',
'engineStrict',
'os',
'cpu',
'preferGlobal',
'private',
'publishConfig',
'workspaces',
];

export interface IsInPreferredOrderResult {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,9 @@ If an empty array is provided (see example below) then the following list will b
'license',
'author',
'contributors',
'funding',
'files',
'exports',
'main',
'module',
'jsnext:main',
Expand All @@ -56,6 +58,7 @@ If an empty array is provided (see example below) then the following list will b
'man',
'directories',
'repository',
'type',
'scripts',
'config',
'pre-commit',
Expand All @@ -65,19 +68,23 @@ If an empty array is provided (see example below) then the following list will b
'eslintConfig',
'stylelint',
'npmpackagejsonlint',
'imports',
'dependencies',
'devDependencies',
'peerDependencies',
'peerDependenciesMeta',
'bundledDependencies',
'bundleDependencies',
'optionalDependencies',
'overrides',
'engines',
'engineStrict',
'os',
'cpu',
'preferGlobal',
'private',
'publishConfig',
'workspaces',
]
```

Expand Down

0 comments on commit 8830c6e

Please sign in to comment.