forked from strivelen/fine-admin
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.eslintrc.cjs
39 lines (39 loc) · 966 Bytes
/
.eslintrc.cjs
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
module.exports = {
extends: [
'alloy',
'alloy/react',
'alloy/typescript',
'./.eslintrc-auto-import.json'
],
env: {
// 你的环境变量(包含多个预定义的全局变量)
//
browser: true
// node: true
// mocha: true,
// jest: true,
// jquery: true
},
globals: {
// 你的全局变量(设置为 false 表示它不允许被重新赋值)
// myGlobal: false
API: 'readonly',
Expand: 'readonly',
ExpandRecursively: 'readonly'
},
rules: {
// 自定义你的规则
'max-params': 'off',
'no-promise-executor-return': 'off',
'@typescript-eslint/no-require-imports': 'off',
'@typescript-eslint/no-empty-interface': 'off',
'@typescript-eslint/no-invalid-void-type': 'off',
'@typescript-eslint/consistent-type-assertions': 'off',
'@typescript-eslint/consistent-type-definitions': 'off'
},
settings: {
react: {
version: 'detect'
}
}
};