From 9b1f1de649b79fac7c3297dff7bb306acdf5c02c Mon Sep 17 00:00:00 2001 From: xiangheng <11675084@qq.com> Date: Wed, 22 Mar 2023 14:23:56 +0800 Subject: [PATCH] =?UTF-8?q?=E6=B8=85=E7=90=86git=20lint?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .husky/commit-msg | 4 ---- .husky/pre-commit | 4 ---- package.json | 9 ++++----- 3 files changed, 4 insertions(+), 13 deletions(-) delete mode 100644 .husky/commit-msg delete mode 100644 .husky/pre-commit diff --git a/.husky/commit-msg b/.husky/commit-msg deleted file mode 100644 index 741b0fb..0000000 --- a/.husky/commit-msg +++ /dev/null @@ -1,4 +0,0 @@ -#!/usr/bin/env sh -. "$(dirname -- "$0")/_/husky.sh" - -pnpm commitlint --edit diff --git a/.husky/pre-commit b/.husky/pre-commit deleted file mode 100644 index a5a29d9..0000000 --- a/.husky/pre-commit +++ /dev/null @@ -1,4 +0,0 @@ -#!/usr/bin/env sh -. "$(dirname -- "$0")/_/husky.sh" - -pnpm lint-staged diff --git a/package.json b/package.json index 7e59add..dd2288d 100644 --- a/package.json +++ b/package.json @@ -6,7 +6,7 @@ "dev": "vite", "build": "vite build", "preview": "vite preview", - "prepare": "husky install", + "lint:eslint": "eslint \"src/**/*.{vue,js,jsx}\" --fix", "lint:stylelint": "stylelint \"src/**/*.{vue,css,less,scss}\" --fix" }, @@ -20,8 +20,7 @@ "xe-utils": "^3.5.7" }, "devDependencies": { - "@commitlint/cli": "^17.0.3", - "@commitlint/config-conventional": "^17.0.3", + "@vitejs/plugin-legacy": "^4.0.2", "@vitejs/plugin-vue2": "^2.2.0", "autoprefixer": "^10.4.14", @@ -30,9 +29,9 @@ "eslint-define-config": "^1.5.1", "eslint-plugin-prettier": "^4.2.1", "eslint-plugin-vue": "^9.1.1", - "husky": "^8.0.1", + "less": "^4.1.3", - "lint-staged": "^13.0.3", + "postcss-html": "^1.4.1", "postcss-less": "^6.0.0", "prettier": "^2.7.1",