From b6133dcd42b1b051e4bd150897c9b307e61eda51 Mon Sep 17 00:00:00 2001 From: Anthony Fu Date: Thu, 10 Mar 2022 20:19:52 +0800 Subject: [PATCH] fix: package.json key orders --- package.json | 2 +- packages/basic/index.js | 17 +++++++++++------ 2 files changed, 12 insertions(+), 7 deletions(-) diff --git a/package.json b/package.json index 80fda21..0e11461 100644 --- a/package.json +++ b/package.json @@ -1,9 +1,9 @@ { "name": "@antfu/eslint-config-monorepo", "version": "0.1.0", + "private": true, "license": "MIT", "author": "Anthony Fu (https://github.com/antfu/)", - "private": true, "scripts": { "preinstall": "npx only-allow pnpm", "lint": "eslint .", diff --git a/packages/basic/index.js b/packages/basic/index.js index ec41cad..af9e046 100644 --- a/packages/basic/index.js +++ b/packages/basic/index.js @@ -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', ], },