This repository has been archived by the owner on Jul 16, 2020. It is now read-only.
/
.eslintrc
118 lines (118 loc) · 2.61 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
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
{
"extends": [
"eslint:recommended",
"plugin:import/errors",
"plugin:import/warnings"
],
"env": {
"browser": true,
"node": true,
"es6": true,
"jasmine": true
},
"parser": "babel-eslint",
"parserOptions": {
"ecmaFeatures": {
"jsx": true
},
"ecmaVersion": 6
},
"globals": {
"fetch": true,
"FormData": true,
"define": true,
"jest": true,
"process": true,
"global": true,
"analytics": "true",
"test": "true"
},
"plugins": [
"flowtype",
"import",
"react"
],
"rules": {
"arrow-body-style": [2, "as-needed"],
"arrow-spacing": 2,
"brace-style": [2, "1tbs"],
"camelcase": [2, { "properties": "never" }],
"comma-style": 2,
"curly": 0,
"dot-location": [2, "property"],
"dot-notation": 2,
"eqeqeq": 2,
"indent": [2, 2, {"SwitchCase": 1}],
"jsx-quotes": [0, "prefer-double"],
"key-spacing": 0,
"keyword-spacing": ["error", {"before": true, "after": true}],
"new-cap": 0,
"no-alert": 2,
"no-caller": 2,
"no-dupe-keys": 0,
"no-eval": 2,
"no-extend-native": 2,
"no-implied-eval": 2,
"no-floating-decimal": 2,
"no-lone-blocks": 2,
"no-multi-spaces": 0,
"no-native-reassign": 2,
"no-new-func": 2,
"no-param-reassign": 1,
"no-spaced-func": 2,
"no-trailing-spaces": 0,
"no-underscore-dangle": 0,
"no-unneeded-ternary": 2,
"no-unused-expressions": 2,
"no-useless-concat": 2,
"quotes": 0,
"prefer-const": 2,
"prefer-spread": 2,
"react/jsx-key": 2,
"react/jsx-no-duplicate-props": 2,
"react/jsx-no-undef": 2,
"react/jsx-pascal-case": 1,
"react/jsx-uses-react": 2,
"react/jsx-uses-vars": 2,
"react/no-multi-comp": 1,
"react/no-unknown-property": 2,
"react/prop-types": 1,
"react/react-in-jsx-scope": 2,
"semi": [2, "always"],
"semi-spacing": 0,
"space-before-blocks": 2,
"space-infix-ops": 2,
"space-unary-ops": 2,
"strict": 0,
"flowtype/require-parameter-type": 0,
"flowtype/require-return-type": [
0,
"always",
{
"annotateUndefined": "never"
}
],
"flowtype/space-after-type-colon": [
0,
"always"
],
"flowtype/space-before-type-colon": [
0,
"never"
],
"flowtype/type-id-match": [
0,
"^([A-Z][a-z0-9]+)+Type$"
],
"flowtype/define-flow-type": 1,
"flowtype/use-flow-type": 1,
"import/no-named-as-default-member": 0,
},
"settings": {
"jsx": true,
"es6": true,
"flowtype": {
"onlyFilesWithFlowAnnotation": true
}
}
}