fix: package.json key orders

This commit is contained in:
Anthony Fu 2022-03-10 20:19:52 +08:00
parent b7cff5d6a2
commit b6133dcd42
2 changed files with 12 additions and 7 deletions

View File

@ -1,9 +1,9 @@
{ {
"name": "@antfu/eslint-config-monorepo", "name": "@antfu/eslint-config-monorepo",
"version": "0.1.0", "version": "0.1.0",
"private": true,
"license": "MIT", "license": "MIT",
"author": "Anthony Fu <anthonyfu117@hotmail.com> (https://github.com/antfu/)", "author": "Anthony Fu <anthonyfu117@hotmail.com> (https://github.com/antfu/)",
"private": true,
"scripts": { "scripts": {
"preinstall": "npx only-allow pnpm", "preinstall": "npx only-allow pnpm",
"lint": "eslint .", "lint": "eslint .",

View File

@ -56,27 +56,32 @@ module.exports = {
pathPattern: '^$', pathPattern: '^$',
order: [ order: [
'name', 'name',
'type',
'version', 'version',
'private',
'packageManager',
'description', 'description',
'keywords', 'keywords',
'license', 'license',
'author',
'repository', 'repository',
'funding', 'funding',
'author', 'bin',
'type',
'files',
'exports', 'exports',
'files',
'jsdelivr',
'main', 'main',
'module', 'module',
'types',
'unpkg', 'unpkg',
'bin',
'scripts', 'scripts',
'husky',
'lint-staged',
'peerDependencies', 'peerDependencies',
'peerDependenciesMeta', 'peerDependenciesMeta',
'dependencies', 'dependencies',
'optionalDependencies',
'devDependencies', 'devDependencies',
'husky',
'lint-staged',
'eslintConfig', 'eslintConfig',
], ],
}, },