From 3e6109695e2cda921630e92022d17044826acb03 Mon Sep 17 00:00:00 2001 From: XiaoDaiGua-Ray <443547225@qq.com> Date: Thu, 3 Aug 2023 10:31:19 +0800 Subject: [PATCH] add eslint --- .npmrc | 3 --- package.json | 12 ++++++++---- 2 files changed, 8 insertions(+), 7 deletions(-) diff --git a/.npmrc b/.npmrc index 45daf7b5..808af113 100644 --- a/.npmrc +++ b/.npmrc @@ -2,6 +2,3 @@ package-lock=true prefer-offline=true save-exact=true engine-strict=true -engines={ - "pnpm": ">=8.6.6" -} \ No newline at end of file diff --git a/package.json b/package.json index 1acbd7d1..1c1a09f2 100644 --- a/package.json +++ b/package.json @@ -3,13 +3,17 @@ "private": false, "version": "4.1.4", "type": "module", + "engines": { + "node": ">=16.0.0", + "pnpm": ">=8.0.0" + }, "scripts": { "dev": "vite", - "build": "vue-tsc --noEmit && vite build --mode production", + "build": "eslint src && vue-tsc --noEmit && vite build --mode production", "preview": "vite preview", - "test": "vue-tsc --noEmit && vite build --mode test", - "dev-build": "vue-tsc --noEmit && vite build --mode development", - "report": "vue-tsc --noEmit && vite build --mode report", + "test": "eslint src && vue-tsc --noEmit && vite build --mode test", + "dev-build": "eslint src && vue-tsc --noEmit && vite build --mode development", + "report": "eslint src && vue-tsc --noEmit && vite build --mode report", "prepare": "husky install" }, "lint-staged": {