-
Notifications
You must be signed in to change notification settings - Fork 0
/
.eslintrc.js
36 lines (36 loc) · 865 Bytes
/
.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
module.exports = {
root: true,
extends: ['alloy', 'alloy/react', 'alloy/typescript'],
parserOptions: {
warnOnUnsupportedTypeScriptVersion: false
},
env: {
es2021: true,
browser: true,
node: true
},
settings: {
react: {
version: 'detect'
}
},
plugins: ['simple-import-sort'],
rules: {
'simple-import-sort/imports': 'error',
'simple-import-sort/exports': 'error',
'default-case': 2,
'guard-for-in': 2,
'no-eval': 2,
'no-implied-eval': 2,
'no-lone-blocks': 2,
'comma-dangle': 2,
// 变量定义但未使用
'require-await': 0,
'no-unused-vars': 0,
'@typescript-eslint/no-require-imports': 0,
'@typescript-eslint/explicit-member-accessibility': 0,
'@typescript-eslint/member-ordering': 0,
'react/jsx-no-useless-fragment': 0,
'no-param-reassign': 0
}
};