-
Notifications
You must be signed in to change notification settings - Fork 107
/
.eslintrc
46 lines (46 loc) · 1.26 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
{
/* Also check test/.eslintrc for test specific config */
"root": true,
"extends": "airbnb-base",
"rules": {
"arrow-body-style": [1, "as-needed"],
"arrow-parens": 0,
// don't require dangling commas
"comma-dangle": 0,
"consistent-return": 1,
// causing issues with codacy
"default-param-last": 0,
"function-paren-newline": "off",
"import/no-unresolved": 0,
"indent": 0,
"implicit-arrow-linebreak": 0,
"max-len": "off",
"no-multi-spaces": 0,
"no-nested-ternary": 0,
"no-plusplus": 0,
"no-promise-executor-return": 0,
"no-shadow": 0,
// don't require functions to be declared before use
"no-use-before-define": [2, { "functions": false, "classes": true }],
// Disable until Flow supports let and const
"no-var": 0,
"no-undef": 0,
"no-unused-vars": 0,
"object-curly-newline": 0,
"object-curly-spacing": 0,
"object-property-newline": 0,
"operator-linebreak": 0,
"padded-blocks": 0,
"prefer-destructuring": 0,
"prefer-promise-reject-errors": 0,
"react/jsx-uses-react": 1,
"react/jsx-no-undef": 2,
"react/jsx-wrap-multilines": 2,
"switch-colon-spacing": 0,
"valid-jsdoc": 2
},
"parserOptions": {
"ecmaVersion": 9
},
"plugins": ["react"]
}