forked from curvefi/curve-api
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.eslintrc.json
41 lines (41 loc) · 1.02 KB
/
.eslintrc.json
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
{
"env": {
"node": true
},
"extends": "airbnb",
"parser": "@babel/eslint-parser",
"plugins": [
"@babel"
],
"rules": {
"func-names": 0,
"no-nested-ternary": 0,
"react/jsx-filename-extension": [1, { "extensions": [".js", ".jsx"] }],
"max-len": 0,
"arrow-parens": ["error", "always"],
"no-underscore-dangle": 0,
"operator-linebreak": 0,
"comma-dangle": ["error", {
"arrays": "always-multiline",
"objects": "always-multiline",
"imports": "always-multiline",
"exports": "always-multiline",
"functions": "never"
}],
"no-use-before-define": ["error", "nofunc"],
"no-empty": ["error", { "allowEmptyCatch": true }],
"react/forbid-prop-types": 0,
"no-mixed-operators": ["error", { "allowSamePrecedence": true }],
"indent": ["error", 2, { "flatTernaryExpressions": true, "SwitchCase": 1 }]
},
"settings": {
"import/resolver": {
"node": {
"moduleDirectory": [
"node_modules",
"."
]
}
}
}
}