-
Notifications
You must be signed in to change notification settings - Fork 4
/
.eslintrc
executable file
·160 lines (160 loc) · 3.79 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
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
{
"parser": "babel-eslint",
"parserOptions": {
"ecmaVersion": 6,
"sourceType": "module",
"ecmaFeatures": {
"modules": true,
"jsx": true
}
},
"root": true,
"env": {
"es6": true,
"browser": true
},
"plugins": [
"react",
"flowtype"
],
"extends": [
"airbnb",
"plugin:flowtype/recommended"
],
"settings": {
"react": {
"pragma": "React",
"version": "15.0"
}
},
"rules": {
"indent": [2, 2, {"SwitchCase": 1}],
"react/jsx-indent": [1, 2],
"react/jsx-indent-props": [1, 2],
"semi": [1, "always"],
"strict": [2, "global"],
"no-use-before-define": 0,
"curly": 2,
"complexity": 2,
"eqeqeq": [2, "smart"],
"no-lone-blocks": 2,
"no-magic-numbers": [0, {
"ignore": [-1, 0, 1, 2]
}],
"no-trailing-spaces": 0,
"no-multi-spaces": 2,
"no-multi-str": 2,
"no-unused-expressions": 2,
"no-useless-call": 2,
"vars-on-top": 2,
"wrap-iife": [2, "outside"],
"callback-return": 2,
"array-bracket-spacing": [2, "never"],
"block-spacing": [2, "always"],
"brace-style": [2, "1tbs", {
"allowSingleLine": true
}],
"camelcase": [1, {"properties": "never"}],
"comma-spacing": [2, {
"before": false,
"after": true
}],
"comma-dangle": [0, "always-multiline"],
"no-underscore-dangle": 0,
"no-mixed-spaces-and-tabs": 0,
"comma-style": [2, "last"],
"computed-property-spacing": [2, "never"],
"consistent-this": [2, "self", "vm"],
"func-names": 0,
"func-style": [2, "declaration", {
"allowArrowFunctions": true
}],
"react/jsx-filename-extension": [0],
"key-spacing": [2, {
"beforeColon": false,
"afterColon": true
}],
"lines-around-comment": [2, {
"beforeBlockComment": true,
"beforeLineComment": false,
"afterLineComment": false
}
],
"max-nested-callbacks": [2, 2],
"new-cap": 2,
"newline-after-var": [1, "always"],
"no-inline-comments": 0,
"no-lonely-if": 0,
"no-plusplus": 0,
"padded-blocks": [0, "always"],
"one-var": [1, "never"],
"operator-assignment": [1, "never"],
"operator-linebreak": 0,
"quote-props": 0,
"quotes": [1, "single", { "allowTemplateLiterals": true }],
"keyword-spacing": [1, {
"before": true,
"after": true,
"overrides": {}
}],
"space-before-blocks": 2,
"space-before-function-paren": [1, {
"anonymous": "always",
"named": "never"
}],
"space-in-parens": [0, "always"],
"spaced-comment": [1, "always", {
"exceptions": ["-"]
}],
"object-curly-spacing": [1, "always", {
"objectsInObjects": false,
"arraysInObjects": false
}],
"max-len": [1, {
"code": 80,
"tabWidth": 2,
"ignoreUrls": true,
"ignoreStrings": true
}],
"max-lines": ["error", {
"max": 200,
"skipBlankLines": true,
"skipComments": true
}],
"max-depth": ["error", {
"max": 4
}],
"max-params": ["error", {
"max": 4
}],
"max-statements": ["error", {
"max": 15
}],
"no-mixed-operators": 0,
"no-duplicate-imports": 0,
"import/no-unresolved": [2, {
"ignore": ['^(~|shared|app|settings|models|api|lib|schema|compare|server|client)']
}],
"import/prefer-default-export": 0,
"import/no-extraneous-dependencies": [0],
"import/extensions": [0],
"react/prop-types": [1, {
"ignore": [
"classes"
]
}],
"react/sort-comp": 0,
"react/forbid-prop-types": 0,
"jsx-a11y/no-static-element-interactions": 0,
"class-methods-use-this": 0,
"jsx-a11y/href-no-hash": 0
},
"globals": {
"web3": false,
"ga": false,
"mixpanel": false,
"analytics": true,
"window": true,
"ROOT_DIR": false
}
}