-
Notifications
You must be signed in to change notification settings - Fork 3
Expand file tree
/
Copy patheslint.config.js
More file actions
44 lines (43 loc) · 1.35 KB
/
eslint.config.js
File metadata and controls
44 lines (43 loc) · 1.35 KB
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
39
40
41
42
43
44
import antfu from '@antfu/eslint-config'
export default antfu({
extends: ['eslint:recommended', 'plugin:prettier/recommended'],
vue: {
'vue/block-order': [
'error',
{
// 块顺序
order: ['script', 'template', 'style'],
},
],
},
typescript: true,
stylistic: {
indent: 2, // 缩进
semi: false, // 语句分号
quotes: 'single', // 单引号
},
rules: {
'new-cap': ['off', { newIsCap: true, capIsNew: false }],
'no-console': 'off', // 忽略console
'regexp/no-super-linear-backtracking': 'off', // 忽略正则表达式的超线性回溯
'no-unmodified-loop-condition': 'off', // 忽略循环条件未修改
'style/operator-linebreak': 'off', // 忽略换行
'style/comma-dangle': 'off', // 忽略最后的逗号
'style/brace-style': 'off', // 忽略大括号换行风格
'antfu/if-newline': 'off', // 忽略if语句换行
'style/member-delimiter-style': 'off', // 忽略对象成员分隔符风格
'style/arrow-parens': 'off', // 忽略箭头函数参数括号
'vue/singleline-html-element-content-newline': 'off', // 忽略单行html元素内容换行
},
ignores: [
'**/dist/**',
'**/node_modules/**',
'**/build/**',
'**/lib/**',
'**/es/**',
'**/types/**',
'**/public/**',
'**/vite.config.ts',
'**/eslint.config.js',
],
})