forked from dynamoose/dynamoose
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.eslintrc.js
75 lines (74 loc) · 1.95 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
73
74
75
module.exports = {
'env': {
'es6': true,
'node': true
},
'extends': 'eslint:all',
'parserOptions': {
'ecmaVersion': 2018
},
'rules': {
'indent': [
'error',
2
],
'linebreak-style': [
'error',
'unix'
],
'quotes': [
'error',
'single'
],
'semi': [
'error',
'always'
],
'spaced-comment': ['error', 'always', {'exceptions': ['!']}],
'brace-style': ['error', '1tbs', {'allowSingleLine': true}],
'id-length': ['error', {'min': 1}],
'max-params': ['error', {'max': 5}],
'max-statements': ['error', {'max': 130}],
'max-lines': ['error', {'max': 3600}],
'complexity': ['error', {'max': 75}],
'max-lines-per-function': ['error', {'max': 3600}],
'max-statements-per-line': ['error', {'max': 6}],
'max-depth': ['error', {'max': 7}],
'max-len': ['error', {'code': 351}],
'no-console': 'off',
'one-var': 'off',
'padded-blocks': 'off',
'init-declarations': 'off',
'func-names': 'off',
'no-magic-numbers': 'off',
'no-underscore-dangle': 'off',
'camelcase': 'off',
'line-comment-position': 'off',
'no-inline-comments': 'off',
'new-cap': 'off',
'no-invalid-this': 'off',
'no-empty-function': 'off',
'handle-callback-err': 'off',
'multiline-ternary': 'off',
'no-continue': 'off',
'no-ternary': 'off',
'func-style': 'off',
'object-property-newline': 'off',
'array-element-newline': 'off',
'newline-per-chained-call': 'off',
'multiline-comment-style': 'off',
'capitalized-comments': 'off',
'function-paren-newline': 'off',
'dot-location': 'off',
'one-var-declaration-per-line': 'off',
// Higher priority to enable
'no-await-in-loop': 'off',
'guard-for-in': 'off',
'no-undefined': 'off',
'consistent-return': 'off',
'sort-keys': 'off',
'no-mixed-operators': 'off',
'no-param-reassign': 'off',
'no-warning-comments': 'off'
}
};