From 7cb8a17a5b4ee7479a8e6fae77ac725089d2e9b4 Mon Sep 17 00:00:00 2001 From: BTMuli Date: Wed, 1 Apr 2026 22:45:15 +0800 Subject: [PATCH] =?UTF-8?q?=F0=9F=94=A7=20=E6=9B=B4=E6=96=B0=20Eslint=20?= =?UTF-8?q?=E9=85=8D=E7=BD=AE=EF=BC=8C=E6=9A=82=E6=97=B6=E7=A6=81=E7=94=A8?= =?UTF-8?q?=20import/order=20=E8=A7=84=E5=88=99?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- eslint/vueEslint.js | 19 ++++++++++--------- 1 file changed, 10 insertions(+), 9 deletions(-) diff --git a/eslint/vueEslint.js b/eslint/vueEslint.js index 356c1307..96f2c401 100644 --- a/eslint/vueEslint.js +++ b/eslint/vueEslint.js @@ -1,6 +1,6 @@ /** * Vue & Typescript 文件的 Eslint 配置 - * @since Beta v0.9.1 + * @since Beta v0.9.9 */ import pluginImport from "eslint-plugin-import"; import pluginPrettier from "eslint-plugin-prettier"; @@ -19,14 +19,15 @@ const tsConfigRules = { "@typescript-eslint/no-unused-expressions": ["error", { allowShortCircuit: false }], "@typescript-eslint/array-type": ["error", { default: "generic" }], "@typescript-eslint/consistent-type-definitions": ["error", "type"], - "import/order": [ - "error", - { - groups: ["builtin", "external", "internal", "parent", "sibling", "index", "unknown"], - "newlines-between": "always", - alphabetize: { order: "asc", caseInsensitive: true }, - }, - ], + // TODO: 等后续 eslint-plugin-import 适配 ESLint 10 后再启用 + // "import/order": [ + // "error", + // { + // groups: ["builtin", "external", "internal", "parent", "sibling", "index", "unknown"], + // "newlines-between": "always", + // alphabetize: { order: "asc", caseInsensitive: true }, + // }, + // ], "prettier/prettier": "error", };