feat: improve package.json sorting
This commit is contained in:
parent
761a0ce4ee
commit
001de3b060
@ -3,8 +3,8 @@
|
|||||||
"version": "0.24.1",
|
"version": "0.24.1",
|
||||||
"private": true,
|
"private": true,
|
||||||
"packageManager": "pnpm@7.1.0",
|
"packageManager": "pnpm@7.1.0",
|
||||||
"license": "MIT",
|
|
||||||
"author": "Anthony Fu <anthonyfu117@hotmail.com> (https://github.com/antfu/)",
|
"author": "Anthony Fu <anthonyfu117@hotmail.com> (https://github.com/antfu/)",
|
||||||
|
"license": "MIT",
|
||||||
"scripts": {
|
"scripts": {
|
||||||
"lint": "eslint .",
|
"lint": "eslint .",
|
||||||
"prepare": "pnpm -r run stub",
|
"prepare": "pnpm -r run stub",
|
||||||
|
@ -1,10 +1,11 @@
|
|||||||
{
|
{
|
||||||
"name": "@antfu/eslint-config",
|
"name": "@antfu/eslint-config",
|
||||||
"version": "0.24.1",
|
"version": "0.24.1",
|
||||||
"description": "",
|
"description": "Anthony's ESLint config",
|
||||||
"keywords": [],
|
|
||||||
"license": "MIT",
|
|
||||||
"author": "Anthony Fu <anthonyfu117@hotmail.com> (https://github.com/antfu/)",
|
"author": "Anthony Fu <anthonyfu117@hotmail.com> (https://github.com/antfu/)",
|
||||||
|
"license": "MIT",
|
||||||
|
"homepage": "https://github.com/antfu/eslint-config",
|
||||||
|
"keywords": ["eslint-config"],
|
||||||
"main": "index.js",
|
"main": "index.js",
|
||||||
"files": [
|
"files": [
|
||||||
"index.js"
|
"index.js"
|
||||||
@ -31,8 +32,5 @@
|
|||||||
},
|
},
|
||||||
"devDependencies": {
|
"devDependencies": {
|
||||||
"eslint": "^8.16.0"
|
"eslint": "^8.16.0"
|
||||||
},
|
|
||||||
"publishConfig": {
|
|
||||||
"access": "public"
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -71,33 +71,47 @@ module.exports = {
|
|||||||
{
|
{
|
||||||
pathPattern: '^$',
|
pathPattern: '^$',
|
||||||
order: [
|
order: [
|
||||||
|
'publisher',
|
||||||
'name',
|
'name',
|
||||||
|
'displayName',
|
||||||
'type',
|
'type',
|
||||||
'version',
|
'version',
|
||||||
'private',
|
'private',
|
||||||
'packageManager',
|
'packageManager',
|
||||||
'description',
|
'description',
|
||||||
'keywords',
|
|
||||||
'license',
|
|
||||||
'author',
|
'author',
|
||||||
'repository',
|
'license',
|
||||||
'funding',
|
'funding',
|
||||||
|
'homepage',
|
||||||
|
'repository',
|
||||||
|
'bugs',
|
||||||
|
'keywords',
|
||||||
|
'categories',
|
||||||
|
'sideEffects',
|
||||||
|
'exports',
|
||||||
'main',
|
'main',
|
||||||
'module',
|
'module',
|
||||||
'types',
|
|
||||||
'unpkg',
|
'unpkg',
|
||||||
'jsdelivr',
|
'jsdelivr',
|
||||||
'exports',
|
'types',
|
||||||
'files',
|
'typesVersions',
|
||||||
'bin',
|
'bin',
|
||||||
'sideEffects',
|
'icon',
|
||||||
|
'files',
|
||||||
|
'engines',
|
||||||
|
'activationEvents',
|
||||||
|
'contributes',
|
||||||
'scripts',
|
'scripts',
|
||||||
'peerDependencies',
|
'peerDependencies',
|
||||||
'peerDependenciesMeta',
|
'peerDependenciesMeta',
|
||||||
'dependencies',
|
'dependencies',
|
||||||
'optionalDependencies',
|
'optionalDependencies',
|
||||||
'devDependencies',
|
'devDependencies',
|
||||||
|
'pnpm',
|
||||||
|
'overrides',
|
||||||
|
'resolutions',
|
||||||
'husky',
|
'husky',
|
||||||
|
'simple-git-hooks',
|
||||||
'lint-staged',
|
'lint-staged',
|
||||||
'eslintConfig',
|
'eslintConfig',
|
||||||
],
|
],
|
||||||
@ -106,6 +120,14 @@ module.exports = {
|
|||||||
pathPattern: '^(?:dev|peer|optional|bundled)?[Dd]ependencies$',
|
pathPattern: '^(?:dev|peer|optional|bundled)?[Dd]ependencies$',
|
||||||
order: { type: 'asc' },
|
order: { type: 'asc' },
|
||||||
},
|
},
|
||||||
|
{
|
||||||
|
pathPattern: '^exports.*$',
|
||||||
|
order: [
|
||||||
|
'types',
|
||||||
|
'import',
|
||||||
|
'require',
|
||||||
|
],
|
||||||
|
},
|
||||||
],
|
],
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
|
@ -2,9 +2,10 @@
|
|||||||
"name": "@antfu/eslint-config-basic",
|
"name": "@antfu/eslint-config-basic",
|
||||||
"version": "0.24.1",
|
"version": "0.24.1",
|
||||||
"description": "",
|
"description": "",
|
||||||
"keywords": [],
|
|
||||||
"license": "MIT",
|
|
||||||
"author": "Anthony Fu <anthonyfu117@hotmail.com> (https://github.com/antfu/)",
|
"author": "Anthony Fu <anthonyfu117@hotmail.com> (https://github.com/antfu/)",
|
||||||
|
"license": "MIT",
|
||||||
|
"homepage": "https://github.com/antfu/eslint-config",
|
||||||
|
"keywords": ["eslint-config"],
|
||||||
"main": "index.js",
|
"main": "index.js",
|
||||||
"files": [
|
"files": [
|
||||||
"*.js"
|
"*.js"
|
||||||
@ -31,8 +32,5 @@
|
|||||||
},
|
},
|
||||||
"devDependencies": {
|
"devDependencies": {
|
||||||
"eslint": "^8.16.0"
|
"eslint": "^8.16.0"
|
||||||
},
|
|
||||||
"publishConfig": {
|
|
||||||
"access": "public"
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -2,16 +2,10 @@
|
|||||||
"name": "eslint-plugin-antfu",
|
"name": "eslint-plugin-antfu",
|
||||||
"version": "0.24.1",
|
"version": "0.24.1",
|
||||||
"license": "MIT",
|
"license": "MIT",
|
||||||
|
"homepage": "https://github.com/antfu/eslint-config",
|
||||||
"main": "./dist/index.cjs",
|
"main": "./dist/index.cjs",
|
||||||
"module": "./dist/index.mjs",
|
"module": "./dist/index.mjs",
|
||||||
"types": "./dist/index.d.ts",
|
"types": "./dist/index.d.ts",
|
||||||
"exports": {
|
|
||||||
".": {
|
|
||||||
"require": "./dist/index.cjs",
|
|
||||||
"import": "./dist/index.mjs",
|
|
||||||
"types": "./dist/index.d.ts"
|
|
||||||
}
|
|
||||||
},
|
|
||||||
"files": [
|
"files": [
|
||||||
"dist"
|
"dist"
|
||||||
],
|
],
|
||||||
|
@ -2,9 +2,10 @@
|
|||||||
"name": "@antfu/eslint-config-react",
|
"name": "@antfu/eslint-config-react",
|
||||||
"version": "0.24.1",
|
"version": "0.24.1",
|
||||||
"description": "",
|
"description": "",
|
||||||
"keywords": [],
|
|
||||||
"license": "MIT",
|
|
||||||
"author": "Anthony Fu <anthonyfu117@hotmail.com> (https://github.com/antfu/)",
|
"author": "Anthony Fu <anthonyfu117@hotmail.com> (https://github.com/antfu/)",
|
||||||
|
"license": "MIT",
|
||||||
|
"homepage": "https://github.com/antfu/eslint-config",
|
||||||
|
"keywords": ["eslint-config"],
|
||||||
"main": "index.js",
|
"main": "index.js",
|
||||||
"files": [
|
"files": [
|
||||||
"index.js"
|
"index.js"
|
||||||
@ -15,9 +16,6 @@
|
|||||||
"peerDependencies": {
|
"peerDependencies": {
|
||||||
"eslint": ">=7.4.0"
|
"eslint": ">=7.4.0"
|
||||||
},
|
},
|
||||||
"publishConfig": {
|
|
||||||
"access": "public"
|
|
||||||
},
|
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
"@antfu/eslint-config-ts": "workspace:*",
|
"@antfu/eslint-config-ts": "workspace:*",
|
||||||
"eslint-plugin-react": "^7.30.0"
|
"eslint-plugin-react": "^7.30.0"
|
||||||
|
@ -2,16 +2,14 @@
|
|||||||
"name": "@antfu/eslint-config-ts",
|
"name": "@antfu/eslint-config-ts",
|
||||||
"version": "0.24.1",
|
"version": "0.24.1",
|
||||||
"description": "",
|
"description": "",
|
||||||
"keywords": [],
|
|
||||||
"license": "MIT",
|
|
||||||
"author": "Anthony Fu <anthonyfu117@hotmail.com> (https://github.com/antfu/)",
|
"author": "Anthony Fu <anthonyfu117@hotmail.com> (https://github.com/antfu/)",
|
||||||
|
"license": "MIT",
|
||||||
|
"homepage": "https://github.com/antfu/eslint-config",
|
||||||
|
"keywords": ["eslint-config"],
|
||||||
"main": "index.js",
|
"main": "index.js",
|
||||||
"files": [
|
"files": [
|
||||||
"index.js"
|
"index.js"
|
||||||
],
|
],
|
||||||
"publishConfig": {
|
|
||||||
"access": "public"
|
|
||||||
},
|
|
||||||
"peerDependencies": {
|
"peerDependencies": {
|
||||||
"eslint": ">=7.4.0",
|
"eslint": ">=7.4.0",
|
||||||
"typescript": ">=3.9"
|
"typescript": ">=3.9"
|
||||||
|
@ -2,9 +2,9 @@
|
|||||||
"name": "@antfu/eslint-config-vue",
|
"name": "@antfu/eslint-config-vue",
|
||||||
"version": "0.24.1",
|
"version": "0.24.1",
|
||||||
"description": "",
|
"description": "",
|
||||||
"keywords": [],
|
|
||||||
"license": "MIT",
|
|
||||||
"author": "Anthony Fu <anthonyfu117@hotmail.com> (https://github.com/antfu/)",
|
"author": "Anthony Fu <anthonyfu117@hotmail.com> (https://github.com/antfu/)",
|
||||||
|
"license": "MIT",
|
||||||
|
"keywords": ["eslint-config"],
|
||||||
"main": "index.js",
|
"main": "index.js",
|
||||||
"files": [
|
"files": [
|
||||||
"index.js"
|
"index.js"
|
||||||
@ -12,9 +12,7 @@
|
|||||||
"peerDependencies": {
|
"peerDependencies": {
|
||||||
"eslint": ">=7.4.0"
|
"eslint": ">=7.4.0"
|
||||||
},
|
},
|
||||||
"publishConfig": {
|
|
||||||
"access": "public"
|
|
||||||
},
|
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
"@antfu/eslint-config-ts": "workspace:*",
|
"@antfu/eslint-config-ts": "workspace:*",
|
||||||
"eslint-plugin-vue": "^9.0.1"
|
"eslint-plugin-vue": "^9.0.1"
|
||||||
|
Loading…
Reference in New Issue
Block a user