From 1b5edfb4798e3377f023c46bb79601dd5a4a7adc Mon Sep 17 00:00:00 2001 From: XiaoDaiGua-Ray <443547225@qq.com> Date: Thu, 3 Aug 2023 11:11:21 +0800 Subject: [PATCH] add eslint check --- package.json | 12 ++++++++---- 1 file changed, 8 insertions(+), 4 deletions(-) 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": {