-
Notifications
You must be signed in to change notification settings - Fork 0
/
.eslintrc
77 lines (77 loc) · 1.9 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
{
"extends": "airbnb",
"plugins": [
"flowtype"
],
"env": {
"es6": true,
"node": true,
"browser": true,
"mocha": true
},
"settings": {
"import/resolver": {
"node": {
"paths": ["src"]
}
},
"import/external-module-folders": ["src", "node_modules"],
"import/extensions": [".js"]
},
"rules": {
"no-console": ["error", { "allow": ["warn", "error", "info"] }],
"flowtype/define-flow-type": 1,
"flowtype/use-flow-type": 1,
"eqeqeq": 0,
"strict": 0,
"space-before-function-paren": 0,
"func-names": 0,
"no-void": 0,
"require-yield": 0,
"comma-dangle": ["error", {
"arrays": "always-multiline",
"objects": "always-multiline",
"imports": "always-multiline",
"exports": "always-multiline",
"functions": "never"
}],
"prefer-arrow-callback": 0,
"object-curly-spacing": 0,
"max-len": [2, 120, 4,
{
"ignoreComments": true,
"ignoreUrls": true,
"ignorePattern": "^\\s*var\\s.+=\\s*require\\s*\\("
}
],
"arrow-body-style": 0,
"no-continue": 0,
"no-plusplus": 0,
"no-mixed-operators": 0,
"no-unused-vars": [2, { "varsIgnorePattern": "^styles$", "ignoreRestSiblings": true }],
"consistent-return": 0,
"import/extensions": 0,
"import/first": 0,
"import/prefer-default-export": 0,
"import/no-named-default": 0,
"import/no-named-as-default": 0,
"import/no-extraneous-dependencies": 0,
"global-require": 0,
"no-underscore-dangle": 0,
"class-methods-use-this": 0,
"quotes": [2, "single", {"avoidEscape": false}],
"no-useless-escape": 0,
"arrow-parens": 1,
"import/no-duplicates": 0 // turn on later
},
"globals": {
"makeXhr": false,
"ga": false,
"ApplePaySession": true,
"Stripe": true
},
"parserOptions": {
"sourceType": "module",
},
"parser": "babel-eslint"
}