@sapphire/eslint-config 4.3.9-next.ea1ec04.0 β 4.3.9-next.ef27abe.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +2 -1
- package/dist/index.js +350 -339
- package/package.json +10 -11
- package/dist/index.d.ts +0 -1
package/README.md
CHANGED
|
@@ -76,7 +76,7 @@ Thanks goes to these wonderful people ([emoji key](https://allcontributors.org/d
|
|
|
76
76
|
<table>
|
|
77
77
|
<tr>
|
|
78
78
|
<td align="center"><a href="https://favware.tech/"><img src="https://avatars3.githubusercontent.com/u/4019718?v=4?s=100" width="100px;" alt=""/><br /><sub><b>Jeroen Claassens</b></sub></a><br /><a href="https://github.com/sapphiredev/utilities/commits?author=favna" title="Code">π»</a> <a href="#infra-favna" title="Infrastructure (Hosting, Build-Tools, etc)">π</a> <a href="#projectManagement-favna" title="Project Management">π</a> <a href="https://github.com/sapphiredev/utilities/commits?author=favna" title="Documentation">π</a> <a href="https://github.com/sapphiredev/utilities/commits?author=favna" title="Tests">β οΈ</a></td>
|
|
79
|
-
<td align="center"><a href="https://github.com/kyranet"><img src="https://avatars0.githubusercontent.com/u/24852502?v=4?s=100" width="100px;" alt=""/><br /><sub><b>
|
|
79
|
+
<td align="center"><a href="https://github.com/kyranet"><img src="https://avatars0.githubusercontent.com/u/24852502?v=4?s=100" width="100px;" alt=""/><br /><sub><b>Aura RomΓ‘n</b></sub></a><br /><a href="https://github.com/sapphiredev/utilities/commits?author=kyranet" title="Code">π»</a> <a href="#projectManagement-kyranet" title="Project Management">π</a> <a href="https://github.com/sapphiredev/utilities/pulls?q=is%3Apr+reviewed-by%3Akyranet" title="Reviewed Pull Requests">π</a> <a href="https://github.com/sapphiredev/utilities/commits?author=kyranet" title="Tests">β οΈ</a></td>
|
|
80
80
|
<td align="center"><a href="https://github.com/PyroTechniac"><img src="https://avatars2.githubusercontent.com/u/39341355?v=4?s=100" width="100px;" alt=""/><br /><sub><b>Gryffon Bellish</b></sub></a><br /><a href="https://github.com/sapphiredev/utilities/commits?author=PyroTechniac" title="Code">π»</a> <a href="https://github.com/sapphiredev/utilities/pulls?q=is%3Apr+reviewed-by%3APyroTechniac" title="Reviewed Pull Requests">π</a> <a href="https://github.com/sapphiredev/utilities/commits?author=PyroTechniac" title="Tests">β οΈ</a></td>
|
|
81
81
|
<td align="center"><a href="https://github.com/vladfrangu"><img src="https://avatars3.githubusercontent.com/u/17960496?v=4?s=100" width="100px;" alt=""/><br /><sub><b>Vlad Frangu</b></sub></a><br /><a href="https://github.com/sapphiredev/utilities/commits?author=vladfrangu" title="Code">π»</a> <a href="https://github.com/sapphiredev/utilities/issues?q=author%3Avladfrangu" title="Bug reports">π</a> <a href="https://github.com/sapphiredev/utilities/pulls?q=is%3Apr+reviewed-by%3Avladfrangu" title="Reviewed Pull Requests">π</a> <a href="#userTesting-vladfrangu" title="User Testing">π</a> <a href="https://github.com/sapphiredev/utilities/commits?author=vladfrangu" title="Tests">β οΈ</a></td>
|
|
82
82
|
<td align="center"><a href="https://github.com/Stitch07"><img src="https://avatars0.githubusercontent.com/u/29275227?v=4?s=100" width="100px;" alt=""/><br /><sub><b>Stitch07</b></sub></a><br /><a href="https://github.com/sapphiredev/utilities/commits?author=Stitch07" title="Code">π»</a> <a href="#projectManagement-Stitch07" title="Project Management">π</a> <a href="https://github.com/sapphiredev/utilities/commits?author=Stitch07" title="Tests">β οΈ</a></td>
|
|
@@ -124,6 +124,7 @@ Thanks goes to these wonderful people ([emoji key](https://allcontributors.org/d
|
|
|
124
124
|
<td align="center"><a href="https://github.com/EvolutionX-10"><img src="https://avatars.githubusercontent.com/u/85353424?v=4?s=100" width="100px;" alt=""/><br /><sub><b>Evo</b></sub></a><br /><a href="https://github.com/sapphiredev/utilities/commits?author=EvolutionX-10" title="Code">π»</a></td>
|
|
125
125
|
<td align="center"><a href="https://enes.ovh/"><img src="https://avatars.githubusercontent.com/u/61084101?v=4?s=100" width="100px;" alt=""/><br /><sub><b>Enes GenΓ§</b></sub></a><br /><a href="https://github.com/sapphiredev/utilities/commits?author=enxg" title="Code">π»</a></td>
|
|
126
126
|
<td align="center"><a href="https://github.com/muchnameless"><img src="https://avatars.githubusercontent.com/u/12682826?v=4?s=100" width="100px;" alt=""/><br /><sub><b>muchnameless</b></sub></a><br /><a href="https://github.com/sapphiredev/utilities/commits?author=muchnameless" title="Code">π»</a></td>
|
|
127
|
+
<td align="center"><a href="https://github.com/r-priyam"><img src="https://avatars.githubusercontent.com/u/50884372?v=4?s=100" width="100px;" alt=""/><br /><sub><b>Priyam</b></sub></a><br /><a href="https://github.com/sapphiredev/utilities/commits?author=r-priyam" title="Code">π»</a></td>
|
|
127
128
|
</tr>
|
|
128
129
|
</table>
|
|
129
130
|
|
package/dist/index.js
CHANGED
|
@@ -1,343 +1,354 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
1
|
+
'use strict';
|
|
2
|
+
|
|
3
|
+
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
4
|
+
var __commonJS = (cb, mod) => function __require() {
|
|
5
|
+
return mod || (0, cb[__getOwnPropNames(cb)[0]])((mod = { exports: {} }).exports, mod), mod.exports;
|
|
6
|
+
};
|
|
3
7
|
|
|
4
8
|
// src/index.ts
|
|
5
|
-
var
|
|
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
|
-
|
|
140
|
-
|
|
141
|
-
|
|
142
|
-
|
|
143
|
-
|
|
144
|
-
|
|
145
|
-
|
|
146
|
-
|
|
147
|
-
|
|
148
|
-
|
|
149
|
-
|
|
150
|
-
|
|
151
|
-
|
|
152
|
-
|
|
153
|
-
|
|
154
|
-
|
|
9
|
+
var require_src = __commonJS({
|
|
10
|
+
"src/index.ts"(exports, module) {
|
|
11
|
+
var eslintConfig = {
|
|
12
|
+
root: true,
|
|
13
|
+
parser: "@typescript-eslint/parser",
|
|
14
|
+
parserOptions: {
|
|
15
|
+
extraFileExtensions: [".mjs"],
|
|
16
|
+
project: "./tsconfig.eslint.json",
|
|
17
|
+
sourceType: "module",
|
|
18
|
+
ecmaVersion: 2020,
|
|
19
|
+
warnOnUnsupportedTypeScriptVersion: false
|
|
20
|
+
},
|
|
21
|
+
extends: ["plugin:@typescript-eslint/recommended", "plugin:prettier/recommended"],
|
|
22
|
+
env: {
|
|
23
|
+
node: true,
|
|
24
|
+
es6: true,
|
|
25
|
+
es2017: true,
|
|
26
|
+
es2020: true,
|
|
27
|
+
jest: true,
|
|
28
|
+
browser: true,
|
|
29
|
+
commonjs: true
|
|
30
|
+
},
|
|
31
|
+
rules: {
|
|
32
|
+
"@typescript-eslint/adjacent-overload-signatures": "error",
|
|
33
|
+
"@typescript-eslint/array-type": "off",
|
|
34
|
+
"@typescript-eslint/await-thenable": "off",
|
|
35
|
+
"@typescript-eslint/ban-ts-comment": [
|
|
36
|
+
"error",
|
|
37
|
+
{
|
|
38
|
+
minimumDescriptionLength: 3,
|
|
39
|
+
"ts-check": true,
|
|
40
|
+
"ts-expect-error": "allow-with-description",
|
|
41
|
+
"ts-ignore": "allow-with-description",
|
|
42
|
+
"ts-nocheck": true
|
|
43
|
+
}
|
|
44
|
+
],
|
|
45
|
+
"@typescript-eslint/class-literal-property-style": "error",
|
|
46
|
+
"@typescript-eslint/consistent-type-definitions": "error",
|
|
47
|
+
"@typescript-eslint/default-param-last": "error",
|
|
48
|
+
"@typescript-eslint/dot-notation": [
|
|
49
|
+
"error",
|
|
50
|
+
{
|
|
51
|
+
allowKeywords: true,
|
|
52
|
+
allowPattern: "(^[A-Z])|(^[a-z]+(_[a-z]+)+$)",
|
|
53
|
+
allowPrivateClassPropertyAccess: true
|
|
54
|
+
}
|
|
55
|
+
],
|
|
56
|
+
"@typescript-eslint/explicit-function-return-type": "off",
|
|
57
|
+
"@typescript-eslint/explicit-member-accessibility": "error",
|
|
58
|
+
"@typescript-eslint/explicit-module-boundary-types": "off",
|
|
59
|
+
"@typescript-eslint/init-declarations": "off",
|
|
60
|
+
"@typescript-eslint/member-ordering": [
|
|
61
|
+
"error",
|
|
62
|
+
{
|
|
63
|
+
default: [
|
|
64
|
+
"signature",
|
|
65
|
+
"public-instance-field",
|
|
66
|
+
"protected-instance-field",
|
|
67
|
+
"private-instance-field",
|
|
68
|
+
"instance-field",
|
|
69
|
+
"public-constructor",
|
|
70
|
+
"protected-constructor",
|
|
71
|
+
"private-constructor",
|
|
72
|
+
"constructor",
|
|
73
|
+
"public-instance-method",
|
|
74
|
+
"protected-instance-method",
|
|
75
|
+
"private-instance-method",
|
|
76
|
+
"instance-method",
|
|
77
|
+
"public-static-field",
|
|
78
|
+
"protected-static-field",
|
|
79
|
+
"private-static-field",
|
|
80
|
+
"static-field",
|
|
81
|
+
"public-static-method",
|
|
82
|
+
"protected-static-method",
|
|
83
|
+
"private-static-method",
|
|
84
|
+
"static-method"
|
|
85
|
+
]
|
|
86
|
+
}
|
|
87
|
+
],
|
|
88
|
+
"@typescript-eslint/no-base-to-string": "error",
|
|
89
|
+
"@typescript-eslint/no-dupe-class-members": "error",
|
|
90
|
+
"@typescript-eslint/no-duplicate-imports": [
|
|
91
|
+
"error",
|
|
92
|
+
{
|
|
93
|
+
includeExports: false
|
|
94
|
+
}
|
|
95
|
+
],
|
|
96
|
+
"@typescript-eslint/no-empty-interface": "off",
|
|
97
|
+
"@typescript-eslint/no-explicit-any": "off",
|
|
98
|
+
"@typescript-eslint/no-extra-non-null-assertion": "error",
|
|
99
|
+
"@typescript-eslint/no-extraneous-class": "error",
|
|
100
|
+
"@typescript-eslint/no-floating-promises": "error",
|
|
101
|
+
"@typescript-eslint/no-for-in-array": "error",
|
|
102
|
+
"@typescript-eslint/no-implied-eval": "error",
|
|
103
|
+
"@typescript-eslint/no-invalid-this": "error",
|
|
104
|
+
"@typescript-eslint/no-invalid-void-type": "error",
|
|
105
|
+
"@typescript-eslint/no-misused-new": "error",
|
|
106
|
+
"@typescript-eslint/no-namespace": "off",
|
|
107
|
+
"@typescript-eslint/no-non-null-asserted-optional-chain": "error",
|
|
108
|
+
"@typescript-eslint/no-non-null-assertion": "off",
|
|
109
|
+
"@typescript-eslint/no-throw-literal": "error",
|
|
110
|
+
"@typescript-eslint/no-unnecessary-boolean-literal-compare": "error",
|
|
111
|
+
"@typescript-eslint/no-unnecessary-qualifier": "error",
|
|
112
|
+
"@typescript-eslint/no-unsafe-assignment": "off",
|
|
113
|
+
"@typescript-eslint/no-unsafe-call": "off",
|
|
114
|
+
"@typescript-eslint/no-unsafe-member-access": "off",
|
|
115
|
+
"@typescript-eslint/no-unsafe-return": "off",
|
|
116
|
+
"@typescript-eslint/no-unused-vars": "off",
|
|
117
|
+
"@typescript-eslint/no-use-before-define": "off",
|
|
118
|
+
"@typescript-eslint/no-useless-constructor": "error",
|
|
119
|
+
"@typescript-eslint/no-var-requires": "error",
|
|
120
|
+
"@typescript-eslint/prefer-as-const": "error",
|
|
121
|
+
"@typescript-eslint/prefer-for-of": "error",
|
|
122
|
+
"@typescript-eslint/prefer-includes": "error",
|
|
123
|
+
"@typescript-eslint/prefer-reduce-type-parameter": "error",
|
|
124
|
+
"@typescript-eslint/prefer-string-starts-ends-with": "error",
|
|
125
|
+
"@typescript-eslint/promise-function-async": "off",
|
|
126
|
+
"@typescript-eslint/require-await": "error",
|
|
127
|
+
"@typescript-eslint/restrict-plus-operands": "off",
|
|
128
|
+
"@typescript-eslint/switch-exhaustiveness-check": "warn",
|
|
129
|
+
"@typescript-eslint/unbound-method": "error",
|
|
130
|
+
"@typescript-eslint/unified-signatures": "error",
|
|
131
|
+
"accessor-pairs": "off",
|
|
132
|
+
"array-callback-return": "error",
|
|
133
|
+
"block-scoped-var": "error",
|
|
134
|
+
"callback-return": "off",
|
|
135
|
+
"capitalized-comments": "off",
|
|
136
|
+
"class-methods-use-this": "off",
|
|
137
|
+
complexity: "off",
|
|
138
|
+
"consistent-return": "off",
|
|
139
|
+
"consistent-this": ["error", "self"],
|
|
140
|
+
"constructor-super": "off",
|
|
141
|
+
"default-case": "off",
|
|
142
|
+
"dot-notation": "off",
|
|
143
|
+
eqeqeq: ["error", "smart"],
|
|
144
|
+
"for-direction": "off",
|
|
145
|
+
"func-name-matching": ["warn", "always"],
|
|
146
|
+
"func-names": ["warn", "as-needed"],
|
|
147
|
+
"func-style": "off",
|
|
148
|
+
"global-require": "off",
|
|
149
|
+
"guard-for-in": "warn",
|
|
150
|
+
"handle-callback-err": "off",
|
|
151
|
+
"id-blacklist": "off",
|
|
152
|
+
"id-length": "off",
|
|
153
|
+
"id-match": "off",
|
|
154
|
+
"init-declarations": "off",
|
|
155
|
+
"line-comment-position": "off",
|
|
156
|
+
"lines-between-class-members": [
|
|
157
|
+
"error",
|
|
158
|
+
"always",
|
|
159
|
+
{
|
|
160
|
+
exceptAfterSingleLine: true
|
|
161
|
+
}
|
|
162
|
+
],
|
|
163
|
+
"max-depth": "off",
|
|
164
|
+
"max-lines": "off",
|
|
165
|
+
"max-nested-callbacks": "off",
|
|
166
|
+
"max-params": "off",
|
|
167
|
+
"max-statements": "off",
|
|
168
|
+
"max-statements-per-line": [
|
|
169
|
+
"error",
|
|
170
|
+
{
|
|
171
|
+
max: 1
|
|
172
|
+
}
|
|
173
|
+
],
|
|
174
|
+
"multiline-comment-style": "off",
|
|
175
|
+
"new-cap": "off",
|
|
176
|
+
"no-alert": "error",
|
|
177
|
+
"no-array-constructor": "off",
|
|
178
|
+
"no-await-in-loop": "off",
|
|
179
|
+
"no-bitwise": "off",
|
|
180
|
+
"no-buffer-constructor": "error",
|
|
181
|
+
"no-caller": "error",
|
|
182
|
+
"no-case-declarations": "error",
|
|
183
|
+
"no-catch-shadow": "error",
|
|
184
|
+
"no-class-assign": "warn",
|
|
185
|
+
"no-compare-neg-zero": "error",
|
|
186
|
+
"no-cond-assign": "warn",
|
|
187
|
+
"no-console": "off",
|
|
188
|
+
"no-const-assign": "error",
|
|
189
|
+
"no-constant-condition": "off",
|
|
190
|
+
"no-control-regex": "off",
|
|
191
|
+
"no-debugger": "error",
|
|
192
|
+
"no-delete-var": "error",
|
|
193
|
+
"no-div-regex": "off",
|
|
194
|
+
"no-dupe-args": "error",
|
|
195
|
+
"no-dupe-class-members": "off",
|
|
196
|
+
"no-dupe-keys": "error",
|
|
197
|
+
"no-duplicate-case": "error",
|
|
198
|
+
"no-duplicate-imports": "off",
|
|
199
|
+
"no-else-return": "warn",
|
|
200
|
+
"no-empty": "off",
|
|
201
|
+
"no-empty-character-class": "error",
|
|
202
|
+
"no-empty-function": "off",
|
|
203
|
+
"no-empty-pattern": "off",
|
|
204
|
+
"no-eq-null": "warn",
|
|
205
|
+
"no-eval": "warn",
|
|
206
|
+
"no-ex-assign": "off",
|
|
207
|
+
"no-extend-native": "warn",
|
|
208
|
+
"no-extra-bind": "off",
|
|
209
|
+
"no-extra-boolean-cast": "off",
|
|
210
|
+
"no-extra-label": "warn",
|
|
211
|
+
"no-fallthrough": "off",
|
|
212
|
+
"no-func-assign": "off",
|
|
213
|
+
"no-global-assign": "off",
|
|
214
|
+
"no-implicit-coercion": "error",
|
|
215
|
+
"no-implicit-globals": "off",
|
|
216
|
+
"no-implied-eval": "off",
|
|
217
|
+
"no-import-assign": "warn",
|
|
218
|
+
"no-inline-comments": "off",
|
|
219
|
+
"no-inner-declarations": "off",
|
|
220
|
+
"no-invalid-regexp": "warn",
|
|
221
|
+
"no-invalid-this": "off",
|
|
222
|
+
"no-irregular-whitespace": [
|
|
223
|
+
"error",
|
|
224
|
+
{
|
|
225
|
+
skipComments: true,
|
|
226
|
+
skipRegExps: true,
|
|
227
|
+
skipStrings: true,
|
|
228
|
+
skipTemplates: true
|
|
229
|
+
}
|
|
230
|
+
],
|
|
231
|
+
"no-iterator": "off",
|
|
232
|
+
"no-label-var": "error",
|
|
233
|
+
"no-labels": "off",
|
|
234
|
+
"no-lone-blocks": "off",
|
|
235
|
+
"no-lonely-if": "error",
|
|
236
|
+
"no-loop-func": "off",
|
|
237
|
+
"no-magic-numbers": "off",
|
|
238
|
+
"no-mixed-requires": "error",
|
|
239
|
+
"no-multi-assign": "warn",
|
|
240
|
+
"no-multi-str": "error",
|
|
241
|
+
"no-negated-condition": "warn",
|
|
242
|
+
"no-nested-ternary": "off",
|
|
243
|
+
"no-new": "off",
|
|
244
|
+
"no-new-func": "warn",
|
|
245
|
+
"no-new-object": "error",
|
|
246
|
+
"no-new-require": "error",
|
|
247
|
+
"no-new-symbol": "warn",
|
|
248
|
+
"no-new-wrappers": "warn",
|
|
249
|
+
"no-obj-calls": "warn",
|
|
250
|
+
"no-octal": "error",
|
|
251
|
+
"no-octal-escape": "error",
|
|
252
|
+
"no-param-reassign": "off",
|
|
253
|
+
"no-path-concat": "warn",
|
|
254
|
+
"no-plusplus": "off",
|
|
255
|
+
"no-process-env": "off",
|
|
256
|
+
"no-process-exit": "off",
|
|
257
|
+
"no-proto": "off",
|
|
258
|
+
"no-prototype-builtins": "off",
|
|
259
|
+
"no-redeclare": "off",
|
|
260
|
+
"no-regex-spaces": "warn",
|
|
261
|
+
"no-restricted-globals": "off",
|
|
262
|
+
"no-restricted-imports": "off",
|
|
263
|
+
"no-restricted-modules": "off",
|
|
264
|
+
"no-restricted-properties": "off",
|
|
265
|
+
"no-restricted-syntax": "off",
|
|
266
|
+
"no-return-assign": "off",
|
|
267
|
+
"no-return-await": "warn",
|
|
268
|
+
"no-script-url": "off",
|
|
269
|
+
"no-self-assign": "error",
|
|
270
|
+
"no-self-compare": "warn",
|
|
271
|
+
"no-setter-return": "warn",
|
|
272
|
+
"no-shadow": "off",
|
|
273
|
+
"no-shadow-restricted-names": "error",
|
|
274
|
+
"no-sparse-arrays": "warn",
|
|
275
|
+
"no-sync": "off",
|
|
276
|
+
"no-template-curly-in-string": "error",
|
|
277
|
+
"no-ternary": "off",
|
|
278
|
+
"no-this-before-super": "error",
|
|
279
|
+
"no-throw-literal": "off",
|
|
280
|
+
"no-undef": "off",
|
|
281
|
+
"no-undef-init": "off",
|
|
282
|
+
"no-undefined": "off",
|
|
283
|
+
"no-underscore-dangle": "off",
|
|
284
|
+
"no-unmodified-loop-condition": "off",
|
|
285
|
+
"no-unneeded-ternary": "off",
|
|
286
|
+
"no-unreachable": "warn",
|
|
287
|
+
"no-unsafe-finally": "warn",
|
|
288
|
+
"no-unsafe-negation": "error",
|
|
289
|
+
"no-unused-expressions": "off",
|
|
290
|
+
"no-unused-labels": "error",
|
|
291
|
+
"no-unused-vars": "off",
|
|
292
|
+
"no-use-before-define": "off",
|
|
293
|
+
"no-useless-call": "off",
|
|
294
|
+
"no-useless-computed-key": "error",
|
|
295
|
+
"no-useless-concat": "warn",
|
|
296
|
+
"no-useless-constructor": "off",
|
|
297
|
+
"no-useless-escape": "off",
|
|
298
|
+
"no-useless-rename": "error",
|
|
299
|
+
"no-useless-return": "warn",
|
|
300
|
+
"no-var": "error",
|
|
301
|
+
"no-void": "off",
|
|
302
|
+
"no-warning-comments": "off",
|
|
303
|
+
"no-with": "error",
|
|
304
|
+
"object-shorthand": ["error", "always"],
|
|
305
|
+
"one-var": ["error", "never"],
|
|
306
|
+
"operator-assignment": ["error", "always"],
|
|
307
|
+
"padding-line-between-statements": "off",
|
|
308
|
+
"prefer-const": [
|
|
309
|
+
"error",
|
|
310
|
+
{
|
|
311
|
+
destructuring: "all"
|
|
312
|
+
}
|
|
313
|
+
],
|
|
314
|
+
"prefer-destructuring": [
|
|
315
|
+
"error",
|
|
316
|
+
{
|
|
317
|
+
AssignmentExpression: {
|
|
318
|
+
array: true,
|
|
319
|
+
object: false
|
|
320
|
+
},
|
|
321
|
+
VariableDeclarator: {
|
|
322
|
+
array: false,
|
|
323
|
+
object: true
|
|
324
|
+
}
|
|
325
|
+
}
|
|
326
|
+
],
|
|
327
|
+
"prefer-numeric-literals": "off",
|
|
328
|
+
"prefer-promise-reject-errors": "error",
|
|
329
|
+
"prefer-rest-params": "warn",
|
|
330
|
+
"prefer-spread": "error",
|
|
331
|
+
"prefer-template": "warn",
|
|
332
|
+
radix: "error",
|
|
333
|
+
"require-await": "off",
|
|
334
|
+
"require-jsdoc": "off",
|
|
335
|
+
"require-yield": "warn",
|
|
336
|
+
"sort-imports": "off",
|
|
337
|
+
"sort-keys": "off",
|
|
338
|
+
"sort-vars": "off",
|
|
339
|
+
"spaced-comment": ["error", "always"],
|
|
340
|
+
strict: ["error", "never"],
|
|
341
|
+
"symbol-description": "warn",
|
|
342
|
+
"use-isnan": "error",
|
|
343
|
+
"valid-jsdoc": "off",
|
|
344
|
+
"valid-typeof": "error",
|
|
345
|
+
"vars-on-top": "off",
|
|
346
|
+
yoda: "error"
|
|
155
347
|
}
|
|
156
|
-
|
|
157
|
-
|
|
158
|
-
"max-lines": "off",
|
|
159
|
-
"max-nested-callbacks": "off",
|
|
160
|
-
"max-params": "off",
|
|
161
|
-
"max-statements": "off",
|
|
162
|
-
"max-statements-per-line": [
|
|
163
|
-
"error",
|
|
164
|
-
{
|
|
165
|
-
max: 1
|
|
166
|
-
}
|
|
167
|
-
],
|
|
168
|
-
"multiline-comment-style": "off",
|
|
169
|
-
"new-cap": "off",
|
|
170
|
-
"no-alert": "error",
|
|
171
|
-
"no-array-constructor": "off",
|
|
172
|
-
"no-await-in-loop": "off",
|
|
173
|
-
"no-bitwise": "off",
|
|
174
|
-
"no-buffer-constructor": "error",
|
|
175
|
-
"no-caller": "error",
|
|
176
|
-
"no-case-declarations": "error",
|
|
177
|
-
"no-catch-shadow": "error",
|
|
178
|
-
"no-class-assign": "warn",
|
|
179
|
-
"no-compare-neg-zero": "error",
|
|
180
|
-
"no-cond-assign": "warn",
|
|
181
|
-
"no-console": "off",
|
|
182
|
-
"no-const-assign": "error",
|
|
183
|
-
"no-constant-condition": "off",
|
|
184
|
-
"no-control-regex": "off",
|
|
185
|
-
"no-debugger": "error",
|
|
186
|
-
"no-delete-var": "error",
|
|
187
|
-
"no-div-regex": "off",
|
|
188
|
-
"no-dupe-args": "error",
|
|
189
|
-
"no-dupe-class-members": "off",
|
|
190
|
-
"no-dupe-keys": "error",
|
|
191
|
-
"no-duplicate-case": "error",
|
|
192
|
-
"no-duplicate-imports": "off",
|
|
193
|
-
"no-else-return": "warn",
|
|
194
|
-
"no-empty": "off",
|
|
195
|
-
"no-empty-character-class": "error",
|
|
196
|
-
"no-empty-function": "off",
|
|
197
|
-
"no-empty-pattern": "off",
|
|
198
|
-
"no-eq-null": "warn",
|
|
199
|
-
"no-eval": "warn",
|
|
200
|
-
"no-ex-assign": "off",
|
|
201
|
-
"no-extend-native": "warn",
|
|
202
|
-
"no-extra-bind": "off",
|
|
203
|
-
"no-extra-boolean-cast": "off",
|
|
204
|
-
"no-extra-label": "warn",
|
|
205
|
-
"no-fallthrough": "off",
|
|
206
|
-
"no-func-assign": "off",
|
|
207
|
-
"no-global-assign": "off",
|
|
208
|
-
"no-implicit-coercion": "error",
|
|
209
|
-
"no-implicit-globals": "off",
|
|
210
|
-
"no-implied-eval": "off",
|
|
211
|
-
"no-import-assign": "warn",
|
|
212
|
-
"no-inline-comments": "off",
|
|
213
|
-
"no-inner-declarations": "off",
|
|
214
|
-
"no-invalid-regexp": "warn",
|
|
215
|
-
"no-invalid-this": "off",
|
|
216
|
-
"no-irregular-whitespace": [
|
|
217
|
-
"error",
|
|
218
|
-
{
|
|
219
|
-
skipComments: true,
|
|
220
|
-
skipRegExps: true,
|
|
221
|
-
skipStrings: true,
|
|
222
|
-
skipTemplates: true
|
|
223
|
-
}
|
|
224
|
-
],
|
|
225
|
-
"no-iterator": "off",
|
|
226
|
-
"no-label-var": "error",
|
|
227
|
-
"no-labels": "off",
|
|
228
|
-
"no-lone-blocks": "off",
|
|
229
|
-
"no-lonely-if": "error",
|
|
230
|
-
"no-loop-func": "off",
|
|
231
|
-
"no-magic-numbers": "off",
|
|
232
|
-
"no-mixed-requires": "error",
|
|
233
|
-
"no-multi-assign": "warn",
|
|
234
|
-
"no-multi-str": "error",
|
|
235
|
-
"no-negated-condition": "warn",
|
|
236
|
-
"no-nested-ternary": "off",
|
|
237
|
-
"no-new": "off",
|
|
238
|
-
"no-new-func": "warn",
|
|
239
|
-
"no-new-object": "error",
|
|
240
|
-
"no-new-require": "error",
|
|
241
|
-
"no-new-symbol": "warn",
|
|
242
|
-
"no-new-wrappers": "warn",
|
|
243
|
-
"no-obj-calls": "warn",
|
|
244
|
-
"no-octal": "error",
|
|
245
|
-
"no-octal-escape": "error",
|
|
246
|
-
"no-param-reassign": "off",
|
|
247
|
-
"no-path-concat": "warn",
|
|
248
|
-
"no-plusplus": "off",
|
|
249
|
-
"no-process-env": "off",
|
|
250
|
-
"no-process-exit": "off",
|
|
251
|
-
"no-proto": "off",
|
|
252
|
-
"no-prototype-builtins": "off",
|
|
253
|
-
"no-redeclare": "off",
|
|
254
|
-
"no-regex-spaces": "warn",
|
|
255
|
-
"no-restricted-globals": "off",
|
|
256
|
-
"no-restricted-imports": "off",
|
|
257
|
-
"no-restricted-modules": "off",
|
|
258
|
-
"no-restricted-properties": "off",
|
|
259
|
-
"no-restricted-syntax": "off",
|
|
260
|
-
"no-return-assign": "off",
|
|
261
|
-
"no-return-await": "warn",
|
|
262
|
-
"no-script-url": "off",
|
|
263
|
-
"no-self-assign": "error",
|
|
264
|
-
"no-self-compare": "warn",
|
|
265
|
-
"no-setter-return": "warn",
|
|
266
|
-
"no-shadow": "off",
|
|
267
|
-
"no-shadow-restricted-names": "error",
|
|
268
|
-
"no-sparse-arrays": "warn",
|
|
269
|
-
"no-sync": "off",
|
|
270
|
-
"no-template-curly-in-string": "error",
|
|
271
|
-
"no-ternary": "off",
|
|
272
|
-
"no-this-before-super": "error",
|
|
273
|
-
"no-throw-literal": "off",
|
|
274
|
-
"no-undef": "off",
|
|
275
|
-
"no-undef-init": "off",
|
|
276
|
-
"no-undefined": "off",
|
|
277
|
-
"no-underscore-dangle": "off",
|
|
278
|
-
"no-unmodified-loop-condition": "off",
|
|
279
|
-
"no-unneeded-ternary": "off",
|
|
280
|
-
"no-unreachable": "warn",
|
|
281
|
-
"no-unsafe-finally": "warn",
|
|
282
|
-
"no-unsafe-negation": "error",
|
|
283
|
-
"no-unused-expressions": "off",
|
|
284
|
-
"no-unused-labels": "error",
|
|
285
|
-
"no-unused-vars": "off",
|
|
286
|
-
"no-use-before-define": "off",
|
|
287
|
-
"no-useless-call": "off",
|
|
288
|
-
"no-useless-computed-key": "error",
|
|
289
|
-
"no-useless-concat": "warn",
|
|
290
|
-
"no-useless-constructor": "off",
|
|
291
|
-
"no-useless-escape": "off",
|
|
292
|
-
"no-useless-rename": "error",
|
|
293
|
-
"no-useless-return": "warn",
|
|
294
|
-
"no-var": "error",
|
|
295
|
-
"no-void": "off",
|
|
296
|
-
"no-warning-comments": "off",
|
|
297
|
-
"no-with": "error",
|
|
298
|
-
"object-shorthand": ["error", "always"],
|
|
299
|
-
"one-var": ["error", "never"],
|
|
300
|
-
"operator-assignment": ["error", "always"],
|
|
301
|
-
"padding-line-between-statements": "off",
|
|
302
|
-
"prefer-const": [
|
|
303
|
-
"error",
|
|
304
|
-
{
|
|
305
|
-
destructuring: "all"
|
|
306
|
-
}
|
|
307
|
-
],
|
|
308
|
-
"prefer-destructuring": [
|
|
309
|
-
"error",
|
|
310
|
-
{
|
|
311
|
-
AssignmentExpression: {
|
|
312
|
-
array: true,
|
|
313
|
-
object: false
|
|
314
|
-
},
|
|
315
|
-
VariableDeclarator: {
|
|
316
|
-
array: false,
|
|
317
|
-
object: true
|
|
318
|
-
}
|
|
319
|
-
}
|
|
320
|
-
],
|
|
321
|
-
"prefer-numeric-literals": "off",
|
|
322
|
-
"prefer-promise-reject-errors": "error",
|
|
323
|
-
"prefer-rest-params": "warn",
|
|
324
|
-
"prefer-spread": "error",
|
|
325
|
-
"prefer-template": "warn",
|
|
326
|
-
radix: "error",
|
|
327
|
-
"require-await": "off",
|
|
328
|
-
"require-jsdoc": "off",
|
|
329
|
-
"require-yield": "warn",
|
|
330
|
-
"sort-imports": "off",
|
|
331
|
-
"sort-keys": "off",
|
|
332
|
-
"sort-vars": "off",
|
|
333
|
-
"spaced-comment": ["error", "always"],
|
|
334
|
-
strict: ["error", "never"],
|
|
335
|
-
"symbol-description": "warn",
|
|
336
|
-
"use-isnan": "error",
|
|
337
|
-
"valid-jsdoc": "off",
|
|
338
|
-
"valid-typeof": "error",
|
|
339
|
-
"vars-on-top": "off",
|
|
340
|
-
yoda: "error"
|
|
348
|
+
};
|
|
349
|
+
module.exports = eslintConfig;
|
|
341
350
|
}
|
|
342
|
-
};
|
|
343
|
-
|
|
351
|
+
});
|
|
352
|
+
var index = require_src();
|
|
353
|
+
|
|
354
|
+
module.exports = index;
|
package/package.json
CHANGED
|
@@ -1,14 +1,13 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@sapphire/eslint-config",
|
|
3
|
-
"version": "4.3.9-next.
|
|
3
|
+
"version": "4.3.9-next.ef27abe.0",
|
|
4
4
|
"description": "Standard ESLint config for the Sapphire Community",
|
|
5
5
|
"author": "@sapphire",
|
|
6
6
|
"license": "MIT",
|
|
7
7
|
"main": "dist/index.js",
|
|
8
8
|
"exports": {
|
|
9
9
|
"import": "./dist/index.js",
|
|
10
|
-
"require": "./dist/index.js"
|
|
11
|
-
"types": "./dist/index.d.ts"
|
|
10
|
+
"require": "./dist/index.js"
|
|
12
11
|
},
|
|
13
12
|
"sideEffects": false,
|
|
14
13
|
"homepage": "https://github.com/sapphiredev/utilities/tree/main/packages/eslint-config",
|
|
@@ -21,13 +20,13 @@
|
|
|
21
20
|
"check-update": "cliff-jumper --dry-run"
|
|
22
21
|
},
|
|
23
22
|
"dependencies": {
|
|
24
|
-
"@typescript-eslint/eslint-plugin": "^5.
|
|
25
|
-
"@typescript-eslint/parser": "^5.
|
|
26
|
-
"eslint": "^8.
|
|
23
|
+
"@typescript-eslint/eslint-plugin": "^5.40.1",
|
|
24
|
+
"@typescript-eslint/parser": "^5.40.1",
|
|
25
|
+
"eslint": "^8.26.0",
|
|
27
26
|
"eslint-config-prettier": "^8.5.0",
|
|
28
27
|
"eslint-plugin-prettier": "^4.2.1",
|
|
29
28
|
"prettier": "^2.7.1",
|
|
30
|
-
"typescript": "^4.8.
|
|
29
|
+
"typescript": "^4.8.4"
|
|
31
30
|
},
|
|
32
31
|
"repository": {
|
|
33
32
|
"type": "git",
|
|
@@ -60,9 +59,9 @@
|
|
|
60
59
|
"access": "public"
|
|
61
60
|
},
|
|
62
61
|
"devDependencies": {
|
|
63
|
-
"@favware/cliff-jumper": "^1.8.
|
|
64
|
-
"@vitest/coverage-c8": "^0.
|
|
65
|
-
"tsup": "^6.
|
|
66
|
-
"vitest": "^0.
|
|
62
|
+
"@favware/cliff-jumper": "^1.8.8",
|
|
63
|
+
"@vitest/coverage-c8": "^0.24.3",
|
|
64
|
+
"tsup": "^6.3.0",
|
|
65
|
+
"vitest": "^0.24.3"
|
|
67
66
|
}
|
|
68
67
|
}
|
package/dist/index.d.ts
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
|