forked from CircuitCoder/Console-Lite
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.eslintrc.js
72 lines (72 loc) · 1.9 KB
/
.eslintrc.js
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
module.exports = {
'env': {
'browser': true,
'node': true,
'es6': true,
},
'extends': "airbnb-base",
'rules': {
'import/no-unresolved': 0,
// allow debugger during development
'no-debugger': process.env.NODE_ENV === 'production' ? 'error' : 'off',
'keyword-spacing': ['error', {
overrides: {
if: { after: false },
for: { after: false },
while: { after: false },
catch: { after: false },
}
}],
'no-console': 'off',
'no-alert': 'off',
'no-else-return': 'off',
'no-continue': 'off',
'import/no-extraneous-dependencies': [
"error", {
'devDependencies': true,
},
],
'import/newline-after-import': 'off',
'curly': ['error', 'multi'],
'no-param-reassign': 'off',
'no-underscore-dangle': 'off',
'no-confusing-arrow': 'off',
'no-mixed-operators': ['error', {
'allowSamePrecedence': true,
}],
'no-empty': ['error', {
'allowEmptyCatch': true,
}],
'no-shadow': ['error', {
'allow': ['done', 'err', 'cb', 'reject', 'resolve'],
}],
'no-void': 'off',
'consistent-return': ['error', {
"treatUndefinedAsUnspecified": true,
}],
'max-len': ['error', {
'code': 100,
'ignorePattern': '\\(resolve, reject\\) =>',
}],
'new-cap': 'off',
'object-curly-newline': ['error', { consistent: true }],
'nonblock-statement-body-position': ['off', 'any'],
'no-plusplus': 'off',
'import/order': 'off',
'arrow-parens': ['error', 'as-needed'],
'no-restricted-syntax': 'off',
'implicit-arrow-linebreak': 'off',
'function-paren-newline': ['error', 'consistent'],
'no-restricted-globals': 'off',
'prefer-destructuring': ['error', {
VariableDeclarator: {
array: false,
object: true,
},
AssignmentExpression: {
array: false,
object: false,
},
}],
}
};