-
Notifications
You must be signed in to change notification settings - Fork 3
/
.eslintrc
139 lines (139 loc) · 5.04 KB
/
.eslintrc
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
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
{
"extends": "eslint:recommended",
"parserOptions": {
"ecmaVersion": 2022,
"sourceType": "module"
},
"env": {
"es6": true,
"browser": true,
"node": true
},
"globals": {
"TP": true,
"APP": true,
"React": true,
"Window": false,
"self": false,
"Proxy": false,
"Reflect": false,
"AsyncFunction": false,
"GeneratorFunction": false,
"FormDataEvent": false,
"SubmitEvent": false,
"import": false
},
"rules": {
"array-bracket-spacing": [1, "never"],
"array-callback-return": 2,
"arrow-body-style": [1, "always"],
"arrow-parens": [1, "always"],
"arrow-spacing": [1, {"before": true, "after": true}],
"brace-style": [2, "1tbs", {"allowSingleLine": false}],
"class-methods-use-this": 2,
"comma-dangle": 2,
"comma-spacing": 1,
"comma-style": 1,
"computed-property-spacing": [2, "never"],
"consistent-this": [1, "thisref"],
"curly": [2, "all"],
"default-case": 2,
"dot-location": [1, "object"],
"dot-notation": 2,
"eqeqeq": 2,
"func-call-spacing": 1,
"func-names": [2, never],
"func-style": 1,
"generator-star-spacing": [1, {"before": false, "after": false}],
"guard-for-in": 2,
"implicit-arrow-linebreak": [1, "beside"],
"indent": [0, 4, {"SwitchCase": 1, "VariableDeclarator": 1, "outerIIFEBody": 1, "FunctionDeclaration": {"parameters": "first", "body": 1}, "FunctionExpression": {"parameters": "first", "body": 1}, "ArrayExpression": 1, "MemberExpression": "off", "ObjectExpression": 1, "ignoreComments": true, "flatTernaryExpressions": true, "ignoredNodes": ["CallExpression", "ConditionalExpression"]}],
"init-declarations": [2, "never"],
"key-spacing": [1, { "beforeColon": false, "afterColon": true }],
"keyword-spacing": [2, {"before": true, "after": true, "overrides": {}}],
"linebreak-style": 0,
"lines-between-class-members": [1, "always"],
"max-len": [0, 80, 4],
"max-statements-per-line": 1,
"new-parens": 2,
"no-caller": 2,
"no-catch-shadow": 2,
"no-confusing-arrow": 1,
"no-debugger": 1,
"no-delete-var": 2,
"no-div-regex": 2,
"no-duplicate-imports": 2,
"no-empty-function": 1,
"no-eval": 2,
"no-extra-bind": 2,
"no-extra-label": 2,
"no-extra-parens": 1,
"no-floating-decimal": 1,
"no-global-assign": 2,
"no-implied-eval": 2,
"no-implicit-coercion": [1, {"string": false}],
"no-invalid-this": 0,
"no-iterator": 1,
"no-label-var": 2,
"no-labels": [2, {"allowLoop": true, "allowSwitch": true}],
"no-lone-blocks": 2,
"no-loop-func": 2,
"no-multi-spaces": [1, {"ignoreEOLComments": true}],
"no-multi-assign": 2,
"no-multi-str": 1,
"no-multiple-empty-lines": 1,
"no-new": 2,
"no-nested-ternary": 2,
"no-octal-escape": 2,
"no-param-reassign": 2,
"no-process-exit": 2,
"no-proto": 1,
"no-prototype-builtins": 0,
"no-return-assign": 2,
"no-return-await": 2,
"no-script-url": 2,
"no-self-compare": 2,
"no-sequences": 1,
"no-shadow": 2,
"no-shadow-restricted-names": 1,
"no-tabs": 1,
"no-throw-literal": 2,
"no-trailing-spaces": 2,
"no-undef-init": 2,
"no-unsafe-negation": 2,
"no-unused-vars": [1, {"vars": "all", "args": "none"}],
"no-use-before-define": 2,
"no-useless-call": 2,
"no-useless-computed-key": 2,
"no-useless-escape": 0,
"no-whitespace-before-property": 2,
"no-with": 2,
"object-curly-newline": [1, {"ObjectExpression": {"minProperties": 3, "consistent": true}}],
"object-curly-spacing": [1, "never"],
"object-shorthand": [1, "never"],
"one-var": 1,
"one-var-declaration-per-line": 1,
"operator-linebreak": [1, "after", { "overrides": { "?": "after"}}],
"padding-line-between-statements": [1, {"blankLine": "always", "prev": "var", "next": "*"}],
"quotes": [2, "single", {"allowTemplateLiterals": true}],
"quote-props": [2, "as-needed"],
"radix": 1,
"rest-spread-spacing": [1, "never"],
"semi": 1,
"semi-spacing": 1,
"semi-style": [1, "last"],
"space-before-blocks": [1, "always"],
"space-before-function-paren": [1, "never"],
"space-in-parens": [1, "never"],
"space-infix-ops": 2,
"space-unary-ops": [1, { "words": true, "nonwords": false }],
"spaced-comment": [1, "always"],
"switch-colon-spacing": 1,
"template-curly-spacing": [1, "never"],
"template-tag-spacing": [1, "always"],
"vars-on-top": 1,
"wrap-iife": [1, "outside"],
"yield-star-spacing": [1, "before"],
"yoda": [1, "never"]
}
}