Skip to content

Commit 08a1722

Browse files
committed
chore: tweak lint and fix task
1 parent 5f447bb commit 08a1722

File tree

3 files changed

+71
-24
lines changed

3 files changed

+71
-24
lines changed

package.json

Lines changed: 8 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -55,12 +55,12 @@
5555
"docs:serve": "vitepress serve docs",
5656
"docs:setup": "pnpm build:typed && pnpm docs:apigen",
5757
"example:ssr": "cd examples/ssr/vite && pnpm dev",
58-
"fix": "run-p lint:fix format:fix",
59-
"format:fix": "run-p \"format:prettier --write\"",
60-
"format:prettier": "prettier --config prettier.config.mjs --ignore-path .prettierignore --list-different '**/*.{ts,js,json,html}'",
61-
"lint": "run-p lint:eslint",
58+
"fix": "pnpm run --color \"/^fix:/\"",
59+
"fix:eslint": "eslint . --fix --cache",
60+
"fix:prettier": "prettier --write . --experimental-cli",
61+
"lint": "pnpm run --color \"/^lint:/\"",
6262
"lint:eslint": "eslint . --cache",
63-
"lint:fix": "run-p \"lint:eslint --fix\"",
63+
"lint:prettier": "prettier --check . --experimental-cli",
6464
"prebuild": "test \"$CI\" = true && npx pnpm install -r --store=node_modules/.pnpm-store || echo skipping pnpm install",
6565
"preinstall": "node ./scripts/preinstall.js",
6666
"prepare": "git config --local core.hooksPath .githooks",
@@ -81,6 +81,7 @@
8181
"@intlify/core-base": "workspace:*",
8282
"@intlify/message-compiler": "workspace:*",
8383
"@intlify/vue-i18n-core": "workspace:*",
84+
"@kazupon/prettier-config": "^0.1.1",
8485
"@microsoft/api-extractor": "7.15.2",
8586
"@rolldown/plugin-node-polyfills": "^1.0.0",
8687
"@rollup/plugin-commonjs": "^28.0.0",
@@ -116,7 +117,7 @@
116117
"picocolors": "^1.0.0",
117118
"pkg-pr-new": "^0.0.60",
118119
"playwright-core": "^1.45.3",
119-
"prettier": "^3.3.3",
120+
"prettier": "^3.6.2",
120121
"rolldown": "1.0.0-beta.38",
121122
"rollup": "^4.21.2",
122123
"rollup-plugin-dts": "^6.1.1",
@@ -142,6 +143,7 @@
142143
"node": ">= 20"
143144
},
144145
"private": true,
146+
"prettier": "@kazupon/prettier-config",
145147
"lint-staged": {
146148
"*.{json,md,yml}": [
147149
"prettier --write"

0 commit comments

Comments
 (0)