-
Notifications
You must be signed in to change notification settings - Fork 5
/
.eslintrc
executable file
·98 lines (98 loc) · 1.99 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
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
{
"extends": "airbnb-base",
"parser": "babel-eslint",
"parserOptions": {
"sourceType": "module",
"experimentalObjectRestSpread": true
},
"env": {
"node": true
},
"plugins": [
"babel"
],
"globals": {
"App": true,
"wx": true,
"getApp": true,
"Page": true,
"Component": true,
"getCurrentPages": true
},
"rules": {
"arrow-body-style": "off",
"arrow-parens": "off",
"comma-dangle": [
"error",
"always-multiline"
],
"func-names": "off",
"global-require": "off",
"id-length": "off",
"import/extensions": "off",
"import/first": "off",
"import/no-extraneous-dependencies": "off",
"import/no-mutable-exports": "off",
"import/no-unresolved": "off",
"import/prefer-default-export": "off",
"import/no-named-as-default": "off",
"jsx-a11y/label-has-for": "off",
"jsx-a11y/no-static-element-interactions": "off",
"linebreak-style": "off",
"max-len": [
"error",
120
],
"max-lines": [
"error",
{
"max": 500
}
],
"no-await-in-loop": "off",
"no-bitwise": "off",
"no-console": "error",
"no-continue": "off",
"no-loop-func": "off",
"no-mixed-operators": "off",
"no-param-reassign": "off",
"no-plusplus": "off",
"no-restricted-syntax": "off",
"no-underscore-dangle": "off",
"no-unused-vars": [
"error",
{
"varsIgnorePattern": "regeneratorRuntime|tdsdk"
}
],
"object-curly-newline":["error", { "multiline": true }],
"object-property-newline": "off",
"object-shorthand": [
"error",
"properties"
],
"operator-assignment": "off",
"prefer-destructuring": [
"warn",
{
"array": false,
"object": true
}
],
"semi": [
"error",
"never"
],
"spaced-comment": [
"error",
"always",
{
"block": {
"exceptions": [
"*"
]
}
}
]
}
}