@pobammer-ts/small-rules 2.8.0 → 2.10.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 +83 -0
- package/dist/index.js +10 -10
- package/package.json +4 -1
package/dist/index.d.ts
CHANGED
|
@@ -55,6 +55,41 @@ declare const smallRules: import("oxlint-plugin-utilities").Plugin<{
|
|
|
55
55
|
};
|
|
56
56
|
readonly type: "object";
|
|
57
57
|
}], "bannedType" | "bannedTypeWithReplacement", undefined>;
|
|
58
|
+
"consistent-compound-words": import("oxlint-plugin-utilities").CreateRule<readonly [{
|
|
59
|
+
readonly additionalProperties: false;
|
|
60
|
+
readonly properties: {
|
|
61
|
+
readonly allowList: {
|
|
62
|
+
readonly additionalProperties: {
|
|
63
|
+
readonly enum: readonly [true];
|
|
64
|
+
};
|
|
65
|
+
readonly type: "object";
|
|
66
|
+
};
|
|
67
|
+
readonly checkProperties: {
|
|
68
|
+
readonly type: "boolean";
|
|
69
|
+
};
|
|
70
|
+
readonly checkShorthandProperties: {
|
|
71
|
+
readonly type: "boolean";
|
|
72
|
+
};
|
|
73
|
+
readonly checkVariables: {
|
|
74
|
+
readonly type: "boolean";
|
|
75
|
+
};
|
|
76
|
+
readonly extendDefaultReplacements: {
|
|
77
|
+
readonly type: "boolean";
|
|
78
|
+
};
|
|
79
|
+
readonly replacements: {
|
|
80
|
+
readonly additionalProperties: {
|
|
81
|
+
readonly anyOf: readonly [{
|
|
82
|
+
readonly enum: readonly [false];
|
|
83
|
+
}, {
|
|
84
|
+
readonly minLength: 1;
|
|
85
|
+
readonly type: "string";
|
|
86
|
+
}];
|
|
87
|
+
};
|
|
88
|
+
readonly type: "object";
|
|
89
|
+
};
|
|
90
|
+
};
|
|
91
|
+
readonly type: "object";
|
|
92
|
+
}], "error" | "rename", undefined>;
|
|
58
93
|
"directive-disable-enable-pair": import("oxlint-plugin-utilities").CreateRule<readonly [{
|
|
59
94
|
readonly additionalProperties: false;
|
|
60
95
|
readonly properties: {
|
|
@@ -133,6 +168,48 @@ declare const smallRules: import("oxlint-plugin-utilities").Plugin<{
|
|
|
133
168
|
};
|
|
134
169
|
readonly type: "object";
|
|
135
170
|
}], "complexInterfaceNeedsCheck" | "missingIanitorCheckType", undefined>;
|
|
171
|
+
"isolated-functions": import("oxlint-plugin-utilities").CreateRule<readonly [{
|
|
172
|
+
readonly additionalProperties: false;
|
|
173
|
+
readonly properties: {
|
|
174
|
+
readonly comments: {
|
|
175
|
+
readonly description: "Comment patterns that mark a function as isolated.";
|
|
176
|
+
readonly items: {
|
|
177
|
+
readonly type: "string";
|
|
178
|
+
};
|
|
179
|
+
readonly type: "array";
|
|
180
|
+
readonly uniqueItems: true;
|
|
181
|
+
};
|
|
182
|
+
readonly functions: {
|
|
183
|
+
readonly description: "Function names that mark argument callbacks as isolated.";
|
|
184
|
+
readonly items: {
|
|
185
|
+
readonly type: "string";
|
|
186
|
+
};
|
|
187
|
+
readonly type: "array";
|
|
188
|
+
readonly uniqueItems: true;
|
|
189
|
+
};
|
|
190
|
+
readonly overrideGlobals: {
|
|
191
|
+
readonly additionalProperties: {
|
|
192
|
+
readonly anyOf: readonly [{
|
|
193
|
+
readonly type: "boolean";
|
|
194
|
+
}, {
|
|
195
|
+
readonly enum: readonly ["off", "readonly", "writable", "writeable"];
|
|
196
|
+
readonly type: "string";
|
|
197
|
+
}];
|
|
198
|
+
};
|
|
199
|
+
readonly description: "Override which global variables are allowed inside isolated scopes.";
|
|
200
|
+
readonly type: "object";
|
|
201
|
+
};
|
|
202
|
+
readonly selectors: {
|
|
203
|
+
readonly description: "AST selectors that mark matched function nodes as isolated.";
|
|
204
|
+
readonly items: {
|
|
205
|
+
readonly type: "string";
|
|
206
|
+
};
|
|
207
|
+
readonly type: "array";
|
|
208
|
+
readonly uniqueItems: true;
|
|
209
|
+
};
|
|
210
|
+
};
|
|
211
|
+
readonly type: "object";
|
|
212
|
+
}], "externallyScopedVariable" | "super" | "thisExpression", undefined>;
|
|
136
213
|
"memoized-effect-dependencies": import("oxlint-plugin-utilities").CreateRule<readonly [{
|
|
137
214
|
readonly additionalProperties: false;
|
|
138
215
|
readonly properties: {
|
|
@@ -319,6 +396,7 @@ declare const smallRules: import("oxlint-plugin-utilities").Plugin<{
|
|
|
319
396
|
};
|
|
320
397
|
readonly type: "object";
|
|
321
398
|
}], "unexpected", undefined>;
|
|
399
|
+
"no-dead-store": import("oxlint-plugin-utilities").CreateRule<readonly [], "deadStore", undefined>;
|
|
322
400
|
"no-error": import("oxlint-plugin-utilities").CreateRule<readonly [], "noError", readonly []>;
|
|
323
401
|
"no-events-in-events-callback": import("oxlint-plugin-utilities").CreateRule<readonly [{
|
|
324
402
|
readonly additionalProperties: false;
|
|
@@ -336,6 +414,7 @@ declare const smallRules: import("oxlint-plugin-utilities").Plugin<{
|
|
|
336
414
|
readonly type: "object";
|
|
337
415
|
}], "preferFunctions", undefined>;
|
|
338
416
|
"no-filter-map-chain": import("oxlint-plugin-utilities").CreateRule<readonly [], "avoidFilterMapChain", undefined>;
|
|
417
|
+
"no-floating-point-equality": import("oxlint-plugin-utilities").CreateRule<readonly [], "exactFloatComparison", undefined>;
|
|
339
418
|
"no-giant-component": import("oxlint-plugin-utilities").CreateRule<undefined, "giantComponent", undefined>;
|
|
340
419
|
"no-god-components": import("oxlint-plugin-utilities").CreateRule<readonly [{
|
|
341
420
|
readonly additionalProperties: false;
|
|
@@ -438,6 +517,7 @@ declare const smallRules: import("oxlint-plugin-utilities").Plugin<{
|
|
|
438
517
|
};
|
|
439
518
|
readonly type: "object";
|
|
440
519
|
}], "noInstanceMethodWithoutThis", undefined>;
|
|
520
|
+
"no-loop-iterable-mutation": import("oxlint-plugin-utilities").CreateRule<readonly [], "noLoopIterableMutation", undefined>;
|
|
441
521
|
"no-native-properties-spread": import("oxlint-plugin-utilities").CreateRule<readonly [], "noElementSpread" | "noNativePropertiesSpread", undefined>;
|
|
442
522
|
"no-new-instance-in-use-memo": import("oxlint-plugin-utilities").CreateRule<readonly [{
|
|
443
523
|
readonly additionalProperties: false;
|
|
@@ -528,6 +608,7 @@ declare const smallRules: import("oxlint-plugin-utilities").Plugin<{
|
|
|
528
608
|
}], "useJsx", undefined>;
|
|
529
609
|
"no-table-create-map": import("oxlint-plugin-utilities").CreateRule<readonly [], "avoidConstructThenMap", undefined>;
|
|
530
610
|
"no-task-wait": import("oxlint-plugin-utilities").CreateOnceRule<readonly [], "noPromiseDelayAwait" | "noTaskWait", undefined>;
|
|
611
|
+
"no-trivial-assertions": import("oxlint-plugin-utilities").CreateRule<readonly [], "freshIdentity" | "freshPredicate" | "issue", undefined>;
|
|
531
612
|
"no-underscore-react-props": import("oxlint-plugin-utilities").CreateOnceRule<readonly [], "noUnderscoreReactProperty", undefined>;
|
|
532
613
|
"no-unused-imports": import("oxlint-plugin-utilities").CreateRule<readonly [{
|
|
533
614
|
readonly additionalProperties: false;
|
|
@@ -553,6 +634,7 @@ declare const smallRules: import("oxlint-plugin-utilities").Plugin<{
|
|
|
553
634
|
readonly type: "object";
|
|
554
635
|
}], "unusedUseMemo", undefined>;
|
|
555
636
|
"no-use-memo-simple-expression": import("oxlint-plugin-utilities").CreateRule<undefined, "simpleMemo", undefined>;
|
|
637
|
+
"no-use-of-empty-return-value": import("oxlint-plugin-utilities").CreateRule<readonly [], "removeUseOfOutput", undefined>;
|
|
556
638
|
"no-useless-constants": import("oxlint-plugin-utilities").CreateRule<readonly [{
|
|
557
639
|
readonly additionalProperties: false;
|
|
558
640
|
readonly properties: {
|
|
@@ -740,6 +822,7 @@ declare const smallRules: import("oxlint-plugin-utilities").Plugin<{
|
|
|
740
822
|
};
|
|
741
823
|
readonly type: "object";
|
|
742
824
|
}], "uselessSpring", undefined>;
|
|
825
|
+
"no-variadic-spread": import("oxlint-plugin-utilities").CreateOnceRule<readonly [], "noVariadicSpread", undefined>;
|
|
743
826
|
"no-warn": import("oxlint-plugin-utilities").CreateRule<readonly [], "noWarn", readonly []>;
|
|
744
827
|
"only-type-imports": import("oxlint-plugin-utilities").CreateRule<readonly [], "onlyTypeImports", undefined>;
|
|
745
828
|
"prefer-class-properties": import("oxlint-plugin-utilities").CreateRule<readonly [{
|