This repository has been archived by the owner on May 12, 2021. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 85
/
.eslintrc
86 lines (86 loc) · 2.25 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
{
"env": {
"browser": true,
"node": true,
"es6": true
},
"plugins": ["react"],
"parserOptions": {
"ecmaVersion": 2017,
"ecmaFeatures": {
"jsx": true
}
},
"rules": {
"array-bracket-spacing": [2, "never"],
"arrow-parens": ["error", "as-needed"],
"brace-style": ["error", "1tbs", { "allowSingleLine": true }],
"comma-dangle": ["error", "never"],
"comma-style": 2,
"comma-spacing": 2,
"curly": 2,
"func-call-spacing": 2,
"indent": [2, 2, { "SwitchCase": 1, "VariableDeclarator": 2 }],
"key-spacing": 2,
"max-len": [2, 95, 2],
"no-const-assign": 2,
"no-debugger": 2,
"no-multi-spaces": 2,
"no-shadow": 0,
"no-sparse-arrays": 2,
"no-undef": 2,
"no-underscore-dangle": 0,
"no-unused-vars": [2, { "args": "none" }],
"object-curly-spacing": 2,
"object-property-newline": [2, {"allowAllPropertiesOnSameLine": true}],
"quotes": [2, "single"],
"react/jsx-curly-spacing": 2,
"react/jsx-equals-spacing": 2,
"react/jsx-key": 2,
"react/jsx-no-duplicate-props": 2,
"react/jsx-wrap-multilines": 2,
"react/prop-types": 2,
"react/sort-prop-types": 2,
"react/jsx-closing-bracket-location": ["error", "after-props"],
"react/jsx-first-prop-new-line": 2,
"react/jsx-sort-props": [2, { "ignoreCase": true }],
"react/jsx-tag-spacing": ["error", { "beforeSelfClosing": "always" }],
"react/jsx-uses-react": 2,
"react/jsx-uses-vars": 2,
"react/jsx-max-props-per-line": [2, { "when": "multiline" }],
"semi": [2, "always"],
"space-before-blocks": 2,
"space-before-function-paren": ["error", "never"],
"space-in-parens": 2,
"strict": [2, "global"]
},
"globals": {
"after": true,
"afterAll": true,
"afterEach": true,
"assert": true,
"before": true,
"beforeAll": true,
"beforeEach": true,
"chai": true,
"dataLayer": true,
"describe": true,
"Exception": true,
"expect": true,
"fail": true,
"GlobalConfig": true,
"it": true,
"jsTestUtils": true,
"juju": true,
"jujulib": true,
"MODULES": true,
"nacl": true,
"shapeup": true,
"sinon": true,
"Stripe": true,
"testUtils": true,
"xdescribe": true,
"xit": true,
"YUI": true
}
}