-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.eslintrc
40 lines (40 loc) · 1.18 KB
/
.eslintrc
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
{
"env": {
"browser": true,
"es2021": true,
"node": true
},
"extends": [
"airbnb-base",
"plugin:react/recommended"
],
"parserOptions": {
"ecmaVersion": "latest",
"sourceType": "module"
},
"rules": {
"indent": "off",
"linebreak-style": "off", // 一致的换行符風格
"no-useless-constructor": "off",
"lines-between-class-members": "off",
"camelcase": "off",
"no-param-reassign": "off",
"no-restricted-syntax": "off", // 禁止使用特定的语法
"class-methods-use-this": "off",
"no-undef": "off", // for cornerstone
"max-len": "off",
"no-underscore-dangle": "off",
"no-shadow": "off", // 变量声明覆盖外层作用域的变量
"no-plusplus": "off",
"max-classes-per-file": "off",
"radix": "off",
"no-nested-ternary": "off",
"import/extensions": "off",
"import/no-extraneous-dependencies": "off",
"import/no-named-as-default-member": "off",
"import/no-cycle": "off",
"consistent-return": "off",
"no-case-declarations":"off",
"no-use-before-define": ["error", { "variables": false }]
}
}