@pobammer-ts/small-rules 1.1.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 +55 -19
- package/dist/index.js +1314 -428
- package/package.json +19 -17
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 []>;
|
|
@@ -680,13 +705,20 @@ declare const smallRules: import("oxlint-plugin-utilities").Plugin<{
|
|
|
680
705
|
readonly type: "object";
|
|
681
706
|
}]>;
|
|
682
707
|
"prefer-expect-assertions": import("oxlint-plugin-utilities").CreateRule<readonly [{
|
|
708
|
+
readonly additionalAssertionFunctions?: readonly string[];
|
|
683
709
|
readonly additionalExpectCallNames?: readonly string[];
|
|
684
710
|
readonly onlyFunctionsWithAsyncKeyword?: boolean;
|
|
685
711
|
readonly onlyFunctionsWithExpectInCallback?: boolean;
|
|
686
712
|
readonly onlyFunctionsWithExpectInLoop?: boolean;
|
|
687
|
-
}], "assertionsRequiresNumberArgument" | "assertionsRequiresOneArgument" | "hasAssertionsTakesNoArguments" | "haveExpectAssertions" | "suggestAddingAssertions" | "suggestAddingHasAssertions" | "wrongAssertionCount", readonly [{
|
|
713
|
+
}], "assertionsRequiresNumberArgument" | "assertionsRequiresOneArgument" | "hasAssertionsTakesNoArguments" | "haveExpectAssertions" | "preferAssertionsCount" | "suggestAddingAssertions" | "suggestAddingHasAssertions" | "wrongAssertionCount", readonly [{
|
|
688
714
|
readonly additionalProperties: false;
|
|
689
715
|
readonly properties: {
|
|
716
|
+
readonly additionalAssertionFunctions: {
|
|
717
|
+
readonly items: {
|
|
718
|
+
readonly type: "string";
|
|
719
|
+
};
|
|
720
|
+
readonly type: "array";
|
|
721
|
+
};
|
|
690
722
|
readonly additionalExpectCallNames: {
|
|
691
723
|
readonly items: {
|
|
692
724
|
readonly type: "string";
|
|
@@ -705,20 +737,6 @@ declare const smallRules: import("oxlint-plugin-utilities").Plugin<{
|
|
|
705
737
|
};
|
|
706
738
|
readonly type: "object";
|
|
707
739
|
}]>;
|
|
708
|
-
"prefer-expect-assertions-count": import("oxlint-plugin-utilities").CreateRule<readonly [{
|
|
709
|
-
readonly additionalAssertionFunctions?: readonly string[];
|
|
710
|
-
}], "preferAssertionsCount", readonly [{
|
|
711
|
-
readonly additionalProperties: false;
|
|
712
|
-
readonly properties: {
|
|
713
|
-
readonly additionalAssertionFunctions: {
|
|
714
|
-
readonly items: {
|
|
715
|
-
readonly type: "string";
|
|
716
|
-
};
|
|
717
|
-
readonly type: "array";
|
|
718
|
-
};
|
|
719
|
-
};
|
|
720
|
-
readonly type: "object";
|
|
721
|
-
}]>;
|
|
722
740
|
"prefer-hoisted-jsx-elements": import("oxlint-plugin-utilities").CreateRule<readonly [{
|
|
723
741
|
readonly additionalHoistableComponents?: readonly string[];
|
|
724
742
|
readonly additionalStaticFactories?: readonly string[];
|
|
@@ -857,7 +875,20 @@ declare const smallRules: import("oxlint-plugin-utilities").Plugin<{
|
|
|
857
875
|
readonly type: "object";
|
|
858
876
|
}]>;
|
|
859
877
|
"react-hooks-strict-return": import("oxlint-plugin-utilities").CreateRule<readonly [], "tooManyReturnValues", readonly []>;
|
|
860
|
-
"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
|
+
}]>;
|
|
861
892
|
"require-module-level-instantiation": import("oxlint-plugin-utilities").CreateRule<readonly [{
|
|
862
893
|
readonly classes?: {
|
|
863
894
|
readonly [x: string]: string;
|
|
@@ -1068,9 +1099,10 @@ declare const smallRules: import("oxlint-plugin-utilities").Plugin<{
|
|
|
1068
1099
|
}]>;
|
|
1069
1100
|
"require-throw-error-capture": import("oxlint-plugin-utilities").CreateRule<readonly [{
|
|
1070
1101
|
readonly allow?: readonly (string | {
|
|
1071
|
-
readonly from?: "file" | "
|
|
1102
|
+
readonly from?: "file" | "library" | "package";
|
|
1072
1103
|
readonly name: string | readonly string[];
|
|
1073
1104
|
readonly package?: string;
|
|
1105
|
+
readonly path?: string;
|
|
1074
1106
|
})[];
|
|
1075
1107
|
}], "missingCaptureStackTrace", readonly [{
|
|
1076
1108
|
readonly additionalProperties: false;
|
|
@@ -1085,7 +1117,7 @@ declare const smallRules: import("oxlint-plugin-utilities").Plugin<{
|
|
|
1085
1117
|
readonly properties: {
|
|
1086
1118
|
readonly from: {
|
|
1087
1119
|
readonly description: "Where the error class is declared";
|
|
1088
|
-
readonly enum: readonly ["file", "
|
|
1120
|
+
readonly enum: readonly ["file", "library", "package"];
|
|
1089
1121
|
readonly type: "string";
|
|
1090
1122
|
};
|
|
1091
1123
|
readonly name: {
|
|
@@ -1103,6 +1135,10 @@ declare const smallRules: import("oxlint-plugin-utilities").Plugin<{
|
|
|
1103
1135
|
readonly description: "Package the error class is imported from (required when from is 'package')";
|
|
1104
1136
|
readonly type: "string";
|
|
1105
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
|
+
};
|
|
1106
1142
|
};
|
|
1107
1143
|
readonly required: readonly ["name"];
|
|
1108
1144
|
readonly type: "object";
|