-
Notifications
You must be signed in to change notification settings - Fork 0
/
.eslintrc
77 lines (77 loc) · 1.98 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
{
"extends": ["eslint:recommended", "plugin:react-native/all", "plugin:react/all", "google", "plugin:jest/recommended"],
"globals": {
"PositionOptions": false,
"Coordinates": false,
"Position": false,
"require": false
},
"plugins": [
"react",
"babel",
"react-native",
"jest"
],
"env": {
"es6": true,
"node": true,
"browser": true,
"jest": true
},
"ecmaFeatures": {
"jsx": true,
"modules": true
},
"parser": "babel-eslint",
"parserOptions": {
"sourceType": "module",
"ecmaFeatures": {
"jsx": true
}
},
"rules": {
"eqeqeq": ["error", "smart"],
"indent": ["error", 2],
"new-cap": 0,
"max-len": [2, {"code": 120, "ignoreTrailingComments": true}],
"no-undef": 2,
"require-jsdoc": 0,
"prefer-const": "error",
"arrow-spacing": "error",
"padding-line-between-statements": [
"error",
{"blankLine": "always", "prev": "*", "next": "return"}
],
"jsx-quotes": "error",
"space-infix-ops": ["error", {"int32Hint": true}],
"space-unary-ops": [
1, {
"words": true,
"nonwords": false,
"overrides": {
"new": false,
"++": true
}
}],
"no-multiple-empty-lines": ["error", {"max": 1, "maxBOF": 1}],
"react/forbid-component-props": 0,
"react/forbid-prop-types": 0,
"react/jsx-indent": [2, 2],
"react/jsx-indent-props": [2, 2],
"react/jsx-no-literals": 0,
"react/jsx-filename-extension": 0,
"react/no-set-state": 0,
"react/prefer-stateless-function": 0,
"react/no-multi-comp": [2, { "ignoreStateless": true }],
"react/jsx-one-expression-per-line": 0,
"react/destructuring-assignment": 0,
"react/sort-prop-types": 0,
"react/jsx-sort-default-props": 0,
"react/jsx-max-depth": [2, {"max": 7}],
"no-invalid-this": 0,
"babel/no-invalid-this": 2,
"react/no-access-state-in-setstate": 0,
"react/prop-types": [2],
"react/forbid-foreign-prop-types": 0
}
}