Browse Source

chore: 添加 lint/lint:fix 命令

tnt group 3 years ago
parent
commit
610a8170ef
1 changed files with 4 additions and 2 deletions
  1. 4 2
      package.json

+ 4 - 2
package.json

@@ -6,7 +6,9 @@
     "build": "vue-tsc --noEmit && vite build",
     "preview": "vite preview",
     "new": "plop --plopfile ./plop/plopfile.js",
-    "postinstall": "husky install"
+    "postinstall": "husky install",
+    "lint": "eslint --ext .vue,.js,.jsx,.ts,.tsx ./ --max-warnings 0",
+    "lint:fix": "eslint --ext .vue,.js,jsx,.ts,.tsx ./ --fix"
   },
   "dependencies": {
     "@types/color": "^3.0.3",
@@ -69,4 +71,4 @@
     "vue-echarts": "^6.0.2",
     "vue-tsc": "^0.28.10"
   }
-}
+}