-
Notifications
You must be signed in to change notification settings - Fork 0
/
possible-errors.js
77 lines (76 loc) · 1.74 KB
/
possible-errors.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
module.exports = {
env: {
browser: true,
node: true,
},
rules: {
'for-direction': 'error',
'getter-return': [
'error',
{
allowImplicit: true,
},
],
'no-cond-assign': ['error', 'except-parens'],
'no-console': 'error',
'no-constant-condition': 'error',
'no-control-regex': 'error',
'no-compare-neg-zero': 'error',
'no-debugger': 'error',
'no-dupe-args': 'error',
'no-dupe-keys': 'error',
'no-duplicate-case': 'error',
'no-empty-character-class': 'error',
'no-empty': 'error',
'no-ex-assign': 'error',
'no-extra-boolean-cast': 'warn',
'no-func-assign': 'error',
'no-inner-declarations': 'error',
'no-invalid-regexp': 'error',
'no-irregular-whitespace': 'error',
'no-negated-in-lhs': 'error',
'no-obj-calls': 'error',
'no-prototype-builtins': 'warn',
'no-regex-spaces': 'error',
'no-sparse-arrays': 'error',
'no-template-curly-in-string': 'error',
'no-unexpected-multiline': 'warn',
'no-unreachable': 'error',
'no-unsafe-finally': 'error',
'no-unsafe-negation': 'error',
'use-isnan': 'error',
'valid-jsdoc': [
'error',
{
requireReturn: false,
},
],
'valid-typeof': [
'warn',
{
requireStringLiterals: true,
},
],
'no-extra-parens': [
'off',
'all',
{
conditionalAssign: true,
nestedBinaryExpressions: false,
returnAssign: false,
ignoreJSX: 'all',
enforceForArrowConditionals: false,
},
],
'no-extra-semi': 'off',
// Variables
'no-use-before-define': [
'error',
{
functions: false,
classes: false,
variables: false,
},
],
},
};