@ffflorian/oxlint-config 0.0.1
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/.oxlintrc.json +374 -0
- package/package.json +26 -0
package/.oxlintrc.json
ADDED
|
@@ -0,0 +1,374 @@
|
|
|
1
|
+
{
|
|
2
|
+
"categories": {
|
|
3
|
+
"correctness": "off"
|
|
4
|
+
},
|
|
5
|
+
"env": {
|
|
6
|
+
"builtin": true
|
|
7
|
+
},
|
|
8
|
+
"ignorePatterns": [
|
|
9
|
+
"**/node_modules/**",
|
|
10
|
+
"**/dist/**",
|
|
11
|
+
".yarn/**"
|
|
12
|
+
],
|
|
13
|
+
"overrides": [
|
|
14
|
+
{
|
|
15
|
+
"files": [
|
|
16
|
+
"**/*.ts",
|
|
17
|
+
"**/*.tsx",
|
|
18
|
+
"**/*.mts",
|
|
19
|
+
"**/*.cts"
|
|
20
|
+
],
|
|
21
|
+
"rules": {
|
|
22
|
+
"constructor-super": "off",
|
|
23
|
+
"getter-return": "off",
|
|
24
|
+
"no-class-assign": "off",
|
|
25
|
+
"no-const-assign": "off",
|
|
26
|
+
"no-dupe-class-members": "off",
|
|
27
|
+
"no-dupe-keys": "off",
|
|
28
|
+
"no-func-assign": "off",
|
|
29
|
+
"no-import-assign": "off",
|
|
30
|
+
"no-new-native-nonconstructor": "off",
|
|
31
|
+
"no-obj-calls": "off",
|
|
32
|
+
"no-redeclare": "off",
|
|
33
|
+
"no-setter-return": "off",
|
|
34
|
+
"no-this-before-super": "off",
|
|
35
|
+
"no-undef": "off",
|
|
36
|
+
"no-unreachable": "off",
|
|
37
|
+
"no-unsafe-negation": "off",
|
|
38
|
+
"no-var": "error",
|
|
39
|
+
"no-with": "off",
|
|
40
|
+
"prefer-const": "error",
|
|
41
|
+
"prefer-rest-params": "error",
|
|
42
|
+
"prefer-spread": "error"
|
|
43
|
+
}
|
|
44
|
+
},
|
|
45
|
+
{
|
|
46
|
+
"env": {
|
|
47
|
+
"browser": true,
|
|
48
|
+
"es2018": true,
|
|
49
|
+
"node": true
|
|
50
|
+
},
|
|
51
|
+
"files": [
|
|
52
|
+
"**/*.{js,mjs,cjs,ts,mts,cts}"
|
|
53
|
+
],
|
|
54
|
+
"globals": {
|
|
55
|
+
"AsyncDisposableStack": "readonly",
|
|
56
|
+
"DisposableStack": "readonly",
|
|
57
|
+
"SuppressedError": "readonly"
|
|
58
|
+
},
|
|
59
|
+
"jsPlugins": [
|
|
60
|
+
"eslint-plugin-perfectionist"
|
|
61
|
+
],
|
|
62
|
+
"plugins": [
|
|
63
|
+
"import"
|
|
64
|
+
],
|
|
65
|
+
"rules": {
|
|
66
|
+
"constructor-super": "error",
|
|
67
|
+
"curly": "error",
|
|
68
|
+
"id-length": [
|
|
69
|
+
"error",
|
|
70
|
+
{
|
|
71
|
+
"exceptions": [
|
|
72
|
+
"_"
|
|
73
|
+
]
|
|
74
|
+
}
|
|
75
|
+
],
|
|
76
|
+
"import/default": "error",
|
|
77
|
+
"import/export": "error",
|
|
78
|
+
"import/named": "off",
|
|
79
|
+
"import/namespace": "error",
|
|
80
|
+
"import/no-duplicates": "warn",
|
|
81
|
+
"import/no-named-as-default": "warn",
|
|
82
|
+
"import/no-named-as-default-member": "warn",
|
|
83
|
+
"no-console": [
|
|
84
|
+
"error",
|
|
85
|
+
{
|
|
86
|
+
"allow": [
|
|
87
|
+
"error",
|
|
88
|
+
"info",
|
|
89
|
+
"warn"
|
|
90
|
+
]
|
|
91
|
+
}
|
|
92
|
+
],
|
|
93
|
+
"no-const-assign": "error",
|
|
94
|
+
"no-else-return": "error",
|
|
95
|
+
"no-inner-declarations": "error",
|
|
96
|
+
"no-lonely-if": "error",
|
|
97
|
+
"no-magic-numbers": [
|
|
98
|
+
"error",
|
|
99
|
+
{
|
|
100
|
+
"ignore": [
|
|
101
|
+
-1,
|
|
102
|
+
0,
|
|
103
|
+
1,
|
|
104
|
+
2
|
|
105
|
+
]
|
|
106
|
+
}
|
|
107
|
+
],
|
|
108
|
+
"no-prototype-builtins": "off",
|
|
109
|
+
"no-redeclare": "error",
|
|
110
|
+
"no-sequences": "error",
|
|
111
|
+
"no-undef": "off",
|
|
112
|
+
"no-unneeded-ternary": "error",
|
|
113
|
+
"no-useless-return": "error",
|
|
114
|
+
"no-var": "error",
|
|
115
|
+
"perfectionist/sort-array-includes": [
|
|
116
|
+
"error",
|
|
117
|
+
{
|
|
118
|
+
"order": "asc",
|
|
119
|
+
"type": "alphabetical"
|
|
120
|
+
}
|
|
121
|
+
],
|
|
122
|
+
"perfectionist/sort-classes": [
|
|
123
|
+
"error",
|
|
124
|
+
{
|
|
125
|
+
"order": "asc",
|
|
126
|
+
"type": "alphabetical"
|
|
127
|
+
}
|
|
128
|
+
],
|
|
129
|
+
"perfectionist/sort-decorators": [
|
|
130
|
+
"error",
|
|
131
|
+
{
|
|
132
|
+
"order": "asc",
|
|
133
|
+
"type": "alphabetical"
|
|
134
|
+
}
|
|
135
|
+
],
|
|
136
|
+
"perfectionist/sort-enums": [
|
|
137
|
+
"error",
|
|
138
|
+
{
|
|
139
|
+
"order": "asc",
|
|
140
|
+
"type": "alphabetical"
|
|
141
|
+
}
|
|
142
|
+
],
|
|
143
|
+
"perfectionist/sort-export-attributes": [
|
|
144
|
+
"error",
|
|
145
|
+
{
|
|
146
|
+
"order": "asc",
|
|
147
|
+
"type": "alphabetical"
|
|
148
|
+
}
|
|
149
|
+
],
|
|
150
|
+
"perfectionist/sort-exports": [
|
|
151
|
+
"error",
|
|
152
|
+
{
|
|
153
|
+
"order": "asc",
|
|
154
|
+
"type": "alphabetical"
|
|
155
|
+
}
|
|
156
|
+
],
|
|
157
|
+
"perfectionist/sort-heritage-clauses": [
|
|
158
|
+
"error",
|
|
159
|
+
{
|
|
160
|
+
"order": "asc",
|
|
161
|
+
"type": "alphabetical"
|
|
162
|
+
}
|
|
163
|
+
],
|
|
164
|
+
"perfectionist/sort-import-attributes": [
|
|
165
|
+
"error",
|
|
166
|
+
{
|
|
167
|
+
"order": "asc",
|
|
168
|
+
"type": "alphabetical"
|
|
169
|
+
}
|
|
170
|
+
],
|
|
171
|
+
"perfectionist/sort-interfaces": [
|
|
172
|
+
"error",
|
|
173
|
+
{
|
|
174
|
+
"order": "asc",
|
|
175
|
+
"type": "alphabetical"
|
|
176
|
+
}
|
|
177
|
+
],
|
|
178
|
+
"perfectionist/sort-intersection-types": [
|
|
179
|
+
"error",
|
|
180
|
+
{
|
|
181
|
+
"order": "asc",
|
|
182
|
+
"type": "alphabetical"
|
|
183
|
+
}
|
|
184
|
+
],
|
|
185
|
+
"perfectionist/sort-jsx-props": [
|
|
186
|
+
"error",
|
|
187
|
+
{
|
|
188
|
+
"order": "asc",
|
|
189
|
+
"type": "alphabetical"
|
|
190
|
+
}
|
|
191
|
+
],
|
|
192
|
+
"perfectionist/sort-maps": [
|
|
193
|
+
"error",
|
|
194
|
+
{
|
|
195
|
+
"order": "asc",
|
|
196
|
+
"type": "alphabetical"
|
|
197
|
+
}
|
|
198
|
+
],
|
|
199
|
+
"perfectionist/sort-modules": [
|
|
200
|
+
"error",
|
|
201
|
+
{
|
|
202
|
+
"order": "asc",
|
|
203
|
+
"type": "alphabetical"
|
|
204
|
+
}
|
|
205
|
+
],
|
|
206
|
+
"perfectionist/sort-named-exports": [
|
|
207
|
+
"error",
|
|
208
|
+
{
|
|
209
|
+
"order": "asc",
|
|
210
|
+
"type": "alphabetical"
|
|
211
|
+
}
|
|
212
|
+
],
|
|
213
|
+
"perfectionist/sort-named-imports": [
|
|
214
|
+
"error",
|
|
215
|
+
{
|
|
216
|
+
"order": "asc",
|
|
217
|
+
"type": "alphabetical"
|
|
218
|
+
}
|
|
219
|
+
],
|
|
220
|
+
"perfectionist/sort-object-types": [
|
|
221
|
+
"error",
|
|
222
|
+
{
|
|
223
|
+
"order": "asc",
|
|
224
|
+
"type": "alphabetical"
|
|
225
|
+
}
|
|
226
|
+
],
|
|
227
|
+
"perfectionist/sort-objects": [
|
|
228
|
+
"error",
|
|
229
|
+
{
|
|
230
|
+
"order": "asc",
|
|
231
|
+
"type": "alphabetical"
|
|
232
|
+
}
|
|
233
|
+
],
|
|
234
|
+
"perfectionist/sort-sets": [
|
|
235
|
+
"error",
|
|
236
|
+
{
|
|
237
|
+
"order": "asc",
|
|
238
|
+
"type": "alphabetical"
|
|
239
|
+
}
|
|
240
|
+
],
|
|
241
|
+
"perfectionist/sort-switch-case": [
|
|
242
|
+
"error",
|
|
243
|
+
{
|
|
244
|
+
"order": "asc",
|
|
245
|
+
"type": "alphabetical"
|
|
246
|
+
}
|
|
247
|
+
],
|
|
248
|
+
"perfectionist/sort-union-types": [
|
|
249
|
+
"error",
|
|
250
|
+
{
|
|
251
|
+
"order": "asc",
|
|
252
|
+
"type": "alphabetical"
|
|
253
|
+
}
|
|
254
|
+
],
|
|
255
|
+
"perfectionist/sort-variable-declarations": [
|
|
256
|
+
"error",
|
|
257
|
+
{
|
|
258
|
+
"order": "asc",
|
|
259
|
+
"type": "alphabetical"
|
|
260
|
+
}
|
|
261
|
+
],
|
|
262
|
+
"prefer-arrow-callback": "error",
|
|
263
|
+
"prefer-const": "error",
|
|
264
|
+
"prefer-object-spread": "error",
|
|
265
|
+
"prefer-promise-reject-errors": "error",
|
|
266
|
+
"prefer-spread": "error",
|
|
267
|
+
"prefer-template": "error",
|
|
268
|
+
"sort-keys": "off",
|
|
269
|
+
"sort-vars": "error",
|
|
270
|
+
"typescript/array-type": [
|
|
271
|
+
"error",
|
|
272
|
+
{
|
|
273
|
+
"default": "array-simple"
|
|
274
|
+
}
|
|
275
|
+
],
|
|
276
|
+
"typescript/consistent-type-assertions": "error",
|
|
277
|
+
"typescript/no-empty-object-type": "off",
|
|
278
|
+
"typescript/no-explicit-any": "off",
|
|
279
|
+
"typescript/no-inferrable-types": [
|
|
280
|
+
"error",
|
|
281
|
+
{
|
|
282
|
+
"ignoreParameters": true
|
|
283
|
+
}
|
|
284
|
+
]
|
|
285
|
+
}
|
|
286
|
+
}
|
|
287
|
+
],
|
|
288
|
+
"plugins": [
|
|
289
|
+
"typescript"
|
|
290
|
+
],
|
|
291
|
+
"rules": {
|
|
292
|
+
"constructor-super": "error",
|
|
293
|
+
"for-direction": "error",
|
|
294
|
+
"getter-return": "error",
|
|
295
|
+
"no-array-constructor": "error",
|
|
296
|
+
"no-async-promise-executor": "error",
|
|
297
|
+
"no-case-declarations": "error",
|
|
298
|
+
"no-class-assign": "error",
|
|
299
|
+
"no-compare-neg-zero": "error",
|
|
300
|
+
"no-cond-assign": "error",
|
|
301
|
+
"no-const-assign": "error",
|
|
302
|
+
"no-constant-binary-expression": "error",
|
|
303
|
+
"no-constant-condition": "error",
|
|
304
|
+
"no-control-regex": "error",
|
|
305
|
+
"no-debugger": "error",
|
|
306
|
+
"no-delete-var": "error",
|
|
307
|
+
"no-dupe-class-members": "error",
|
|
308
|
+
"no-dupe-else-if": "error",
|
|
309
|
+
"no-dupe-keys": "error",
|
|
310
|
+
"no-duplicate-case": "error",
|
|
311
|
+
"no-empty": "error",
|
|
312
|
+
"no-empty-character-class": "error",
|
|
313
|
+
"no-empty-pattern": "error",
|
|
314
|
+
"no-empty-static-block": "error",
|
|
315
|
+
"no-ex-assign": "error",
|
|
316
|
+
"no-extra-boolean-cast": "error",
|
|
317
|
+
"no-fallthrough": "error",
|
|
318
|
+
"no-func-assign": "error",
|
|
319
|
+
"no-global-assign": "error",
|
|
320
|
+
"no-import-assign": "error",
|
|
321
|
+
"no-invalid-regexp": "error",
|
|
322
|
+
"no-irregular-whitespace": "error",
|
|
323
|
+
"no-loss-of-precision": "error",
|
|
324
|
+
"no-misleading-character-class": "error",
|
|
325
|
+
"no-new-native-nonconstructor": "error",
|
|
326
|
+
"no-nonoctal-decimal-escape": "error",
|
|
327
|
+
"no-obj-calls": "error",
|
|
328
|
+
"no-prototype-builtins": "error",
|
|
329
|
+
"no-redeclare": "error",
|
|
330
|
+
"no-regex-spaces": "error",
|
|
331
|
+
"no-self-assign": "error",
|
|
332
|
+
"no-setter-return": "error",
|
|
333
|
+
"no-shadow-restricted-names": "error",
|
|
334
|
+
"no-sparse-arrays": "error",
|
|
335
|
+
"no-this-before-super": "error",
|
|
336
|
+
"no-unassigned-vars": "error",
|
|
337
|
+
"no-undef": "error",
|
|
338
|
+
"no-unexpected-multiline": "error",
|
|
339
|
+
"no-unreachable": "error",
|
|
340
|
+
"no-unsafe-finally": "error",
|
|
341
|
+
"no-unsafe-negation": "error",
|
|
342
|
+
"no-unsafe-optional-chaining": "error",
|
|
343
|
+
"no-unused-expressions": "error",
|
|
344
|
+
"no-unused-labels": "error",
|
|
345
|
+
"no-unused-private-class-members": "error",
|
|
346
|
+
"no-unused-vars": "error",
|
|
347
|
+
"no-useless-assignment": "error",
|
|
348
|
+
"no-useless-backreference": "error",
|
|
349
|
+
"no-useless-catch": "error",
|
|
350
|
+
"no-useless-escape": "error",
|
|
351
|
+
"no-with": "error",
|
|
352
|
+
"preserve-caught-error": "error",
|
|
353
|
+
"require-yield": "error",
|
|
354
|
+
"typescript/ban-ts-comment": "error",
|
|
355
|
+
"typescript/no-duplicate-enum-values": "error",
|
|
356
|
+
"typescript/no-empty-object-type": "error",
|
|
357
|
+
"typescript/no-explicit-any": "error",
|
|
358
|
+
"typescript/no-extra-non-null-assertion": "error",
|
|
359
|
+
"typescript/no-misused-new": "error",
|
|
360
|
+
"typescript/no-namespace": "error",
|
|
361
|
+
"typescript/no-non-null-asserted-optional-chain": "error",
|
|
362
|
+
"typescript/no-require-imports": "error",
|
|
363
|
+
"typescript/no-this-alias": "error",
|
|
364
|
+
"typescript/no-unnecessary-type-constraint": "error",
|
|
365
|
+
"typescript/no-unsafe-declaration-merging": "error",
|
|
366
|
+
"typescript/no-unsafe-function-type": "error",
|
|
367
|
+
"typescript/no-wrapper-object-types": "error",
|
|
368
|
+
"typescript/prefer-as-const": "error",
|
|
369
|
+
"typescript/prefer-namespace-keyword": "error",
|
|
370
|
+
"typescript/triple-slash-reference": "error",
|
|
371
|
+
"use-isnan": "error",
|
|
372
|
+
"valid-typeof": "error"
|
|
373
|
+
}
|
|
374
|
+
}
|
package/package.json
ADDED
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
{
|
|
2
|
+
"author": "Florian Imdahl <git@ffflorian.de>",
|
|
3
|
+
"description": "@ffflorian's oxlint configuration",
|
|
4
|
+
"devDependencies": {
|
|
5
|
+
"oxlint": "1.76.0"
|
|
6
|
+
},
|
|
7
|
+
"keywords": [
|
|
8
|
+
"oxlint",
|
|
9
|
+
"oxlintconfig"
|
|
10
|
+
],
|
|
11
|
+
"license": "GPL-3.0",
|
|
12
|
+
"main": "index.ts",
|
|
13
|
+
"name": "@ffflorian/oxlint-config",
|
|
14
|
+
"peerDependencies": {
|
|
15
|
+
"oxlint": ">=1.76.0"
|
|
16
|
+
},
|
|
17
|
+
"scripts": {
|
|
18
|
+
"fix": "exit 0",
|
|
19
|
+
"lint": "exit 0"
|
|
20
|
+
},
|
|
21
|
+
"repository": {
|
|
22
|
+
"type": "git",
|
|
23
|
+
"url": "git+https://github.com/ffflorian/config.git"
|
|
24
|
+
},
|
|
25
|
+
"version": "0.0.1"
|
|
26
|
+
}
|