forked from tusen-ai/naive-ui
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.eslintrc.js
91 lines (91 loc) · 2.13 KB
/
.eslintrc.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
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
module.exports = {
extends: ['plugin:markdown/recommended', 'prettier'],
overrides: [
{
files: '*.vue',
extends: [
'@vue/typescript/recommended',
'plugin:vue/vue3-recommended',
'@vue/typescript'
]
},
{
files: ['*.vue', '*.js'],
extends: ['plugin:vue/essential', '@vue/standard'],
rules: {
'vue/multiline-html-element-content-newline': 0,
'vue/multi-word-component-names': 0,
'vue/max-attributes-per-line': [
2,
{
singleline: 20,
multiline: 1
}
],
'vue/require-default-prop': 0,
'vue/no-multiple-template-root': 0,
'vue/no-lone-template': 0,
'vue/no-v-model-argument': 0,
'vue/one-component-per-file': 0,
'import/no-cycle': 1
}
},
{
files: ['*.ts', '*.tsx'],
extends: ['standard-with-typescript', 'plugin:import/typescript'],
parserOptions: {
project: './tsconfig.json',
ecmaFeatures: {
jsx: true
}
},
rules: {
'@typescript-eslint/strict-boolean-expressions': 0,
'@typescript-eslint/prefer-nullish-coalescing': 0,
'@typescript-eslint/naming-convention': 0,
'multiline-ternary': 0,
'no-void': 0,
'import/no-cycle': 1
}
},
{
files: ['light.ts'],
rules: {
'@typescript-eslint/explicit-module-boundary-types': 0,
'@typescript-eslint/explicit-function-return-type': 0
}
},
{
files: '**/*.md/*.js',
rules: {
'no-undef': 0
}
},
{
files: ['**/*.md/*.ts'],
processor: 'markdown/markdown',
rules: {
'import/order': 0,
'prettier/prettier': 0,
'@typescript-eslint/consistent-type-definitions': 0
}
},
{
files: '*.spec.ts',
globals: {
describe: 'readonly',
it: 'readonly',
expect: 'readonly'
},
rules: {
'@typescript-eslint/no-floating-promises': 0
}
},
{
files: '*',
globals: {
__DEV__: 'readonly'
}
}
]
}