From 03ef495641fb77c484b4f6c15627b570b4a4e362 Mon Sep 17 00:00:00 2001 From: zanminkian Date: Mon, 18 Sep 2023 17:37:38 +0000 Subject: [PATCH] style: format --- package.json | 16 ++++++++-------- packages/eslint-config/package.json | 10 +++++----- packages/eslint-plugin/package.json | 8 ++++---- packages/git-validator/package.json | 16 ++++++++-------- packages/tsconfig/package.json | 8 ++++---- 5 files changed, 29 insertions(+), 29 deletions(-) diff --git a/package.json b/package.json index adac7230..f5be472d 100644 --- a/package.json +++ b/package.json @@ -3,24 +3,24 @@ "workspaces": [ "packages/*" ], - "packageManager": "pnpm@8.6.10", - "engines": { - "pnpm": "^8.0.0", - "node": ">=16.0.0" - }, "scripts": { + "build": "pnpm -r build", "install": "pnpm build", "postinstall": "git-validator install", + "release": "changeset publish", "style": "git-validator", "style:update": "git-validator -u", - "build": "pnpm -r build", - "test": "pnpm -r test", - "release": "changeset publish" + "test": "pnpm -r test" }, "devDependencies": { "@changesets/cli": "^2.26.2", "@types/node": "^20.6.2", "git-validator": "workspace:^", "typescript": "^5.2.2" + }, + "packageManager": "pnpm@8.6.10", + "engines": { + "node": ">=16.0.0", + "pnpm": "^8.0.0" } } diff --git a/packages/eslint-config/package.json b/packages/eslint-config/package.json index 6a3b81da..53d4bfc9 100644 --- a/packages/eslint-config/package.json +++ b/packages/eslint-config/package.json @@ -1,11 +1,7 @@ { "name": "@git-validator/eslint-config", - "type": "module", "version": "0.1.0", "description": "A strict eslint config for better code quality.", - "author": "hellozmj@qq.com", - "license": "MIT", - "homepage": "https://github.com/zanminkian/git-validator/tree/main/packages/eslint-config", "keywords": [ "opinionated", "strict", @@ -14,14 +10,18 @@ "eslint-config", "standard" ], + "homepage": "https://github.com/zanminkian/git-validator/tree/main/packages/eslint-config", + "license": "MIT", + "author": "hellozmj@qq.com", + "type": "module", "exports": "./src/index.js", "scripts": { "build": "tsc --noEmit -p ../../tsconfig.json" }, "dependencies": { + "@git-validator/eslint-plugin": "workspace:^", "@typescript-eslint/eslint-plugin": "^6.7.0", "@typescript-eslint/parser": "^6.7.0", - "@git-validator/eslint-plugin": "workspace:^", "eslint-config-prettier": "^9.0.0", "eslint-plugin-import": "^2.28.1", "eslint-plugin-n": "^16.1.0", diff --git a/packages/eslint-plugin/package.json b/packages/eslint-plugin/package.json index f4fd09bd..8dce8143 100644 --- a/packages/eslint-plugin/package.json +++ b/packages/eslint-plugin/package.json @@ -1,11 +1,7 @@ { "name": "@git-validator/eslint-plugin", - "type": "module", "version": "0.1.0", "description": "Zanminkian's eslint plugins.", - "author": "hellozmj@qq.com", - "license": "MIT", - "homepage": "https://github.com/zanminkian/git-validator/tree/main/packages/eslint-plugin", "keywords": [ "opinionated", "strict", @@ -14,6 +10,10 @@ "eslint-config", "eslint-plugin" ], + "homepage": "https://github.com/zanminkian/git-validator/tree/main/packages/eslint-plugin", + "license": "MIT", + "author": "hellozmj@qq.com", + "type": "module", "exports": "./dist/index.js", "scripts": { "build": "tsc -p tsconfig.build.json", diff --git a/packages/git-validator/package.json b/packages/git-validator/package.json index 95b6f4c4..f6c1dbc9 100644 --- a/packages/git-validator/package.json +++ b/packages/git-validator/package.json @@ -1,11 +1,7 @@ { "name": "git-validator", - "type": "module", "version": "0.9.12", "description": "Git hooks and code style validator.", - "author": "hellozmj@qq.com", - "license": "MIT", - "homepage": "https://github.com/zanminkian/git-validator", "keywords": [ "git", "hooks", @@ -19,16 +15,20 @@ "lint-staged", "commitlint" ], - "scripts": { - "build": "tsc --noEmit" - }, + "homepage": "https://github.com/zanminkian/git-validator", + "license": "MIT", + "author": "hellozmj@qq.com", + "type": "module", "bin": { + "commitlint": "./src/bin/commitlint.js", "git-validator": "./src/bin/git-validator.js", "gv": "./src/bin/git-validator.js", - "commitlint": "./src/bin/commitlint.js", "lint-staged": "./src/bin/lint-staged.js", "tsconfig": "./src/bin/tsconfig.js" }, + "scripts": { + "build": "tsc --noEmit" + }, "dependencies": { "@commitlint/cli": "^17.7.1", "@commitlint/config-conventional": "^17.7.0", diff --git a/packages/tsconfig/package.json b/packages/tsconfig/package.json index 65c92459..a6fc0d0e 100644 --- a/packages/tsconfig/package.json +++ b/packages/tsconfig/package.json @@ -1,11 +1,7 @@ { "name": "@git-validator/tsconfig", - "type": "module", "version": "0.1.1", "description": "Strict shared tsconfig out-of-box.", - "author": "hellozmj@qq.com", - "license": "MIT", - "homepage": "https://github.com/zanminkian/git-validator/tree/main/packages/tsconfig", "keywords": [ "tsconfig", "strict", @@ -15,6 +11,10 @@ "config", "configuration" ], + "homepage": "https://github.com/zanminkian/git-validator/tree/main/packages/tsconfig", + "license": "MIT", + "author": "hellozmj@qq.com", + "type": "module", "exports": { "./cli": "./src/cli.js", "./cjs.json": "./cjs.json",