-
Notifications
You must be signed in to change notification settings - Fork 2
/
.eslintrc.js
83 lines (82 loc) · 2.25 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
76
77
78
79
80
81
82
83
/*eslint-env node*/
module.exports = {
extends: ['eslint:recommended', 'plugin:ava/recommended'],
rules: {
'valid-jsdoc': ['warn', { requireReturn: false }],
'accessor-pairs': 'warn',
'array-callback-return': 'warn',
'block-scoped-var': 'warn',
complexity: ['warn', { max: 25 }],
'consistent-return': 'warn',
'default-case': 'warn',
'dot-notation': 'warn',
eqeqeq: ['warn', 'allow-null'],
'guard-for-in': 'warn',
'no-alert': 'warn',
'no-caller': 'error',
'no-div-regex': 'warn',
'no-else-return': 'warn',
'no-empty-function': 'warn',
'no-eval': 'error',
'no-extend-native': 'warn',
'no-extra-bind': 'warn',
'no-extra-label': 'warn',
'no-floating-decimal': 'warn',
'no-implicit-coercion': 'warn',
'no-implicit-globals': 'warn',
'no-implied-eval': 'error',
'no-iterator': 'error',
'no-labels': 'warn',
'no-lone-blocks': 'warn',
'no-loop-func': 'error',
'no-magic-numbers': ['warn', { ignore: [-1, 0, 1] }],
'no-multi-str': 'warn',
'no-native-reassign': 'error',
'no-new': 'warn',
'no-new-func': 'error',
'no-new-wrappers': 'warn',
'no-octal-escape': 'error',
'no-proto': 'warn',
'no-return-assign': 'error',
'no-script-url': 'warn',
'no-self-compare': 'error',
'no-sequences': 'warn',
'no-throw-literal': 'warn',
'no-unmodified-loop-condition': 'warn',
'no-unused-expressions': 'error',
'no-unsafe-finally': 'error',
'no-useless-call': 'warn',
'no-useless-computed-key': 'warn',
'no-useless-concat': 'warn',
'no-warning-comments': [
'warn',
{ terms: ['todo', 'bug'], location: 'start' },
],
'no-with': 'error',
radix: 'warn',
yoda: 'warn',
strict: ['warn', 'safe'],
'no-catch-shadow': 'error',
'no-restricted-globals': ['warn', 'event'],
'no-shadow': 'warn',
'no-shadow-restricted-names': 'error',
'no-undef': 'error',
'no-use-before-define': 'error',
'no-useless-constructor': 'warn',
'no-var': 'warn',
'object-shorthand': 'warn',
'prefer-arrow-callback': 'warn',
'prefer-const': 'warn',
'prefer-rest-params': 'warn',
'prefer-spread': 'warn',
'prefer-template': 'warn',
'require-yield': 'warn',
'no-duplicate-imports': 'warn',
'max-statements-per-line': ['warn', { max: 2 }],
'no-useless-escape': 'warn',
},
env: {
node: true,
},
root: true,
};