From ed2a99c0e294f4dc806dd14d37672e4f8fc0d028 Mon Sep 17 00:00:00 2001 From: BTMuli Date: Mon, 3 Jul 2023 14:23:10 +0800 Subject: [PATCH] =?UTF-8?q?=F0=9F=94=A8=20=E6=9B=B4=E6=96=B0=20script?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- package.json | 21 ++++++--------------- 1 file changed, 6 insertions(+), 15 deletions(-) diff --git a/package.json b/package.json index fd71e376..ede5893c 100644 --- a/package.json +++ b/package.json @@ -9,12 +9,12 @@ "build": "tauri build", "debug": "tauri build --debug", "dev": "concurrently -k \"tauri dev --exit-on-panic\" \"vue-devtools\"", - "lint": "concurrently \"npm:lint:*(!fix)\"", - "lint:fix": "concurrently \"npm:lint:*:fix\"", + "lint": "concurrently \"pnpm:lint:*(!fix)\"", + "lint:fix": "concurrently \"pnpm:lint:*:fix\"", "lint:code": "eslint .", "lint:code:fix": "eslint . --fix", "lint:style": "stylelint \"src/**/*.{vue,css}\"", - "lint:style:fix": "pnpm run lint:style -- --fix", + "lint:style:fix": "pnpm lint:style --fix", "prettier": "prettier . --write", "tauri": "tauri", "update:submodule": "git submodule update --remote --recursive", @@ -23,18 +23,9 @@ "prepare": "husky install" }, "lint-staged": { - "*.ts": [ - "eslint --fix", - "prettier --write" - ], - "*.vue": [ - "eslint --fix", - "prettier --write" - ], - "*.css": "stylelint --fix", - "*.yml": "prettier --write", - "*.json": "prettier --write", - ".md": "prettier --write" + "*.{ts,vue}": "eslint --fix", + "*.{vue,css}": "stylelint --fix", + "*.{ts,vue,css,yml,json,md}": "prettier --write" }, "bugs": { "url": "https://github.com/BTMuli/Tauri.Genshin/issues"