-
Notifications
You must be signed in to change notification settings - Fork 0
/
.eslintrc.json
98 lines (98 loc) · 2.2 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
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
{
"extends": ["plugin:jest/recommended","airbnb"],
"env": {
"browser": true,
"node": true,
"jest": true
},
"parser": "babel-eslint",
"parserOptions": {
"sourceType": "module",
"allowImportExportEverywhere": true
},
"plugins": ["jest"],
"rules": {
"arrow-body-style": [
"error",
"as-needed"
],
"arrow-parens": [ "warn", "always" ],
"comma-dangle": [ "error", {
"arrays": "always-multiline",
"objects": "always-multiline",
"imports": "always-multiline",
"exports": "always-multiline",
"functions": "never"
}
],
"consistent-return": "off",
"eol-last": ["error", "always"],
"func-names": ["warn", "as-needed"],
"id-length": "off",
"import/prefer-default-export": "off",
"jest/no-disabled-tests": "warn",
"jest/no-focused-tests": "error",
"max-len": [ "error",
{
"code": 80,
"ignoreComments": true,
"ignoreStrings": true,
"ignoreUrls": true,
"ignoreTemplateLiterals": true,
"ignoreRegExpLiterals": true
}
],
"no-bitwise": ["error", { "allow": ["~"] }],
"no-plusplus": [ "warn", { "allowForLoopAfterthoughts": true }],
"no-multiple-empty-lines": [
"error",
{
"max":1,
"maxEOF":1,
"maxBOF":0
}
],
"prefer-destructuring": [ "error",
{
"VariableDeclarator": {
"array": false,
"object": true
},
"AssignmentExpression": {
"array": false,
"object": true
}
},
{
"enforceForRenamedProperties": false
}
],
"radix": "off",
"no-underscore-dangle": "off",
"max-params": [ "warn", { "max": 3 } ],
"react/forbid-prop-types": [
"error",
{
"forbid": ["any","array"]
}
],
"react/jsx-filename-extension": 0,
"react/no-array-index-key": 0,
"react/prefer-stateless-function": 0
},
"overrides": {
"files": [
"src/client/config/*",
"src/server/config/*",
"*.test.js"
],
"rules": {
"import/no-extraneous-dependencies": [
"error",
{
"devDependencies": true
}
]
}
}
}