@pobammer-ts/small-rules 2.0.0 → 2.1.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/dist/index.d.ts +47 -4
- package/dist/index.js +1286 -385
- package/package.json +18 -16
package/dist/index.d.ts
CHANGED
|
@@ -212,8 +212,10 @@ declare const smallRules: import("oxlint-plugin-utilities").Plugin<{
|
|
|
212
212
|
};
|
|
213
213
|
readonly type: "object";
|
|
214
214
|
}]>;
|
|
215
|
+
"no-array-constructor-index-assignment": import("oxlint-plugin-utilities").CreateRule<readonly [], "preferArrayLiteral", readonly []>;
|
|
215
216
|
"no-array-size-assignment": import("oxlint-plugin-utilities").CreateRule<readonly [{
|
|
216
217
|
readonly allowAutofix?: boolean;
|
|
218
|
+
readonly environment?: "roblox-ts" | "standard";
|
|
217
219
|
}], "usePush", readonly [{
|
|
218
220
|
readonly additionalProperties: false;
|
|
219
221
|
readonly properties: {
|
|
@@ -221,6 +223,12 @@ declare const smallRules: import("oxlint-plugin-utilities").Plugin<{
|
|
|
221
223
|
readonly default: false;
|
|
222
224
|
readonly type: "boolean";
|
|
223
225
|
};
|
|
226
|
+
readonly environment: {
|
|
227
|
+
readonly enum: readonly ["roblox-ts", "standard"];
|
|
228
|
+
readonly type: string;
|
|
229
|
+
readonly default: "roblox-ts";
|
|
230
|
+
readonly description: "Array environment mode: 'roblox-ts' checks array[array.size()]; 'standard' checks array[array.length].";
|
|
231
|
+
};
|
|
224
232
|
};
|
|
225
233
|
readonly type: "object";
|
|
226
234
|
}]>;
|
|
@@ -238,7 +246,19 @@ declare const smallRules: import("oxlint-plugin-utilities").Plugin<{
|
|
|
238
246
|
};
|
|
239
247
|
readonly type: "object";
|
|
240
248
|
}]>;
|
|
241
|
-
"no-commented-code": import("oxlint-plugin-utilities").CreateRule<readonly [
|
|
249
|
+
"no-commented-code": import("oxlint-plugin-utilities").CreateRule<readonly [{
|
|
250
|
+
readonly maxLines?: number;
|
|
251
|
+
}], "commentedCode", readonly [{
|
|
252
|
+
readonly additionalProperties: false;
|
|
253
|
+
readonly properties: {
|
|
254
|
+
readonly maxLines: {
|
|
255
|
+
readonly default: 0;
|
|
256
|
+
readonly description: "Maximum number of lines of commented code allowed without reporting. Default 0 means any commented code triggers an error.";
|
|
257
|
+
readonly type: "number";
|
|
258
|
+
};
|
|
259
|
+
};
|
|
260
|
+
readonly type: "object";
|
|
261
|
+
}]>;
|
|
242
262
|
"no-constant-condition-with-break": import("oxlint-plugin-utilities").CreateRule<readonly [{
|
|
243
263
|
readonly loopExitCalls?: readonly string[];
|
|
244
264
|
}], "unexpected", readonly [{
|
|
@@ -419,6 +439,11 @@ declare const smallRules: import("oxlint-plugin-utilities").Plugin<{
|
|
|
419
439
|
readonly type: "object";
|
|
420
440
|
}]>;
|
|
421
441
|
"no-print": import("oxlint-plugin-utilities").CreateRule<readonly [], "noPrint", readonly []>;
|
|
442
|
+
"no-recursive": import("oxlint-plugin-utilities").CreateRule<readonly [{}], "noRecursive", readonly [{
|
|
443
|
+
readonly additionalProperties: false;
|
|
444
|
+
readonly properties: {};
|
|
445
|
+
readonly type: "object";
|
|
446
|
+
}]>;
|
|
422
447
|
"no-redundant-aspect-ratio-constraint": import("oxlint-plugin-utilities").CreateRule<readonly [], "redundantAspectRatioConstraint", readonly []>;
|
|
423
448
|
"no-render-helper-functions": import("oxlint-plugin-utilities").CreateRule<readonly [], "noRenderHelper", readonly []>;
|
|
424
449
|
"no-spec-file-extension": import("oxlint-plugin-utilities").CreateRule<readonly [], "noSpecFileExtension", readonly []>;
|
|
@@ -850,7 +875,20 @@ declare const smallRules: import("oxlint-plugin-utilities").Plugin<{
|
|
|
850
875
|
readonly type: "object";
|
|
851
876
|
}]>;
|
|
852
877
|
"react-hooks-strict-return": import("oxlint-plugin-utilities").CreateRule<readonly [], "tooManyReturnValues", readonly []>;
|
|
853
|
-
"require-async-suffix": import("oxlint-plugin-utilities").CreateRule<readonly [
|
|
878
|
+
"require-async-suffix": import("oxlint-plugin-utilities").CreateRule<readonly [{
|
|
879
|
+
readonly except?: readonly string[];
|
|
880
|
+
}], "missingAsyncSuffix", readonly [{
|
|
881
|
+
readonly additionalProperties: false;
|
|
882
|
+
readonly properties: {
|
|
883
|
+
readonly except: {
|
|
884
|
+
readonly items: {
|
|
885
|
+
readonly type: "string";
|
|
886
|
+
};
|
|
887
|
+
readonly type: "array";
|
|
888
|
+
};
|
|
889
|
+
};
|
|
890
|
+
readonly type: "object";
|
|
891
|
+
}]>;
|
|
854
892
|
"require-module-level-instantiation": import("oxlint-plugin-utilities").CreateRule<readonly [{
|
|
855
893
|
readonly classes?: {
|
|
856
894
|
readonly [x: string]: string;
|
|
@@ -1061,9 +1099,10 @@ declare const smallRules: import("oxlint-plugin-utilities").Plugin<{
|
|
|
1061
1099
|
}]>;
|
|
1062
1100
|
"require-throw-error-capture": import("oxlint-plugin-utilities").CreateRule<readonly [{
|
|
1063
1101
|
readonly allow?: readonly (string | {
|
|
1064
|
-
readonly from?: "file" | "
|
|
1102
|
+
readonly from?: "file" | "library" | "package";
|
|
1065
1103
|
readonly name: string | readonly string[];
|
|
1066
1104
|
readonly package?: string;
|
|
1105
|
+
readonly path?: string;
|
|
1067
1106
|
})[];
|
|
1068
1107
|
}], "missingCaptureStackTrace", readonly [{
|
|
1069
1108
|
readonly additionalProperties: false;
|
|
@@ -1078,7 +1117,7 @@ declare const smallRules: import("oxlint-plugin-utilities").Plugin<{
|
|
|
1078
1117
|
readonly properties: {
|
|
1079
1118
|
readonly from: {
|
|
1080
1119
|
readonly description: "Where the error class is declared";
|
|
1081
|
-
readonly enum: readonly ["file", "
|
|
1120
|
+
readonly enum: readonly ["file", "library", "package"];
|
|
1082
1121
|
readonly type: "string";
|
|
1083
1122
|
};
|
|
1084
1123
|
readonly name: {
|
|
@@ -1096,6 +1135,10 @@ declare const smallRules: import("oxlint-plugin-utilities").Plugin<{
|
|
|
1096
1135
|
readonly description: "Package the error class is imported from (required when from is 'package')";
|
|
1097
1136
|
readonly type: "string";
|
|
1098
1137
|
};
|
|
1138
|
+
readonly path: {
|
|
1139
|
+
readonly description: "Optional file path filter for file specifiers (matched against the end of the file path)";
|
|
1140
|
+
readonly type: "string";
|
|
1141
|
+
};
|
|
1099
1142
|
};
|
|
1100
1143
|
readonly required: readonly ["name"];
|
|
1101
1144
|
readonly type: "object";
|