forked from element-plus-x/ruoyi-element-ai
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy patheslint.config.js
More file actions
38 lines (37 loc) · 747 Bytes
/
eslint.config.js
File metadata and controls
38 lines (37 loc) · 747 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
import antfu from "@antfu/eslint-config";
// 使用 antfu 配置
export default antfu({
vue: {
"vue/block-order": [
"error",
{
// 块顺序
order: ["script", "template", "style"],
},
],
},
typescript: true,
stylistic: {
indent: 2, // 缩进
semi: true, // 语句分号
quotes: "single", // 单引号
},
rules: {
"new-cap": ["off", { newIsCap: true, capIsNew: false }],
"no-console": "off", // 忽略console
},
ignores: [
"**/dist/**",
"**/node_modules/**",
"**/build/**",
"**/lib/**",
"**/es/**",
"**/types/**",
"**/public/**",
"**/vite.config.ts",
"**/eslint.config.js",
"./*.cjs",
"./*.js",
"./package.json",
],
});