-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.eslintrc.js
36 lines (36 loc) · 1.18 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
module.exports = {
// AlloyTeam eslint规则 github: https://github.com/AlloyTeam/eslint-config-alloy#typescript-react
extends: [
'alloy',
'alloy/react',
'alloy/typescript',
],
env: {
// 这里填入你的项目用到的环境
// 它们预定义了不同环境的全局变量,比如:
//
// browser: true,
// node: true,
// jest: true,
// jquery: true
},
globals: {
// 这里填入你的项目需要的全局变量
// false 表示这个全局变量不允许被重新赋值,比如:
//
// myGlobal: false
},
rules: {
// 这里填入你的项目需要的个性化配置
// 是否必须声明类中作用 private、public...
"@typescript-eslint/explicit-member-accessibility": "off",
"no-unused-expressions": 0,
"no-invalid-this": "off",
"@typescript-eslint/no-invalid-this": "off",
"@typescript-eslint/no-require-imports": "off",
// "react-hooks/rules-of-hooks": "error",
// "react-hooks/exhaustive-deps": "error",
"@typescript-eslint/explicit-member-accessibility": ['error', { accessibility: 'no-public' }],
"semi": ["error", "never"],
}
};