@milkenjoyer/toolchain 0.0.0-stage → 0.6.5
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 +36 -2
- package/dist/array-method-C_XYdjLZ.mjs +178 -0
- package/dist/compatible.d.mts +91 -0
- package/dist/compatible.mjs +160 -0
- package/dist/effect-plugin-DARbVmA3.mjs +3493 -0
- package/dist/effect-plugin.d.mts +3967 -0
- package/dist/effect-plugin.mjs +1 -0
- package/dist/effect-tsgo.d.mts +10 -0
- package/dist/effect-tsgo.mjs +16 -0
- package/dist/exceptions.d.mts +6 -0
- package/dist/exceptions.mjs +16 -0
- package/dist/fmt.d.mts +5 -0
- package/dist/fmt.mjs +8 -0
- package/dist/foldkit.d.mts +3 -0
- package/dist/foldkit.mjs +17 -0
- package/dist/guard.d.mts +32 -0
- package/dist/guard.mjs +131 -0
- package/dist/hooks.d.mts +16 -0
- package/dist/hooks.mjs +137 -0
- package/dist/index.d.mts +1 -0
- package/dist/index.mjs +3 -0
- package/dist/knip.d.mts +7 -0
- package/dist/knip.mjs +15 -0
- package/dist/lint.d.mts +9 -0
- package/dist/lint.mjs +113 -0
- package/dist/plugin-CBUJ7Tgd.mjs +927 -0
- package/dist/plugin.d.mts +19 -0
- package/dist/plugin.mjs +1 -0
- package/dist/rikalabs-hPKWFZ1P.mjs +362 -0
- package/dist/rikalabs.d.mts +80 -0
- package/dist/rikalabs.mjs +1 -0
- package/dist/rules.d.mts +246 -0
- package/dist/rules.mjs +234 -0
- package/dist/versions.d.mts +46 -0
- package/dist/versions.mjs +148 -0
- package/licenses/anti-slop.txt +21 -0
- package/licenses/oxlint-plugin-effect.txt +21 -0
- package/node-version +1 -0
- package/package.json +114 -4
- package/renovate.json +78 -0
- package/tsconfig.base.json +34 -0
- package/vscode/extensions.json +3 -0
- package/vscode/settings.json +6 -0
package/dist/rules.d.mts
ADDED
|
@@ -0,0 +1,246 @@
|
|
|
1
|
+
export declare const staticRules: {
|
|
2
|
+
"oxc/no-async-await": "off";
|
|
3
|
+
"oxc/no-accumulating-spread": "error";
|
|
4
|
+
"eslint/eqeqeq": ["error", "always"];
|
|
5
|
+
"eslint/no-unused-expressions": "error";
|
|
6
|
+
"eslint/no-sequences": "error";
|
|
7
|
+
"eslint/no-unreachable": "error";
|
|
8
|
+
"eslint/no-constant-condition": "error";
|
|
9
|
+
"eslint/func-names": "off";
|
|
10
|
+
"eslint/no-undefined": "off";
|
|
11
|
+
"eslint/sort-imports": "off";
|
|
12
|
+
"eslint/sort-keys": "off";
|
|
13
|
+
"eslint/no-extend-native": "error";
|
|
14
|
+
"eslint/no-global-assign": "error";
|
|
15
|
+
"eslint/no-implicit-globals": "error";
|
|
16
|
+
"eslint/use-isnan": "error";
|
|
17
|
+
"eslint/no-compare-neg-zero": "error";
|
|
18
|
+
"eslint/no-case-declarations": "error";
|
|
19
|
+
"eslint/no-fallthrough": "error";
|
|
20
|
+
"eslint/default-case": "error";
|
|
21
|
+
"eslint/no-unsafe-finally": "error";
|
|
22
|
+
"eslint/no-void": "error";
|
|
23
|
+
"eslint/no-script-url": "error";
|
|
24
|
+
"eslint/no-prototype-builtins": "error";
|
|
25
|
+
"unicorn/no-object-as-default-parameter": "error";
|
|
26
|
+
"unicorn/no-useless-fallback-in-spread": "error";
|
|
27
|
+
"import/no-cycle": "error";
|
|
28
|
+
"import/no-self-import": "error";
|
|
29
|
+
"import/no-duplicates": "error";
|
|
30
|
+
"import/group-exports": "off";
|
|
31
|
+
"import/no-default-export": "off";
|
|
32
|
+
"import/no-named-export": "off";
|
|
33
|
+
"import/no-relative-parent-imports": "off";
|
|
34
|
+
"import/exports-last": "off";
|
|
35
|
+
"import/prefer-default-export": "off";
|
|
36
|
+
"import/consistent-type-specifier-style": "off";
|
|
37
|
+
"typescript/prefer-readonly-parameter-types": "off";
|
|
38
|
+
"typescript/no-meaningless-void-operator": "error";
|
|
39
|
+
"typescript/no-duplicate-enum-values": "error";
|
|
40
|
+
"typescript/prefer-optional-chain": "error";
|
|
41
|
+
"typescript/no-misused-new": "error";
|
|
42
|
+
"typescript/no-non-null-asserted-optional-chain": "error";
|
|
43
|
+
"promise/no-callback-in-promise": "error";
|
|
44
|
+
"promise/no-return-in-finally": "error";
|
|
45
|
+
"promise/no-multiple-resolved": "error";
|
|
46
|
+
"unicorn/consistent-function-scoping": "error";
|
|
47
|
+
"unicorn/filename-case": ["error", {
|
|
48
|
+
case: string;
|
|
49
|
+
multipleFileExtensions: boolean;
|
|
50
|
+
}];
|
|
51
|
+
"unicorn/no-array-for-each": "off";
|
|
52
|
+
"unicorn/no-null": "off";
|
|
53
|
+
"unicorn/error-message": "error";
|
|
54
|
+
"unicorn/catch-error-name": ["error", {
|
|
55
|
+
name: string;
|
|
56
|
+
}];
|
|
57
|
+
"unicorn/throw-new-error": "off";
|
|
58
|
+
"unicorn/prefer-node-protocol": "error";
|
|
59
|
+
"unicorn/prefer-module": "error";
|
|
60
|
+
"unicorn/numeric-separators-style": "error";
|
|
61
|
+
"unicorn/prefer-structured-clone": "error";
|
|
62
|
+
"unicorn/prefer-string-replace-all": "error";
|
|
63
|
+
"unicorn/no-thenable": "error";
|
|
64
|
+
"unicorn/no-useless-switch-case": "error";
|
|
65
|
+
"unicorn/no-useless-undefined": "error";
|
|
66
|
+
"unicorn/no-useless-spread": "error";
|
|
67
|
+
"unicorn/no-document-cookie": "error";
|
|
68
|
+
"unicorn/new-for-builtins": "error";
|
|
69
|
+
"unicorn/no-instanceof-builtins": "error";
|
|
70
|
+
"unicorn/no-invalid-remove-event-listener": "error";
|
|
71
|
+
"typescript/no-explicit-any": "error";
|
|
72
|
+
"typescript/no-non-null-assertion": "error";
|
|
73
|
+
"typescript/no-unsafe-assignment": "error";
|
|
74
|
+
"typescript/no-unsafe-call": "error";
|
|
75
|
+
"typescript/no-unsafe-member-access": "error";
|
|
76
|
+
"typescript/no-unsafe-return": "error";
|
|
77
|
+
"typescript/no-unsafe-argument": "error";
|
|
78
|
+
"typescript/no-unnecessary-type-assertion": "error";
|
|
79
|
+
"typescript/strict-boolean-expressions": "error";
|
|
80
|
+
"typescript/switch-exhaustiveness-check": "error";
|
|
81
|
+
"typescript/explicit-function-return-type": "error";
|
|
82
|
+
"typescript/explicit-module-boundary-types": "error";
|
|
83
|
+
"typescript/no-import-type-side-effects": "error";
|
|
84
|
+
"typescript/unbound-method": "error";
|
|
85
|
+
"typescript/no-misused-spread": "error";
|
|
86
|
+
"typescript/no-unnecessary-condition": "error";
|
|
87
|
+
"typescript/prefer-nullish-coalescing": "error";
|
|
88
|
+
"typescript/require-await": "error";
|
|
89
|
+
"typescript/no-unsafe-declaration-merging": "error";
|
|
90
|
+
"typescript/no-unnecessary-qualifier": "error";
|
|
91
|
+
"import/first": "error";
|
|
92
|
+
"import/no-absolute-path": "error";
|
|
93
|
+
"import/no-mutable-exports": "error";
|
|
94
|
+
"import/no-commonjs": "error";
|
|
95
|
+
"import/no-dynamic-require": "error";
|
|
96
|
+
"import/max-dependencies": ["error", {
|
|
97
|
+
max: number;
|
|
98
|
+
}];
|
|
99
|
+
"promise/no-nesting": "error";
|
|
100
|
+
"promise/no-new-statics": "error";
|
|
101
|
+
"promise/param-names": "error";
|
|
102
|
+
"promise/valid-params": "error";
|
|
103
|
+
"promise/catch-or-return": "error";
|
|
104
|
+
"promise/always-return": "off";
|
|
105
|
+
"typescript/no-floating-promises": "error";
|
|
106
|
+
"typescript/promise-function-async": "off";
|
|
107
|
+
"typescript/return-await": "off";
|
|
108
|
+
"promise/prefer-await-to-then": "off";
|
|
109
|
+
"typescript/consistent-type-imports": "error";
|
|
110
|
+
"typescript/no-misused-promises": "error";
|
|
111
|
+
"typescript/use-unknown-in-catch-callback-variable": "error";
|
|
112
|
+
"typescript/no-unsafe-type-assertion": "error";
|
|
113
|
+
"typescript/no-redundant-type-constituents": "error";
|
|
114
|
+
"typescript/no-deprecated": "error";
|
|
115
|
+
"typescript/restrict-plus-operands": "error";
|
|
116
|
+
"typescript/no-confusing-void-expression": ["error", {
|
|
117
|
+
ignoreArrowShorthand: true;
|
|
118
|
+
}];
|
|
119
|
+
"typescript/no-confusing-non-null-assertion": "error";
|
|
120
|
+
"typescript/no-unnecessary-boolean-literal-compare": "off";
|
|
121
|
+
"typescript/no-unnecessary-type-arguments": "error";
|
|
122
|
+
"typescript/no-unnecessary-type-constraint": "error";
|
|
123
|
+
"typescript/prefer-for-of": "error";
|
|
124
|
+
"typescript/prefer-includes": "error";
|
|
125
|
+
"typescript/consistent-type-assertions": ["error", {
|
|
126
|
+
assertionStyle: "as";
|
|
127
|
+
}];
|
|
128
|
+
"typescript/no-empty-object-type": "error";
|
|
129
|
+
"typescript/no-require-imports": "error";
|
|
130
|
+
"typescript/no-namespace": "error";
|
|
131
|
+
"typescript/array-type": ["error", {
|
|
132
|
+
default: "generic";
|
|
133
|
+
}];
|
|
134
|
+
"import/no-anonymous-default-export": "error";
|
|
135
|
+
"promise/no-return-wrap": "error";
|
|
136
|
+
"eslint/array-callback-return": "error";
|
|
137
|
+
"eslint/no-useless-return": "error";
|
|
138
|
+
"eslint/no-await-in-loop": "off";
|
|
139
|
+
"eslint/no-continue": "off";
|
|
140
|
+
"eslint/no-negated-condition": "off";
|
|
141
|
+
"eslint/no-param-reassign": "error";
|
|
142
|
+
"eslint/no-empty": "error";
|
|
143
|
+
"eslint/no-useless-catch": "error";
|
|
144
|
+
"eslint/no-empty-function": "error";
|
|
145
|
+
"eslint/no-ternary": "off";
|
|
146
|
+
"eslint/no-console": "error";
|
|
147
|
+
"eslint/no-shadow": ["error", {
|
|
148
|
+
hoist: "functions";
|
|
149
|
+
}];
|
|
150
|
+
"eslint/no-return-assign": "error";
|
|
151
|
+
"eslint/no-loop-func": "error";
|
|
152
|
+
"eslint/no-self-compare": "error";
|
|
153
|
+
"eslint/no-constructor-return": "error";
|
|
154
|
+
"eslint/no-alert": "error";
|
|
155
|
+
"eslint/no-new-func": "error";
|
|
156
|
+
"eslint/curly": ["error", "all"];
|
|
157
|
+
"eslint/no-else-return": "error";
|
|
158
|
+
"eslint/no-implicit-coercion": ["error", {
|
|
159
|
+
boolean: true;
|
|
160
|
+
number: true;
|
|
161
|
+
string: true;
|
|
162
|
+
}];
|
|
163
|
+
"eslint/no-multi-assign": "error";
|
|
164
|
+
"eslint/no-template-curly-in-string": "error";
|
|
165
|
+
"eslint/no-labels": "error";
|
|
166
|
+
"eslint/no-lone-blocks": "error";
|
|
167
|
+
"eslint/id-length": "off";
|
|
168
|
+
"eslint/max-statements": "off";
|
|
169
|
+
"eslint/new-cap": "off";
|
|
170
|
+
"eslint/prefer-object-has-own": "error";
|
|
171
|
+
"eslint/prefer-object-spread": "off";
|
|
172
|
+
"eslint/prefer-template": "error";
|
|
173
|
+
"eslint/max-params": "off";
|
|
174
|
+
"eslint/max-lines-per-function": ["error", {
|
|
175
|
+
max: number;
|
|
176
|
+
skipBlankLines: true;
|
|
177
|
+
skipComments: true;
|
|
178
|
+
}];
|
|
179
|
+
"eslint/max-classes-per-file": ["error", number];
|
|
180
|
+
"eslint/max-lines": ["error", {
|
|
181
|
+
max: number;
|
|
182
|
+
skipBlankLines: true;
|
|
183
|
+
skipComments: true;
|
|
184
|
+
}];
|
|
185
|
+
"eslint/complexity": "off";
|
|
186
|
+
"eslint/no-magic-numbers": "off";
|
|
187
|
+
"eslint/no-nested-ternary": "error";
|
|
188
|
+
"eslint/no-debugger": "error";
|
|
189
|
+
"eslint/no-eval": "error";
|
|
190
|
+
"eslint/no-implied-eval": "error";
|
|
191
|
+
"eslint/prefer-promise-reject-errors": "error";
|
|
192
|
+
"eslint/max-nested-callbacks": ["error", number];
|
|
193
|
+
"eslint/no-restricted-imports": ["error", {
|
|
194
|
+
paths: {
|
|
195
|
+
name: string;
|
|
196
|
+
message: string;
|
|
197
|
+
}[];
|
|
198
|
+
}];
|
|
199
|
+
"typescript/consistent-type-definitions": ["error", "type"];
|
|
200
|
+
"typescript/dot-notation": ["error", {
|
|
201
|
+
allowIndexSignaturePropertyAccess: true;
|
|
202
|
+
}];
|
|
203
|
+
"unicorn/no-static-only-class": "error";
|
|
204
|
+
"unicorn/no-useless-promise-resolve-reject": "error";
|
|
205
|
+
"oxc/no-optional-chaining": "off";
|
|
206
|
+
"oxc/no-rest-spread-properties": "off";
|
|
207
|
+
"oxc/no-map-spread": "off";
|
|
208
|
+
"node/no-process-env": "error";
|
|
209
|
+
"node/no-path-concat": "error";
|
|
210
|
+
"node/handle-callback-err": "error";
|
|
211
|
+
"vitest/no-conditional-tests": "error";
|
|
212
|
+
"vitest/no-import-node-test": "error";
|
|
213
|
+
"vitest/no-standalone-expect": "off";
|
|
214
|
+
"vitest/max-expects": "off";
|
|
215
|
+
"vitest/require-hook": "off";
|
|
216
|
+
"vitest/no-importing-vitest-globals": "off";
|
|
217
|
+
"vitest/expect-expect": "off";
|
|
218
|
+
"vitest/prefer-called-once": "error";
|
|
219
|
+
"vitest/consistent-test-filename": "error";
|
|
220
|
+
"vitest/prefer-called-times": "error";
|
|
221
|
+
"vitest/prefer-to-be-falsy": "error";
|
|
222
|
+
"vitest/prefer-to-be-truthy": "error";
|
|
223
|
+
"vitest/prefer-to-be-object": "error";
|
|
224
|
+
"jsdoc/check-tag-names": "error";
|
|
225
|
+
"jsdoc/check-property-names": "error";
|
|
226
|
+
"jsdoc/check-access": "error";
|
|
227
|
+
"jsdoc/empty-tags": "error";
|
|
228
|
+
"jsdoc/implements-on-classes": "error";
|
|
229
|
+
"jsdoc/require-property": "error";
|
|
230
|
+
"jsdoc/require-property-description": "error";
|
|
231
|
+
"jsdoc/require-property-name": "error";
|
|
232
|
+
"jsdoc/require-yields": "error";
|
|
233
|
+
"jsdoc/require-param": "off";
|
|
234
|
+
"jsdoc/require-param-type": "off";
|
|
235
|
+
"jsdoc/require-returns": "off";
|
|
236
|
+
"jsdoc/require-returns-type": "off";
|
|
237
|
+
"eslint/prefer-const": "error";
|
|
238
|
+
"unicorn/no-array-reduce": "error";
|
|
239
|
+
"typescript/only-throw-error": "error";
|
|
240
|
+
"unicorn/no-array-method-this-argument": "off";
|
|
241
|
+
"eslint/no-redeclare": "off";
|
|
242
|
+
"promise/prefer-await-to-callbacks": "off";
|
|
243
|
+
"unicorn/max-nested-calls": "off";
|
|
244
|
+
"eslint/one-var": "off";
|
|
245
|
+
"typescript/consistent-indexed-object-style": "off";
|
|
246
|
+
};
|
package/dist/rules.mjs
ADDED
|
@@ -0,0 +1,234 @@
|
|
|
1
|
+
const staticRules = {
|
|
2
|
+
"oxc/no-async-await": "off",
|
|
3
|
+
"oxc/no-accumulating-spread": "error",
|
|
4
|
+
"eslint/eqeqeq": ["error", "always"],
|
|
5
|
+
"eslint/no-unused-expressions": "error",
|
|
6
|
+
"eslint/no-sequences": "error",
|
|
7
|
+
"eslint/no-unreachable": "error",
|
|
8
|
+
"eslint/no-constant-condition": "error",
|
|
9
|
+
"eslint/func-names": "off",
|
|
10
|
+
"eslint/no-undefined": "off",
|
|
11
|
+
"eslint/sort-imports": "off",
|
|
12
|
+
"eslint/sort-keys": "off",
|
|
13
|
+
"eslint/no-extend-native": "error",
|
|
14
|
+
"eslint/no-global-assign": "error",
|
|
15
|
+
"eslint/no-implicit-globals": "error",
|
|
16
|
+
"eslint/use-isnan": "error",
|
|
17
|
+
"eslint/no-compare-neg-zero": "error",
|
|
18
|
+
"eslint/no-case-declarations": "error",
|
|
19
|
+
"eslint/no-fallthrough": "error",
|
|
20
|
+
"eslint/default-case": "error",
|
|
21
|
+
"eslint/no-unsafe-finally": "error",
|
|
22
|
+
"eslint/no-void": "error",
|
|
23
|
+
"eslint/no-script-url": "error",
|
|
24
|
+
"eslint/no-prototype-builtins": "error",
|
|
25
|
+
"unicorn/no-object-as-default-parameter": "error",
|
|
26
|
+
"unicorn/no-useless-fallback-in-spread": "error",
|
|
27
|
+
"import/no-cycle": "error",
|
|
28
|
+
"import/no-self-import": "error",
|
|
29
|
+
"import/no-duplicates": "error",
|
|
30
|
+
"import/group-exports": "off",
|
|
31
|
+
"import/no-default-export": "off",
|
|
32
|
+
"import/no-named-export": "off",
|
|
33
|
+
"import/no-relative-parent-imports": "off",
|
|
34
|
+
"import/exports-last": "off",
|
|
35
|
+
"import/prefer-default-export": "off",
|
|
36
|
+
"import/consistent-type-specifier-style": "off",
|
|
37
|
+
"typescript/prefer-readonly-parameter-types": "off",
|
|
38
|
+
"typescript/no-meaningless-void-operator": "error",
|
|
39
|
+
"typescript/no-duplicate-enum-values": "error",
|
|
40
|
+
"typescript/prefer-optional-chain": "error",
|
|
41
|
+
"typescript/no-misused-new": "error",
|
|
42
|
+
"typescript/no-non-null-asserted-optional-chain": "error",
|
|
43
|
+
"promise/no-callback-in-promise": "error",
|
|
44
|
+
"promise/no-return-in-finally": "error",
|
|
45
|
+
"promise/no-multiple-resolved": "error",
|
|
46
|
+
"unicorn/consistent-function-scoping": "error",
|
|
47
|
+
"unicorn/filename-case": ["error", {
|
|
48
|
+
case: "kebabCase",
|
|
49
|
+
multipleFileExtensions: true
|
|
50
|
+
}],
|
|
51
|
+
"unicorn/no-array-for-each": "off",
|
|
52
|
+
"unicorn/no-null": "off",
|
|
53
|
+
"unicorn/error-message": "error",
|
|
54
|
+
"unicorn/catch-error-name": ["error", { name: "error" }],
|
|
55
|
+
"unicorn/throw-new-error": "off",
|
|
56
|
+
"unicorn/prefer-node-protocol": "error",
|
|
57
|
+
"unicorn/prefer-module": "error",
|
|
58
|
+
"unicorn/numeric-separators-style": "error",
|
|
59
|
+
"unicorn/prefer-structured-clone": "error",
|
|
60
|
+
"unicorn/prefer-string-replace-all": "error",
|
|
61
|
+
"unicorn/no-thenable": "error",
|
|
62
|
+
"unicorn/no-useless-switch-case": "error",
|
|
63
|
+
"unicorn/no-useless-undefined": "error",
|
|
64
|
+
"unicorn/no-useless-spread": "error",
|
|
65
|
+
"unicorn/no-document-cookie": "error",
|
|
66
|
+
"unicorn/new-for-builtins": "error",
|
|
67
|
+
"unicorn/no-instanceof-builtins": "error",
|
|
68
|
+
"unicorn/no-invalid-remove-event-listener": "error",
|
|
69
|
+
"typescript/no-explicit-any": "error",
|
|
70
|
+
"typescript/no-non-null-assertion": "error",
|
|
71
|
+
"typescript/no-unsafe-assignment": "error",
|
|
72
|
+
"typescript/no-unsafe-call": "error",
|
|
73
|
+
"typescript/no-unsafe-member-access": "error",
|
|
74
|
+
"typescript/no-unsafe-return": "error",
|
|
75
|
+
"typescript/no-unsafe-argument": "error",
|
|
76
|
+
"typescript/no-unnecessary-type-assertion": "error",
|
|
77
|
+
"typescript/strict-boolean-expressions": "error",
|
|
78
|
+
"typescript/switch-exhaustiveness-check": "error",
|
|
79
|
+
"typescript/explicit-function-return-type": "error",
|
|
80
|
+
"typescript/explicit-module-boundary-types": "error",
|
|
81
|
+
"typescript/no-import-type-side-effects": "error",
|
|
82
|
+
"typescript/unbound-method": "error",
|
|
83
|
+
"typescript/no-misused-spread": "error",
|
|
84
|
+
"typescript/no-unnecessary-condition": "error",
|
|
85
|
+
"typescript/prefer-nullish-coalescing": "error",
|
|
86
|
+
"typescript/require-await": "error",
|
|
87
|
+
"typescript/no-unsafe-declaration-merging": "error",
|
|
88
|
+
"typescript/no-unnecessary-qualifier": "error",
|
|
89
|
+
"import/first": "error",
|
|
90
|
+
"import/no-absolute-path": "error",
|
|
91
|
+
"import/no-mutable-exports": "error",
|
|
92
|
+
"import/no-commonjs": "error",
|
|
93
|
+
"import/no-dynamic-require": "error",
|
|
94
|
+
"import/max-dependencies": ["error", { max: 35 }],
|
|
95
|
+
"promise/no-nesting": "error",
|
|
96
|
+
"promise/no-new-statics": "error",
|
|
97
|
+
"promise/param-names": "error",
|
|
98
|
+
"promise/valid-params": "error",
|
|
99
|
+
"promise/catch-or-return": "error",
|
|
100
|
+
"promise/always-return": "off",
|
|
101
|
+
"typescript/no-floating-promises": "error",
|
|
102
|
+
"typescript/promise-function-async": "off",
|
|
103
|
+
"typescript/return-await": "off",
|
|
104
|
+
"promise/prefer-await-to-then": "off",
|
|
105
|
+
"typescript/consistent-type-imports": "error",
|
|
106
|
+
"typescript/no-misused-promises": "error",
|
|
107
|
+
"typescript/use-unknown-in-catch-callback-variable": "error",
|
|
108
|
+
"typescript/no-unsafe-type-assertion": "error",
|
|
109
|
+
"typescript/no-redundant-type-constituents": "error",
|
|
110
|
+
"typescript/no-deprecated": "error",
|
|
111
|
+
"typescript/restrict-plus-operands": "error",
|
|
112
|
+
"typescript/no-confusing-void-expression": ["error", { ignoreArrowShorthand: true }],
|
|
113
|
+
"typescript/no-confusing-non-null-assertion": "error",
|
|
114
|
+
"typescript/no-unnecessary-boolean-literal-compare": "off",
|
|
115
|
+
"typescript/no-unnecessary-type-arguments": "error",
|
|
116
|
+
"typescript/no-unnecessary-type-constraint": "error",
|
|
117
|
+
"typescript/prefer-for-of": "error",
|
|
118
|
+
"typescript/prefer-includes": "error",
|
|
119
|
+
"typescript/consistent-type-assertions": ["error", { assertionStyle: "as" }],
|
|
120
|
+
"typescript/no-empty-object-type": "error",
|
|
121
|
+
"typescript/no-require-imports": "error",
|
|
122
|
+
"typescript/no-namespace": "error",
|
|
123
|
+
"typescript/array-type": ["error", { default: "generic" }],
|
|
124
|
+
"import/no-anonymous-default-export": "error",
|
|
125
|
+
"promise/no-return-wrap": "error",
|
|
126
|
+
"eslint/array-callback-return": "error",
|
|
127
|
+
"eslint/no-useless-return": "error",
|
|
128
|
+
"eslint/no-await-in-loop": "off",
|
|
129
|
+
"eslint/no-continue": "off",
|
|
130
|
+
"eslint/no-negated-condition": "off",
|
|
131
|
+
"eslint/no-param-reassign": "error",
|
|
132
|
+
"eslint/no-empty": "error",
|
|
133
|
+
"eslint/no-useless-catch": "error",
|
|
134
|
+
"eslint/no-empty-function": "error",
|
|
135
|
+
"eslint/no-ternary": "off",
|
|
136
|
+
"eslint/no-console": "error",
|
|
137
|
+
"eslint/no-shadow": ["error", { hoist: "functions" }],
|
|
138
|
+
"eslint/no-return-assign": "error",
|
|
139
|
+
"eslint/no-loop-func": "error",
|
|
140
|
+
"eslint/no-self-compare": "error",
|
|
141
|
+
"eslint/no-constructor-return": "error",
|
|
142
|
+
"eslint/no-alert": "error",
|
|
143
|
+
"eslint/no-new-func": "error",
|
|
144
|
+
"eslint/curly": ["error", "all"],
|
|
145
|
+
"eslint/no-else-return": "error",
|
|
146
|
+
"eslint/no-implicit-coercion": ["error", {
|
|
147
|
+
boolean: true,
|
|
148
|
+
number: true,
|
|
149
|
+
string: true
|
|
150
|
+
}],
|
|
151
|
+
"eslint/no-multi-assign": "error",
|
|
152
|
+
"eslint/no-template-curly-in-string": "error",
|
|
153
|
+
"eslint/no-labels": "error",
|
|
154
|
+
"eslint/no-lone-blocks": "error",
|
|
155
|
+
"eslint/id-length": "off",
|
|
156
|
+
"eslint/max-statements": "off",
|
|
157
|
+
"eslint/new-cap": "off",
|
|
158
|
+
"eslint/prefer-object-has-own": "error",
|
|
159
|
+
"eslint/prefer-object-spread": "off",
|
|
160
|
+
"eslint/prefer-template": "error",
|
|
161
|
+
"eslint/max-params": "off",
|
|
162
|
+
"eslint/max-lines-per-function": ["error", {
|
|
163
|
+
max: 60,
|
|
164
|
+
skipBlankLines: true,
|
|
165
|
+
skipComments: true
|
|
166
|
+
}],
|
|
167
|
+
"eslint/max-classes-per-file": ["error", 1],
|
|
168
|
+
"eslint/max-lines": ["error", {
|
|
169
|
+
max: 1500,
|
|
170
|
+
skipBlankLines: true,
|
|
171
|
+
skipComments: true
|
|
172
|
+
}],
|
|
173
|
+
"eslint/complexity": "off",
|
|
174
|
+
"eslint/no-magic-numbers": "off",
|
|
175
|
+
"eslint/no-nested-ternary": "error",
|
|
176
|
+
"eslint/no-debugger": "error",
|
|
177
|
+
"eslint/no-eval": "error",
|
|
178
|
+
"eslint/no-implied-eval": "error",
|
|
179
|
+
"eslint/prefer-promise-reject-errors": "error",
|
|
180
|
+
"eslint/max-nested-callbacks": ["error", 4],
|
|
181
|
+
"eslint/no-restricted-imports": ["error", { paths: [{
|
|
182
|
+
name: "vitest",
|
|
183
|
+
message: "Import test utilities from '@effect/vitest' instead of raw 'vitest'."
|
|
184
|
+
}, {
|
|
185
|
+
name: "vite-plus/test",
|
|
186
|
+
message: "Import test utilities from '@effect/vitest' instead of 'vite-plus/test'."
|
|
187
|
+
}] }],
|
|
188
|
+
"typescript/consistent-type-definitions": ["error", "type"],
|
|
189
|
+
"typescript/dot-notation": ["error", { allowIndexSignaturePropertyAccess: true }],
|
|
190
|
+
"unicorn/no-static-only-class": "error",
|
|
191
|
+
"unicorn/no-useless-promise-resolve-reject": "error",
|
|
192
|
+
"oxc/no-optional-chaining": "off",
|
|
193
|
+
"oxc/no-rest-spread-properties": "off",
|
|
194
|
+
"oxc/no-map-spread": "off",
|
|
195
|
+
"node/no-process-env": "error",
|
|
196
|
+
"node/no-path-concat": "error",
|
|
197
|
+
"node/handle-callback-err": "error",
|
|
198
|
+
"vitest/no-conditional-tests": "error",
|
|
199
|
+
"vitest/no-import-node-test": "error",
|
|
200
|
+
"vitest/no-standalone-expect": "off",
|
|
201
|
+
"vitest/max-expects": "off",
|
|
202
|
+
"vitest/require-hook": "off",
|
|
203
|
+
"vitest/no-importing-vitest-globals": "off",
|
|
204
|
+
"vitest/expect-expect": "off",
|
|
205
|
+
"vitest/prefer-called-once": "error",
|
|
206
|
+
"vitest/consistent-test-filename": "error",
|
|
207
|
+
"vitest/prefer-called-times": "error",
|
|
208
|
+
"vitest/prefer-to-be-falsy": "error",
|
|
209
|
+
"vitest/prefer-to-be-truthy": "error",
|
|
210
|
+
"vitest/prefer-to-be-object": "error",
|
|
211
|
+
"jsdoc/check-tag-names": "error",
|
|
212
|
+
"jsdoc/check-property-names": "error",
|
|
213
|
+
"jsdoc/check-access": "error",
|
|
214
|
+
"jsdoc/empty-tags": "error",
|
|
215
|
+
"jsdoc/implements-on-classes": "error",
|
|
216
|
+
"jsdoc/require-property": "error",
|
|
217
|
+
"jsdoc/require-property-description": "error",
|
|
218
|
+
"jsdoc/require-property-name": "error",
|
|
219
|
+
"jsdoc/require-yields": "error",
|
|
220
|
+
"jsdoc/require-param": "off",
|
|
221
|
+
"jsdoc/require-param-type": "off",
|
|
222
|
+
"jsdoc/require-returns": "off",
|
|
223
|
+
"jsdoc/require-returns-type": "off",
|
|
224
|
+
"eslint/prefer-const": "error",
|
|
225
|
+
"unicorn/no-array-reduce": "error",
|
|
226
|
+
"typescript/only-throw-error": "error",
|
|
227
|
+
"unicorn/no-array-method-this-argument": "off",
|
|
228
|
+
"eslint/no-redeclare": "off",
|
|
229
|
+
"promise/prefer-await-to-callbacks": "off",
|
|
230
|
+
"unicorn/max-nested-calls": "off",
|
|
231
|
+
"eslint/one-var": "off",
|
|
232
|
+
"typescript/consistent-indexed-object-style": "off"
|
|
233
|
+
};
|
|
234
|
+
export { staticRules };
|
|
@@ -0,0 +1,46 @@
|
|
|
1
|
+
import * as Option from "effect/Option";
|
|
2
|
+
export type Family = {
|
|
3
|
+
readonly name: string;
|
|
4
|
+
readonly version: string;
|
|
5
|
+
readonly packages: ReadonlyArray<string>;
|
|
6
|
+
readonly scopes: ReadonlyArray<string>;
|
|
7
|
+
};
|
|
8
|
+
export type Fixed = {
|
|
9
|
+
readonly name: string;
|
|
10
|
+
readonly version: string;
|
|
11
|
+
readonly by: string;
|
|
12
|
+
};
|
|
13
|
+
export declare const nodeVersion = "26.13.0";
|
|
14
|
+
export declare const families: ReadonlyArray<Family>;
|
|
15
|
+
export declare const fixed: ReadonlyArray<Fixed>;
|
|
16
|
+
export type Catalog = {
|
|
17
|
+
readonly families: ReadonlyArray<Family>;
|
|
18
|
+
readonly fixed: ReadonlyArray<Fixed>;
|
|
19
|
+
};
|
|
20
|
+
export declare const catalog: Catalog;
|
|
21
|
+
export declare const lead: (family: Family) => string;
|
|
22
|
+
export declare const familyOf: {
|
|
23
|
+
(current?: Catalog): (name: string) => Option.Option<Family>;
|
|
24
|
+
(name: string, current?: Catalog): Option.Option<Family>;
|
|
25
|
+
};
|
|
26
|
+
type NamedLookup<A> = {
|
|
27
|
+
(current?: Catalog): (name: string) => Option.Option<A>;
|
|
28
|
+
(name: string, current?: Catalog): Option.Option<A>;
|
|
29
|
+
};
|
|
30
|
+
export declare const fixedOf: NamedLookup<Fixed>;
|
|
31
|
+
export declare const familyNamed: NamedLookup<Family>;
|
|
32
|
+
export declare const fixedBy: {
|
|
33
|
+
(current?: Catalog): (family: string) => ReadonlyArray<Fixed>;
|
|
34
|
+
(family: string, current?: Catalog): ReadonlyArray<Fixed>;
|
|
35
|
+
};
|
|
36
|
+
export declare const ownerOf: {
|
|
37
|
+
(current?: Catalog): (name: string) => Option.Option<Family>;
|
|
38
|
+
(name: string, current?: Catalog): Option.Option<Family>;
|
|
39
|
+
};
|
|
40
|
+
export declare const versionOf: {
|
|
41
|
+
(current?: Catalog): (name: string) => Option.Option<string>;
|
|
42
|
+
(name: string, current?: Catalog): Option.Option<string>;
|
|
43
|
+
};
|
|
44
|
+
export declare const pinned: (current: Catalog) => Readonly<Record<string, string>>;
|
|
45
|
+
export declare const versions: Readonly<Record<string, string>>;
|
|
46
|
+
export {};
|
|
@@ -0,0 +1,148 @@
|
|
|
1
|
+
import * as Arr from "effect/Array";
|
|
2
|
+
import { dual } from "effect/Function";
|
|
3
|
+
import * as Option from "effect/Option";
|
|
4
|
+
import * as R from "effect/Record";
|
|
5
|
+
import * as Schema from "effect/Schema";
|
|
6
|
+
import * as Str from "effect/String";
|
|
7
|
+
// src/versions.ts
|
|
8
|
+
const nodeVersion = "26.13.0";
|
|
9
|
+
const families = [
|
|
10
|
+
{
|
|
11
|
+
name: "vite-plus",
|
|
12
|
+
version: "1.5.0",
|
|
13
|
+
packages: ["vite-plus"],
|
|
14
|
+
scopes: []
|
|
15
|
+
},
|
|
16
|
+
{
|
|
17
|
+
name: "alchemy",
|
|
18
|
+
version: "2.0.0-beta.85",
|
|
19
|
+
packages: [
|
|
20
|
+
"@alchemy.run/domain",
|
|
21
|
+
"alchemy",
|
|
22
|
+
"@alchemy.run/github",
|
|
23
|
+
"@alchemy.run/test"
|
|
24
|
+
],
|
|
25
|
+
scopes: ["@alchemy.run/"]
|
|
26
|
+
},
|
|
27
|
+
{
|
|
28
|
+
name: "foldkit",
|
|
29
|
+
version: "0.170.0",
|
|
30
|
+
packages: ["foldkit", "@foldkit/ui"],
|
|
31
|
+
scopes: []
|
|
32
|
+
},
|
|
33
|
+
{
|
|
34
|
+
name: "@foldkit/vite-plugin",
|
|
35
|
+
version: "0.29.0",
|
|
36
|
+
packages: ["@foldkit/vite-plugin"],
|
|
37
|
+
scopes: []
|
|
38
|
+
},
|
|
39
|
+
{
|
|
40
|
+
name: "@foldkit/devtools-mcp",
|
|
41
|
+
version: "0.26.0",
|
|
42
|
+
packages: ["@foldkit/devtools-mcp"],
|
|
43
|
+
scopes: []
|
|
44
|
+
},
|
|
45
|
+
{
|
|
46
|
+
name: "@foldkit/oxlint-plugin",
|
|
47
|
+
version: "0.15.4",
|
|
48
|
+
packages: ["@foldkit/oxlint-plugin"],
|
|
49
|
+
scopes: []
|
|
50
|
+
},
|
|
51
|
+
{
|
|
52
|
+
name: "effect",
|
|
53
|
+
version: "4.1.2",
|
|
54
|
+
packages: [
|
|
55
|
+
"effect",
|
|
56
|
+
"@effect/platform-browser",
|
|
57
|
+
"@effect/platform-bun",
|
|
58
|
+
"@effect/platform-node",
|
|
59
|
+
"@effect/platform-node-shared",
|
|
60
|
+
"@effect/vitest"
|
|
61
|
+
],
|
|
62
|
+
scopes: ["@effect/"]
|
|
63
|
+
},
|
|
64
|
+
{
|
|
65
|
+
name: "@effect/tsgo",
|
|
66
|
+
version: "0.67.3",
|
|
67
|
+
packages: ["@effect/tsgo"],
|
|
68
|
+
scopes: []
|
|
69
|
+
},
|
|
70
|
+
{
|
|
71
|
+
name: "ultracite",
|
|
72
|
+
version: "8.1.1",
|
|
73
|
+
packages: ["ultracite"],
|
|
74
|
+
scopes: []
|
|
75
|
+
},
|
|
76
|
+
{
|
|
77
|
+
name: "@mpsuesser/oxlint-plugin-effect",
|
|
78
|
+
version: "0.6.0",
|
|
79
|
+
packages: ["@mpsuesser/oxlint-plugin-effect"],
|
|
80
|
+
scopes: []
|
|
81
|
+
},
|
|
82
|
+
{
|
|
83
|
+
name: "effect-oxlint",
|
|
84
|
+
version: "0.4.0",
|
|
85
|
+
packages: ["effect-oxlint"],
|
|
86
|
+
scopes: []
|
|
87
|
+
},
|
|
88
|
+
{
|
|
89
|
+
name: "@rikalabs/oxlint-standards",
|
|
90
|
+
version: "0.8.1",
|
|
91
|
+
packages: ["@rikalabs/oxlint-standards"],
|
|
92
|
+
scopes: []
|
|
93
|
+
},
|
|
94
|
+
{
|
|
95
|
+
name: "typescript",
|
|
96
|
+
version: "7.0.2",
|
|
97
|
+
packages: ["typescript"],
|
|
98
|
+
scopes: []
|
|
99
|
+
}
|
|
100
|
+
];
|
|
101
|
+
const fixed = [
|
|
102
|
+
{
|
|
103
|
+
name: "oxlint",
|
|
104
|
+
version: "1.91.0",
|
|
105
|
+
by: "vite-plus"
|
|
106
|
+
},
|
|
107
|
+
{
|
|
108
|
+
name: "@oxlint/plugins",
|
|
109
|
+
version: "1.91.0",
|
|
110
|
+
by: "vite-plus"
|
|
111
|
+
},
|
|
112
|
+
{
|
|
113
|
+
name: "oxlint-tsgolint",
|
|
114
|
+
version: "7.0.2005",
|
|
115
|
+
by: "vite-plus"
|
|
116
|
+
},
|
|
117
|
+
{
|
|
118
|
+
name: "oxfmt",
|
|
119
|
+
version: "0.76.0",
|
|
120
|
+
by: "vite-plus"
|
|
121
|
+
},
|
|
122
|
+
{
|
|
123
|
+
name: "vitest",
|
|
124
|
+
version: "5.1.0",
|
|
125
|
+
by: "vite-plus"
|
|
126
|
+
},
|
|
127
|
+
{
|
|
128
|
+
name: "vite",
|
|
129
|
+
version: "npm:@voidzero-dev/vite-plus-core@1.5.0",
|
|
130
|
+
by: "vite-plus"
|
|
131
|
+
}
|
|
132
|
+
];
|
|
133
|
+
const catalog = {
|
|
134
|
+
families,
|
|
135
|
+
fixed
|
|
136
|
+
};
|
|
137
|
+
const lead = (family) => family.packages[0] ?? family.name;
|
|
138
|
+
const inScope = (current, family, name) => Arr.some(family.scopes, (scope) => Str.startsWith(scope)(name)) && Arr.every(current.families, (other) => other === family || !other.packages.includes(name));
|
|
139
|
+
const familyOf = dual((args) => Schema.is(Schema.String)(args[0]), (name, current = catalog) => Option.orElse(Arr.findFirst(current.families, (family) => family.packages.includes(name)), () => Arr.findFirst(current.families, (family) => inScope(current, family, name))));
|
|
140
|
+
const lookupNamed = (entries) => dual((args) => Schema.is(Schema.String)(args[0]), (name, current = catalog) => Arr.findFirst(entries(current), (entry) => entry.name === name));
|
|
141
|
+
const fixedOf = lookupNamed((current) => current.fixed);
|
|
142
|
+
const familyNamed = lookupNamed((current) => current.families);
|
|
143
|
+
const fixedBy = dual((args) => Schema.is(Schema.String)(args[0]), (family, current = catalog) => Arr.filter(current.fixed, (entry) => entry.by === family));
|
|
144
|
+
const ownerOf = dual((args) => Schema.is(Schema.String)(args[0]), (name, current = catalog) => Option.orElse(familyOf(name, current), () => Option.flatMap(fixedOf(name, current), (entry) => familyNamed(entry.by, current))));
|
|
145
|
+
const versionOf = dual((args) => Schema.is(Schema.String)(args[0]), (name, current = catalog) => Option.orElse(Option.map(familyOf(name, current), (family) => family.version), () => Option.map(fixedOf(name, current), (entry) => entry.version)));
|
|
146
|
+
const pinned = (current) => R.fromEntries([...Arr.flatMap(current.families, (family) => Arr.map(family.packages, (name) => [name, family.version])), ...Arr.map(current.fixed, (entry) => [entry.name, entry.version])]);
|
|
147
|
+
const versions = pinned(catalog);
|
|
148
|
+
export { catalog, families, familyNamed, familyOf, fixed, fixedBy, fixedOf, lead, nodeVersion, ownerOf, pinned, versionOf, versions };
|