-
Notifications
You must be signed in to change notification settings - Fork 5
/
Copy path.eslintrc
76 lines (76 loc) · 2.2 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
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
{
"extends": ["airbnb", "prettier"],
"parser": "babel-eslint",
"plugins": ["jest"],
"env": {
"jest/globals": true
},
"globals": {
"Taro": true,
"Page": true,
"Component": true,
"App": true,
"wx": true,
"getApp": true,
"getCurrentPages": true,
"Behavior": true,
"jest": true,
"R": true
},
"settings": {
"react": {
"pragma": "Taro",
"version": "15.0"
}
},
"rules": {
"max-lines": ["error", { "max": 500, "skipComments": true, "skipBlankLines": true }],
"import/no-extraneous-dependencies": "off",
"jest/no-disabled-tests": "warn",
"jest/no-focused-tests": "error",
"jest/no-identical-title": "error",
"jest/prefer-to-have-length": "warn",
"jest/valid-expect": "error",
"react/react-in-jsx-scope":"off",
"react/jsx-filename-extension": "off",
"react/jsx-no-undef": "off",
"react/jsx-indent": "off",
"react/no-access-state-in-setstate":"off",
"no-shadow": "off",
"calemcase": "off",
"class-methods-use-this": "off",
"react/destructuring-assignment":"off",
"consistent-return": "off",
"array-callback-return": "off",
"import/named": "off",
"import/prefer-default-export": 1,
"one-var": "off",
"no-underscore-dangle": "off",
"no-plusplus": "off",
"camelcase": 1,
"no-console": "off",
"no-empty": 1,
"no-unused-expressions": 1,
"no-multi-assign": "off",
"import/first": 1,
"prefer-promise-reject-errors": 1,
"import/extensions": "off",
"prefer-const": 1,
"no-restricted-properties": [
2,
{
"object": "Proxy"
}
],
"no-unused-vars": "off",
"global-require": "off",
"no-bitwise": "off",
"import/no-dynamic-require": "off",
"no-restricted-syntax": 1,
"no-param-reassign": 1,
"no-nested-ternary": 1,
"no-useless-escape": "off",
"no-control-regex": "off",
"no-await-in-loop": "off"
}
}