-
Notifications
You must be signed in to change notification settings - Fork 1
/
.eslintrc
29 lines (28 loc) · 880 Bytes
/
.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
{
"extends": "airbnb",
"parserOptions": {
"ecmaVersion": 6,
"ecmaFeatures": {
"experimentalObjectRestSpread": true
}
},
"rules": {
"arrow-body-style": [2, "always"],
"brace-style": [2, "1tbs", {"allowSingleLine": true}],
"comma-dangle": [2, "never"],
"func-names": "off",
"global-require": "off",
"max-len": "off",
"no-param-reassign": "off",
"no-plusplus": ["error", {"allowForLoopAfterthoughts": true}],
"no-unused-expressions": "off", // needs to be disabled due to expect api
"no-unused-labels": "error",
"no-unused-vars": "error",
"object-curly-spacing": [2, "never"],
"quotes": [2, "single", {"allowTemplateLiterals": true}],
"jsx-a11y/href-no-hash": "off",
"jsx-a11y/anchor-is-valid": ["warn", { "aspects": ["invalidHref"] }],
// Plugins
"import/no-dynamic-require": "off"
}
}