add eslint

This commit is contained in:
XiaoDaiGua-Ray 2023-08-03 10:31:19 +08:00
parent 50196fac8f
commit 3e6109695e
2 changed files with 8 additions and 7 deletions

3
.npmrc
View File

@ -2,6 +2,3 @@ package-lock=true
prefer-offline=true
save-exact=true
engine-strict=true
engines={
"pnpm": ">=8.6.6"
}

View File

@ -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": {