-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy path.eslintrc
49 lines (49 loc) · 1.33 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
{
"parser": "@babel/eslint-parser",
"env": {
"browser": true,
"jest": true
},
"plugins": [
"react"
],
"extends": [
"eslint:recommended",
"plugin:react/recommended"
],
"rules": {
"semi": ["error", "never"],
"comma-dangle": ["error", "only-multiline"],
"indent": ["error", 2, { "SwitchCase": 1, "ignoredNodes": ["JSXElement *"] }],
"jsx-quotes": ["error", "prefer-double"],
"max-len": ["warn", { "code": 200 }],
"no-console": "off",
"operator-linebreak": ["error", "after", { "overrides": { "?": "ignore", ":": "ignore" } }],
"quotes": [2, "double", {"avoidEscape": true, "allowTemplateLiterals": true}],
"react/display-name": 0,
"react/jsx-sort-props": 0,
"react/jsx-indent-props": [2, "first"],
"react/jsx-max-props-per-line": "warn",
"react/no-unescaped-entities": 0,
"react/no-children-prop": 0,
"react/prop-types": [2, { "skipUndeclared": true }]
},
"globals": {
"__dirname": true,
"API_HOST": true,
"DESKTOP": true,
"firebase": true,
"Int32Array": true,
"module": true,
"opr": true,
"process": true,
"Promise": true,
"Raven": true,
"require": true,
"safari": true,
"TradingView": true,
"Uint8Array": true,
"VERSION": true,
"Map": true
}
}