-
Notifications
You must be signed in to change notification settings - Fork 8
/
.eslintrc
79 lines (76 loc) · 2.16 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
{
"parser": "babel-eslint",
"ecmaFeatures": {
"jsx": true,
"modules": true
},
"env": {
"mocha": true,
"browser": true,
"node": true
},
"globals": {
"__DEV__": true,
"Promise": true,
},
"plugins": [
"babel",
"react",
"react-native"
],
"rules": {
"quotes": [ 2, "single" ],
"semi": [ 2, "never" ],
"no-cond-assign": 0,
"camelcase": [ 2, { "properties": "never" } ],
"curly": [ 2, "all" ],
"no-eq-null": 2,
"eqeqeq": 2,
"no-eval": 0,
"no-extend-native": 2,
"block-scoped-var": 2,
"indent": [ 2, 2, { "SwitchCase": 1 } ],
"wrap-iife": [ 2, "any" ],
"max-depth": [ 2, 3 ],
"max-statements": [ 2, 30 ],
"no-shadow": 2,
"no-multi-spaces": ["error", { "exceptions": { "Property": true } }],
"no-multiple-empty-lines": ["error", { "max": 1, "maxBOF": 0, "maxEOF": 0 }],
"no-unused-vars": 2,
"no-undef": 2,
"no-underscore-dangle": ["error", { "allow": [ "__DEV__" ] }],
"dot-notation": 0,
"no-with": 2,
"brace-style": 2,
"no-mixed-spaces-and-tabs": 2,
"one-var": [ 2, { "uninitialized": "always", "initialized": "never" } ],
"quote-props": [ 2, "as-needed" ],
"key-spacing": [ 2, { "beforeColon": false, "afterColon": true } ],
"space-unary-ops": [ 2, { "nonwords": false, "overrides": {} } ],
"space-before-function-paren": [ 2, "never" ],
"space-in-parens": [ 2, "never" ],
"no-trailing-spaces": 2,
"new-cap": 2,
"keyword-spacing": [ 2, {} ],
"spaced-comment": [ 2, "always" ],
"space-infix-ops": 2,
"space-before-blocks": [ 2, "always" ],
"comma-dangle": 0,
"linebreak-style": [ 2, "unix" ],
"no-mixed-requires": [0],
"eol-last": [0],
"generator-star-spacing": 1,
"object-shorthand": 1,
"arrow-parens": [2, "as-needed"],
"babel/new-cap": 1,
"babel/no-await-in-loop": 1,
"react/jsx-uses-react": 2,
"react/jsx-uses-vars": 2,
"react/react-in-jsx-scope": 2,
"react/prop-types": 2,
"react-native/no-unused-styles": 2,
"react-native/split-platform-components": 2,
"react-native/no-inline-styles": 2,
"react-native/no-color-literals": 2,
}
}