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",
"version": "0.1.0",
"private": true,
"license": "MIT",
"author": "Anthony Fu <anthonyfu117@hotmail.com> (https://github.com/antfu/)",
"private": true,
"scripts": {
"preinstall": "npx only-allow pnpm",
"lint": "eslint .",

View File

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