Skip to content

Commit 58aa53b

Browse files
committed
🔧 Remove ESLint configuration files and .eslintignore to streamline project setup. Adjust TypeScript configuration in tsconfig.json and refine LogView.vue by removing console log statements for cleaner code.
1 parent eb4390f commit 58aa53b

File tree

5 files changed

+15
-79
lines changed

5 files changed

+15
-79
lines changed

.eslintignore

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

eslint.config.js

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

eslint.config.mjs

Lines changed: 13 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -21,13 +21,7 @@ export default ts.config(
2121
...ts.configs.recommended,
2222
...vue.configs["flat/recommended"],
2323
{
24-
files: ["**/*.vue"],
2524
languageOptions: {
26-
parserOptions: {
27-
parser: ts.parser,
28-
ecmaVersion: "latest",
29-
sourceType: "module"
30-
},
3125
globals: {
3226
// Browser globals
3327
console: "readonly",
@@ -42,7 +36,19 @@ export default ts.config(
4236
GitHubMirror: "readonly",
4337
FrpcProxy: "readonly",
4438
LocalPort: "readonly",
45-
FrpConfig: "readonly"
39+
FrpConfig: "readonly",
40+
Proxy: "readonly",
41+
FrpVersion: "readonly"
42+
}
43+
}
44+
},
45+
{
46+
files: ["**/*.vue"],
47+
languageOptions: {
48+
parserOptions: {
49+
parser: ts.parser,
50+
ecmaVersion: "latest",
51+
sourceType: "module"
4652
}
4753
}
4854
},

src/views/logger/LogView.vue

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,6 @@ const updateFilteredLogs = () => {
3535
// 使用节流函数处理搜索输入
3636
const throttledSearch = useDebounceFn((value: string) => {
3737
searchKeyword.value = value;
38-
console.log(searchKeyword.value, "keyword");
3938
updateFilteredLogs();
4039
}, 300);
4140

tsconfig.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@
2222
]
2323
},
2424
"types": [
25-
// "node",
25+
"node",
2626
"vite/client",
2727
"element-plus/global"
2828
],
@@ -46,4 +46,4 @@
4646
"dist",
4747
"**/*.js"
4848
]
49-
}
49+
}

0 commit comments

Comments
 (0)