-
Notifications
You must be signed in to change notification settings - Fork 1
/
.eslintrc
42 lines (41 loc) · 1.14 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
{
"extends": ["taro", "airbnb"],
"parser": "babel-eslint",
"plugins": [
"react",
"jsx-a11y",
"import"
],
"globals": {
"wx": false,
"taro": false,
"__wxConfig": false,
"getCurrentPages": false
},
"rules": {
"strict": 0,
"max-len": ["error", 200, 4, {"ignoreUrls": true}],
"react/jsx-filename-extension": [1, { "extensions": [".js", ".jsx"] }],
"import/no-extraneous-dependencies": ["error", { "devDependencies": true }],
"global-require": 0,
"no-param-reassign": 0,
"generator-star-spacing": 0,
"no-console": 0,
"class-methods-use-this": 0,
"react/react-in-jsx-scope": 0,
"react/jsx-no-bind": 0,
"no-unused-vars": ["error", { "varsIgnorePattern": "[tT]aro" }],
"react/jsx-closing-tag-location": 0,
"react/prefer-stateless-function": 0,
"react/no-array-index-key": 0,
"no-case-declarations": 0,
"react/style-prop-object": 0,
"import/prefer-default-export": 0,
"taro/this-props-function": 0,
"consistent-return": 0,
"no-else-return": 0,
"no-restricted-syntax": 0,
"prefer-destructuring": 0,
"object-curly-newline": 0
}
}