Kaynağa Gözat

chore: 将 lint 工具从 oxlint 切换为 eslint 并启用多语言支持

更新 package.json 中的 lint 脚本,使用 eslint 替代 oxlint
在 .vscode/settings.json 中启用 eslint 对所有支持语言的校验
feige996 10 ay önce
ebeveyn
işleme
e171c29d28
2 değiştirilmiş dosya ile 24 ekleme ve 24 silme
  1. 22 22
      .vscode/settings.json
  2. 2 2
      package.json

+ 22 - 22
.vscode/settings.json

@@ -92,27 +92,27 @@
 
   // Enable eslint for all supported languages
   "eslint.validate": [
-    // "javascript",
-    // "javascriptreact",
-    // "typescript",
-    // "typescriptreact",
-    "vue"
-    // "html",
-    // "markdown",
-    // "json",
-    // "json5",
-    // "jsonc",
-    // "yaml",
-    // "toml",
-    // "xml",
-    // "gql",
-    // "graphql",
-    // "astro",
-    // "svelte",
-    // "css",
-    // "less",
-    // "scss",
-    // "pcss",
-    // "postcss"
+    "javascript",
+    "javascriptreact",
+    "typescript",
+    "typescriptreact",
+    "vue",
+    "html",
+    "markdown",
+    "json",
+    "json5",
+    "jsonc",
+    "yaml",
+    "toml",
+    "xml",
+    "gql",
+    "graphql",
+    "astro",
+    "svelte",
+    "css",
+    "less",
+    "scss",
+    "pcss",
+    "postcss"
   ]
 }

+ 2 - 2
package.json

@@ -72,8 +72,8 @@
     "type-check": "vue-tsc --noEmit",
     "openapi-ts-request": "openapi-ts",
     "prepare": "git init && husky",
-    "lint": "oxlint",
-    "lint:fix": "oxlint --fix"
+    "lint": "eslint",
+    "lint:fix": "eslint --fix"
   },
   "dependencies": {
     "@dcloudio/uni-app": "3.0.0-4060620250520001",