-
Notifications
You must be signed in to change notification settings - Fork 4
Expand file tree
/
Copy patheslint.config.js
More file actions
31 lines (30 loc) · 856 Bytes
/
Copy patheslint.config.js
File metadata and controls
31 lines (30 loc) · 856 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
import antfu from '@antfu/eslint-config'
export default antfu(
{
lessOpinionated: true,
formatters: true,
vue: true,
typescript: true,
unocss: true,
ignores: [],
},
{
// Without `files`, they are general rules for all files
rules: {
'no-console': 'off',
// 'style/multiline-comment-style': ['error', 'starred-block'],
'jsdoc/convert-to-jsdoc-comments': ['warn'],
'n/prefer-global/process': 'off',
'vue/first-attribute-linebreak': 'off',
'ts/no-unused-expressions': 'off',
'unused-imports/no-unused-vars': [
'error',
{
caughtErrors: 'none',
varsIgnorePattern: '^_', // 忽略以 _ 开头的变量
argsIgnorePattern: '^_', // 忽略以 _ 开头的参数
},
],
},
},
).override('antfu/regexp/rules', () => ({}))