-
Notifications
You must be signed in to change notification settings - Fork 6
/
.eslintrc.json
47 lines (47 loc) · 989 Bytes
/
.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
42
43
44
45
46
47
{
"root": true,
"extends": ["plugin:import/react", "airbnb-base"],
"plugins": ["react"],
"env": {
"browser": true,
"es6": true,
"jest": true,
"node": true
},
"parser": "babel-eslint",
"parserOptions": {
"sourceType": "module",
"ecmaVersion": 2017,
"ecmaFeatures": {
"jsx": true
}
},
"rules": {
"one-var": 0,
"one-var-declaration-per-line": 0,
"new-cap": 0,
"consistent-return": 0,
"arrow-parens": ["error", "as-needed"],
"no-param-reassign": 0,
"comma-dangle": 0,
"curly": ["error", "multi-line"],
"no-unused-vars": 0,
"class-methods-use-this": 0,
"import/prefer-default-export": 0,
"object-curly-newline": 0,
"no-shadow": [
"error",
{
"allow": ["req", "res", "err"]
}
],
"no-tabs": ["error", { "allowIndentationTabs": true }]
},
"settings": {
"import/resolver": {
"node": {
"extensions": [".js", ".jsx"]
}
}
}
}