-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy patheslint.config.js
More file actions
38 lines (37 loc) · 948 Bytes
/
eslint.config.js
File metadata and controls
38 lines (37 loc) · 948 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"
// 更多自定义配置可查阅仓库:https://github.com/antfu/eslint-config
export default antfu(
{
// 使用外部格式化程序格式化 css、html、markdown 等文件
formatters: true,
// 启用样式规则
stylistic: {
// 缩进级别
indent: 2,
// 引号风格 'single' | 'double'
quotes: "double",
// 是否启用分号
semi: false,
},
// 忽略文件
ignores: [],
},
{
// 对所有文件都生效的规则
rules: {
// ts
"ts/no-use-before-define": "off",
// node
"node/prefer-global/process": "off",
// regexp
"regexp/no-unused-capturing-group": "off",
// other
"no-console": "off",
"no-debugger": "off",
"symbol-description": "off",
"antfu/if-newline": "off",
"unicorn/no-instanceof-builtins": "off",
"no-labels": "off",
},
},
)