diff --git a/package.json b/package.json index fffb34a..6ae58c5 100644 --- a/package.json +++ b/package.json @@ -3,8 +3,8 @@ "version": "0.24.1", "private": true, "packageManager": "pnpm@7.1.0", - "license": "MIT", "author": "Anthony Fu (https://github.com/antfu/)", + "license": "MIT", "scripts": { "lint": "eslint .", "prepare": "pnpm -r run stub", diff --git a/packages/all/package.json b/packages/all/package.json index c589632..2fd3094 100644 --- a/packages/all/package.json +++ b/packages/all/package.json @@ -1,10 +1,11 @@ { "name": "@antfu/eslint-config", "version": "0.24.1", - "description": "", - "keywords": [], - "license": "MIT", + "description": "Anthony's ESLint config", "author": "Anthony Fu (https://github.com/antfu/)", + "license": "MIT", + "homepage": "https://github.com/antfu/eslint-config", + "keywords": ["eslint-config"], "main": "index.js", "files": [ "index.js" @@ -31,8 +32,5 @@ }, "devDependencies": { "eslint": "^8.16.0" - }, - "publishConfig": { - "access": "public" } } diff --git a/packages/basic/index.js b/packages/basic/index.js index c37d02e..1ccb1a4 100644 --- a/packages/basic/index.js +++ b/packages/basic/index.js @@ -71,33 +71,47 @@ module.exports = { { pathPattern: '^$', order: [ + 'publisher', 'name', + 'displayName', 'type', 'version', 'private', 'packageManager', 'description', - 'keywords', - 'license', 'author', - 'repository', + 'license', 'funding', + 'homepage', + 'repository', + 'bugs', + 'keywords', + 'categories', + 'sideEffects', + 'exports', 'main', 'module', - 'types', 'unpkg', 'jsdelivr', - 'exports', - 'files', + 'types', + 'typesVersions', 'bin', - 'sideEffects', + 'icon', + 'files', + 'engines', + 'activationEvents', + 'contributes', 'scripts', 'peerDependencies', 'peerDependenciesMeta', 'dependencies', 'optionalDependencies', 'devDependencies', + 'pnpm', + 'overrides', + 'resolutions', 'husky', + 'simple-git-hooks', 'lint-staged', 'eslintConfig', ], @@ -106,6 +120,14 @@ module.exports = { pathPattern: '^(?:dev|peer|optional|bundled)?[Dd]ependencies$', order: { type: 'asc' }, }, + { + pathPattern: '^exports.*$', + order: [ + 'types', + 'import', + 'require', + ], + }, ], }, }, diff --git a/packages/basic/package.json b/packages/basic/package.json index 72ddcf6..83e758c 100644 --- a/packages/basic/package.json +++ b/packages/basic/package.json @@ -2,9 +2,10 @@ "name": "@antfu/eslint-config-basic", "version": "0.24.1", "description": "", - "keywords": [], - "license": "MIT", "author": "Anthony Fu (https://github.com/antfu/)", + "license": "MIT", + "homepage": "https://github.com/antfu/eslint-config", + "keywords": ["eslint-config"], "main": "index.js", "files": [ "*.js" @@ -31,8 +32,5 @@ }, "devDependencies": { "eslint": "^8.16.0" - }, - "publishConfig": { - "access": "public" } } diff --git a/packages/eslint-plugin-antfu/package.json b/packages/eslint-plugin-antfu/package.json index f792ee2..e9081be 100644 --- a/packages/eslint-plugin-antfu/package.json +++ b/packages/eslint-plugin-antfu/package.json @@ -2,16 +2,10 @@ "name": "eslint-plugin-antfu", "version": "0.24.1", "license": "MIT", + "homepage": "https://github.com/antfu/eslint-config", "main": "./dist/index.cjs", "module": "./dist/index.mjs", "types": "./dist/index.d.ts", - "exports": { - ".": { - "require": "./dist/index.cjs", - "import": "./dist/index.mjs", - "types": "./dist/index.d.ts" - } - }, "files": [ "dist" ], diff --git a/packages/react/package.json b/packages/react/package.json index 267b725..13bb87c 100644 --- a/packages/react/package.json +++ b/packages/react/package.json @@ -2,9 +2,10 @@ "name": "@antfu/eslint-config-react", "version": "0.24.1", "description": "", - "keywords": [], - "license": "MIT", "author": "Anthony Fu (https://github.com/antfu/)", + "license": "MIT", + "homepage": "https://github.com/antfu/eslint-config", + "keywords": ["eslint-config"], "main": "index.js", "files": [ "index.js" @@ -15,9 +16,6 @@ "peerDependencies": { "eslint": ">=7.4.0" }, - "publishConfig": { - "access": "public" - }, "dependencies": { "@antfu/eslint-config-ts": "workspace:*", "eslint-plugin-react": "^7.30.0" diff --git a/packages/typescript/package.json b/packages/typescript/package.json index 0a0e5e5..79b7c91 100644 --- a/packages/typescript/package.json +++ b/packages/typescript/package.json @@ -2,16 +2,14 @@ "name": "@antfu/eslint-config-ts", "version": "0.24.1", "description": "", - "keywords": [], - "license": "MIT", "author": "Anthony Fu (https://github.com/antfu/)", + "license": "MIT", + "homepage": "https://github.com/antfu/eslint-config", + "keywords": ["eslint-config"], "main": "index.js", "files": [ "index.js" ], - "publishConfig": { - "access": "public" - }, "peerDependencies": { "eslint": ">=7.4.0", "typescript": ">=3.9" diff --git a/packages/vue/package.json b/packages/vue/package.json index 27f0da7..c42a04b 100644 --- a/packages/vue/package.json +++ b/packages/vue/package.json @@ -2,9 +2,9 @@ "name": "@antfu/eslint-config-vue", "version": "0.24.1", "description": "", - "keywords": [], - "license": "MIT", "author": "Anthony Fu (https://github.com/antfu/)", + "license": "MIT", + "keywords": ["eslint-config"], "main": "index.js", "files": [ "index.js" @@ -12,9 +12,7 @@ "peerDependencies": { "eslint": ">=7.4.0" }, - "publishConfig": { - "access": "public" - }, + "dependencies": { "@antfu/eslint-config-ts": "workspace:*", "eslint-plugin-vue": "^9.0.1"