forked from remix-run/remix
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathcore.js
98 lines (97 loc) · 2.31 KB
/
core.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
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
// const OFF = 0;
const WARN = 1;
const ERROR = 2;
module.exports = {
"array-callback-return": WARN,
"getter-return": WARN,
"new-parens": WARN,
"no-array-constructor": WARN,
"no-caller": ERROR,
"no-cond-assign": [WARN, "except-parens"],
"no-const-assign": ERROR,
"no-control-regex": WARN,
"no-dupe-args": WARN,
"no-dupe-class-members": WARN,
"no-dupe-keys": WARN,
"no-duplicate-case": WARN,
"no-empty-character-class": WARN,
"no-empty-pattern": WARN,
"no-duplicate-imports": WARN,
"no-empty": [WARN, { allowEmptyCatch: true }],
"no-eval": ERROR,
"no-ex-assign": WARN,
"no-extend-native": WARN,
"no-extra-bind": WARN,
"no-extra-label": WARN,
"no-extra-boolean-cast": WARN,
"no-func-assign": ERROR,
"no-global-assign": ERROR,
"no-implied-eval": WARN,
"no-invalid-regexp": WARN,
"no-label-var": WARN,
"no-labels": [WARN, { allowLoop: true, allowSwitch: false }],
"no-lone-blocks": WARN,
"no-loop-func": WARN,
"no-mixed-operators": [
WARN,
{
groups: [
["&", "|", "^", "~", "<<", ">>", ">>>"],
["==", "!=", "===", "!==", ">", ">=", "<", "<="],
["&&", "||"],
["in", "instanceof"],
],
allowSamePrecedence: false,
},
],
"no-unsafe-negation": WARN,
"no-new-func": WARN,
"no-new-object": WARN,
"no-octal": WARN,
"no-redeclare": ERROR,
"no-script-url": WARN,
"no-self-assign": WARN,
"no-self-compare": WARN,
"no-sequences": WARN,
"no-shadow-restricted-names": WARN,
"no-sparse-arrays": WARN,
"no-template-curly-in-string": WARN,
"no-this-before-super": WARN,
"no-undef": ERROR,
"no-unreachable": WARN,
"no-unused-expressions": [
WARN,
{
allowShortCircuit: true,
allowTernary: true,
allowTaggedTemplates: true,
},
],
"no-unused-labels": WARN,
"no-unused-vars": [
WARN,
{
args: "none",
ignoreRestSiblings: true,
},
],
"no-use-before-define": [
WARN,
{ classes: false, functions: false, variables: false },
],
"no-useless-computed-key": WARN,
"no-useless-concat": WARN,
"no-useless-constructor": WARN,
"no-useless-escape": WARN,
"no-useless-rename": [
WARN,
{
ignoreDestructuring: false,
ignoreImport: false,
ignoreExport: false,
},
],
"require-yield": WARN,
"use-isnan": WARN,
"valid-typeof": WARN,
};