Skip to content

Commit 4b6841e

Browse files
committed
feat: remove Vue support and related configurations
1 parent d55d04d commit 4b6841e

18 files changed

Lines changed: 8 additions & 363 deletions

README.md

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ import { withConfig } from "@goodbyenjn/configs/eslint";
3434
export default withConfig();
3535
```
3636

37-
本配置会根据 `package.json` 文件中是否存在 `react``vue``typescript` 依赖项来自动启用对应的规则。
37+
本配置会根据 `package.json` 文件中是否存在 `react``typescript` 依赖项来自动启用对应的规则。
3838

3939
你也可以手动覆盖相关配置,例如:
4040

@@ -56,9 +56,6 @@ export default [
5656
"react/react-in-jsx-scope": "off",
5757
},
5858
},
59-
60-
// 启用 Vue 相关规则
61-
vue: true,
6259
}),
6360
];
6461
```

package.json

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -54,16 +54,14 @@
5454
"eslint-plugin-import-x": "^4.16.2",
5555
"eslint-plugin-react": "7.37.5",
5656
"eslint-plugin-react-hooks": "5.2.0",
57-
"eslint-plugin-vue": "^10.8.0",
5857
"find-up-simple": "^1.0.1",
5958
"globals": "17.5.0",
6059
"local-pkg": "1.1.2",
6160
"prettier": "^3.8.3",
6261
"rolldown": "1.0.0-rc.16",
6362
"rolldown-plugin-dts": "^0.23.2",
6463
"typescript": "^6.0.3",
65-
"vitest": "^4.1.4",
66-
"vue-eslint-parser": "^10.4.0"
64+
"vitest": "^4.1.4"
6765
},
6866
"peerDependencies": {
6967
"eslint": "^10.2.0",

pnpm-lock.yaml

Lines changed: 2 additions & 94 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

scripts/patches/eslint-plugin-vue.patch

Lines changed: 0 additions & 37 deletions
This file was deleted.

src/eslint/configs/index.ts

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,4 +4,3 @@ export * from "./imports";
44
export * from "./javascript";
55
export * from "./react";
66
export * from "./typescript";
7-
export * from "./vue";

src/eslint/configs/typescript.ts

Lines changed: 2 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import { GLOB_JS, GLOB_JSX, GLOB_SRC, GLOB_VUE } from "@/shared/globs";
1+
import { GLOB_JS, GLOB_JSX, GLOB_SRC } from "@/shared/globs";
22
import { configAlloyTypescript, parserTypescript, pluginTypescript } from "@/shared/modules";
33

44
import type { ESLintConfig, TypeScriptConfig, TypeScriptOverride } from "../types";
@@ -7,15 +7,10 @@ export const typescript = (
77
config: TypeScriptConfig,
88
override: TypeScriptOverride,
99
): ESLintConfig<TypeScriptOverride>[] => {
10-
const { useVue, parserOptions } = config;
10+
const { parserOptions } = config;
1111
const extraFileExtensions: string[] = [];
1212
const files = [GLOB_SRC];
1313

14-
if (useVue) {
15-
extraFileExtensions.push(".vue");
16-
files.push(GLOB_VUE);
17-
}
18-
1914
return [
2015
{
2116
name: "goodbyenjn:typescript:common",

src/eslint/configs/vue.ts

Lines changed: 0 additions & 51 deletions
This file was deleted.

0 commit comments

Comments
 (0)