-
Notifications
You must be signed in to change notification settings - Fork 0
/
.eslintrc
80 lines (80 loc) · 2.09 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
{
"parser": "babel-eslint",
"extends": "eslint:recommended",
"plugins": [
"react",
"react-native"
],
"ecmaFeatures": {
"jsx": true,
"modules": true
},
"env": {
"browser": true,
"amd": true,
"es6": true,
"node": true
},
"rules": {
"array-bracket-spacing": [1, "never"],
"block-spacing": [1, "never"],
"comma-spacing": [1, {"before": false, "after": true}],
"comma-style": [1, "last"],
"comma-dangle": 1,
"computed-property-spacing": [1, "never"],
"key-spacing": [1, {"beforeColon": false, "afterColon": true}],
"brace-style": 1,
"eqeqeq": 1,
"indent": [1, 2, { "SwitchCase": 1 }],
"quotes": [1, "single"],
"new-parens": 1,
"newline-after-var": [1, "always"],
"no-lonely-if": 1,
"space-infix-ops": 1,
"no-negated-condition": 1,
"no-multiple-empty-lines": [1, {"max": 2}],
"space-before-function-paren": [1, { "anonymous": "always", "named": "never" }],
"no-inline-comments": 1,
"no-spaced-func": 1,
"space-in-parens": [1, "never"],
"no-unneeded-ternary": 1,
"space-before-blocks": 1,
"linebreak-style": [0, "unix"],
"new-cap": 1,
"no-undef": 1,
"jsx-quotes": [1, "prefer-double"],
"global-strict": 0,
"semi": 1,
"no-extra-semi": 1,
"no-extra-bind": 1,
"no-case-declarations": 0,
"no-eval": 0,
"no-invalid-this": 0,
"no-underscore-dangle": 0,
"no-extend-native": 1,
"no-console": 1,
"no-lone-blocks": 1,
"no-unused-vars": 1,
"no-trailing-spaces": [1, { "skipBlankLines": true }],
"no-unreachable": 1,
"no-multi-spaces": 1,
"no-multi-str": 1,
"no-self-compare": 1,
"no-catch-shadow": 1,
"no-use-before-define": 1,
"no-shadow": 1,
"no-undefined": 1,
"no-unused-expressions": 1,
"no-void": 1,
"no-alert": 1,
"arrow-parens": [1, "as-needed"],
"arrow-spacing": 1,
"no-var": 1,
"no-debugger": 0,
"react/jsx-uses-react": 1,
"react/jsx-indent": [1, 2],
"react/jsx-uses-vars": 1,
"react-native/no-unused-styles": 2,
"react-native/split-platform-components": 2
}
}