From 08d0c2dea69ead72105612febbbcbb9975ca46ec Mon Sep 17 00:00:00 2001 From: liushilong <2224574157@qq.com> Date: Fri, 12 Apr 2024 23:30:57 +0800 Subject: [PATCH 1/3] =?UTF-8?q?feat:=20eslint=E9=85=8D=E7=BD=AE?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- eslint.config.js | 3 +++ 1 file changed, 3 insertions(+) diff --git a/eslint.config.js b/eslint.config.js index d1b5c9c..ffa7b3b 100644 --- a/eslint.config.js +++ b/eslint.config.js @@ -19,6 +19,9 @@ module.exports = antfu( 'unused-imports/no-unused-vars': 'off', 'unused-imports/no-unused-imports': 'off', 'jsdoc/require-returns-description': 'off', + 'eqeqeq': 'off', + 'no-console': 'off', + 'vue/custom-event-name-casing': 'off', 'no-restricted-syntax': [ // eslint-disable-next-line node/prefer-global/process process.env.MODE === 'production' ? 2 : 0, From 3f811759e3148a50cf35634cf3a33775a23b0908 Mon Sep 17 00:00:00 2001 From: liushilong <2224574157@qq.com> Date: Fri, 12 Apr 2024 23:31:51 +0800 Subject: [PATCH 2/3] =?UTF-8?q?feat:=20eslint=E9=85=8D=E7=BD=AEsave?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- package.json | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/package.json b/package.json index 6ed43e6..f2cd289 100644 --- a/package.json +++ b/package.json @@ -77,8 +77,8 @@ "vue-tsc": "^1.8.22" }, "lint-staged": { - "*.{ts,tsx,vue}": [ - "pnpm lint:fix" + "*.{ts,tsx,vue,js}": [ + "eslint --fix" ] } } From d4d6be6e25b1740de2746b8c34f0ee8ff5c1d940 Mon Sep 17 00:00:00 2001 From: liushilong <2224574157@qq.com> Date: Fri, 12 Apr 2024 23:32:37 +0800 Subject: [PATCH 3/3] =?UTF-8?q?feat:=20git=E6=8F=90=E4=BA=A4=E5=89=8D?= =?UTF-8?q?=E6=93=8D=E4=BD=9C?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .husky/pre-commit | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/.husky/pre-commit b/.husky/pre-commit index c07b1e6..9521234 100644 --- a/.husky/pre-commit +++ b/.husky/pre-commit @@ -2,4 +2,5 @@ . "$(dirname -- "$0")/_/husky.sh" # node_modules/.bin/lint-staged -date \ No newline at end of file +date +npx lint-staged \ No newline at end of file