-
Notifications
You must be signed in to change notification settings - Fork 35
/
.eslintrc
142 lines (142 loc) · 3.8 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
{
"env": {
"browser": true,
"mocha": true,
"node": true,
"es6": true
},
"parser": "babel-eslint",
"parserOptions": {
"sourceType": "module",
"ecmaFeatures": {
"legacyDecorators": true
}
},
"settings": {
"react": {
"version": "16.13"
}
},
"extends": [
"plugin:jsx-a11y/recommended"
],
"rules": {
"array-bracket-spacing": [2, "always"],
"comma-dangle": [1, "always-multiline"],
"comma-spacing": ["error", { "before": false, "after": true }],
"computed-property-spacing": ["error", "never"],
"dot-location": [2, "property"],
"eol-last": 2,
"eqeqeq": [2, "allow-null"],
"import/newline-after-import": "error",
"import/no-duplicates": "error",
"indent": [ "error", 2, {
"MemberExpression": 1,
"SwitchCase": 1,
"ignoredNodes": [ "TemplateLiteral" ]
} ],
"jsx-quotes": [2, "prefer-single"],
"keyword-spacing": 2,
"max-params": 2,
"mocha/no-exclusive-tests": "error",
"mocha/no-identical-title": "error",
"no-lonely-if": 2,
"no-mixed-operators": 2,
"no-multi-spaces": 2,
"no-multiple-empty-lines": 2,
"no-return-await": 2,
"no-template-curly-in-string": 2,
"no-undef": 2,
"no-unexpected-multiline": 2,
"no-unsafe-negation": 2,
"no-unused-vars": 2,
"object-curly-spacing": [2, "always"],
"operator-linebreak": ["error", "before"],
"padded-blocks": ["error", "never"],
"quotes": ["error", "single", { "allowTemplateLiterals": true }],
"react/boolean-prop-naming": 2,
"react/button-has-type": 2,
"react/destructuring-assignment": [2, "always"],
"react/no-access-state-in-setstate": 2,
"react/no-did-mount-set-state": 2,
"react/no-did-update-set-state": 2,
"react/no-direct-mutation-state": 2,
"react/no-typos": 2,
"react/no-unescaped-entities": 2,
"react/no-unused-prop-types": 2,
"react/no-will-update-set-state": 2,
"react/self-closing-comp": 2,
"react/sort-comp": [2, { "order": [
"static-methods",
"instance-variables",
"lifecycle",
"everything-else",
"render"
] }],
"react/jsx-closing-bracket-location": [1, {
"selfClosing": "tag-aligned",
"nonEmpty": "tag-aligned"
}],
"react/jsx-curly-spacing": [2, "never"],
"react/jsx-equals-spacing": [2, "never"],
"react/jsx-first-prop-new-line": [2, "multiline-multiprop"],
"react/jsx-handler-names": 2,
"react/jsx-indent-props": [2, 2],
"react/jsx-indent": [2, 2],
"react/jsx-key": 2,
"react/jsx-max-props-per-line": [2, { "maximum": 2, "when": "always" }],
"react/jsx-no-duplicate-props": 2,
"react/jsx-no-undef": 2,
"react/jsx-tag-spacing": 2,
"react/jsx-uses-react": 1,
"react/jsx-uses-vars": 2,
"react/jsx-wrap-multilines": [2, {
"declaration": "parens-new-line",
"assignment": "parens-new-line",
"return": "parens-new-line",
"arrow": "parens-new-line",
"condition": "parens-new-line",
"logical": "parens-new-line",
"prop": "parens-new-line"
}],
"require-yield": 0,
"semi": [2, "never"],
"space-before-blocks": [2, "always"],
"space-before-function-paren": ["error", {
"anonymous": "always",
"named": "never",
"asyncArrow": "always"
}],
"strict": 0,
"template-curly-spacing": ["off"]
},
"plugins": [
"react",
"jsx-a11y",
"mocha",
"import"
],
"globals": {
"_": true,
"cy": true,
"Cypress": true,
"debug": true,
"defer": true,
"expect": true,
"global": true,
"HELLIP": true,
"helpers": true,
"mount": true,
"NBSP": true,
"Ø": true,
"PropTypes": true,
"R": true,
"React": true,
"render": true,
"sandbox": true,
"shallow": true,
"sinon": true,
"snap": true,
"window": true
}
}