-
Notifications
You must be signed in to change notification settings - Fork 72
/
eslint.config.js
63 lines (62 loc) · 1.64 KB
/
eslint.config.js
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
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
// eslint.config.js
import antfu from '@antfu/eslint-config'
// TODO DDL 迭代
export default antfu({
},
{
ignores: [
'packages/theme/*.js',
'packages/blogpress/case/bad/*.md'
]
},
{
rules: {
'@typescript-eslint/ban-types': 'off',
'@typescript-eslint/no-explicit-any': 'off',
'@typescript-eslint/explicit-module-boundary-types': 'off',
'import/extensions': 'off',
'quotes': [
'warn',
'single',
],
'semi': [
'warn',
'never',
],
'import/no-unresolved': 'off',
'import/prefer-default-export': 'off',
'no-param-reassign': 'off',
'import/no-extraneous-dependencies': 'off',
'no-restricted-syntax': 'off',
'no-bitwise': 'off',
'camelcase': 'off',
'no-case-declarations': 'off',
'@typescript-eslint/no-namespace': 'off',
'no-undef': 'off',
'no-shadow': 'off',
'max-len': 'off',
'@typescript-eslint/no-var-requires': 'off',
'no-use-before-define': 'off',
'no-continue': 'off',
'no-extend-native': 'warn',
'no-underscore-dangle': 'off',
'@typescript-eslint/no-non-null-assertion': 'off',
'non-null-expression': 'off',
'@typescript-eslint/ban-ts-comment': 'off',
'consistent-return': 'off',
'no-console': 'off',
'ts/comma-dangle': 'off',
'curly': 'off',
'unicorn/prefer-node-protocol': 'off',
'ts/no-var-requires': 'off',
'ts/no-require-imports': 'off',
'ts/ban-ts-comment': 'off',
'vue/prefer-import-from-vue': 'off',
'jsdoc/no-types': 'off',
'no-template-curly-in-string': 'off',
'use-isnan': 'warn',
'unicorn/prefer-number-properties': 'off',
'no-unneeded-ternary': 'off'
},
}
)