-
Notifications
You must be signed in to change notification settings - Fork 1
/
.eslintrc
42 lines (42 loc) · 1.38 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
{
"env": { "jest": true },
"extends": "airbnb",
"globals": {
"fetch": false
},
"parser": "babel-eslint",
"plugins": ["prettier"],
"rules": {
"arrow-body-style": ["error", "as-needed"],
"arrow-parens": ["error", "as-needed"],
"comma-dangle": [
"error",
{
"arrays": "always-multiline",
"exports": "always-multiline",
"functions": "never",
"imports": "always-multiline",
"objects": "always-multiline"
}
],
"no-plusplus": ["error", { "allowForLoopAfterthoughts": true }],
"function-paren-newline": "off",
"implicit-arrow-linebreak": "off",
"import/prefer-default-export": "off",
"indent": ["error", 2, { "SwitchCase": 1 }],
"max-len": ["error", { "code": 100, "ignoreTemplateLiterals": true }],
"no-underscore-dangle": "off",
"no-confusing-arrow": "off",
"no-param-reassign": "off",
"no-use-before-define": ["error", { "variables": false }],
"object-curly-newline": ["error", { "ObjectPattern": { "multiline": true } }],
"operator-linebreak": "off",
"prettier/prettier": "error",
"quotes": ["error", "single", { "avoidEscape": true }],
"react/jsx-boolean-value": "off",
"react/jsx-filename-extension": [1, { "extensions": [".js", ".jsx"] }],
"react/jsx-one-expression-per-line": "off",
"react/jsx-props-no-spreading": "off",
"strict": "off"
}
}