oxlint-plugin-react-doctor 0.9.3-dev.19f2148 → 0.9.3-dev.44922d6
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/{capability-Cwl9JKjU.js → capability-CF1M-Tj7.js} +6 -6
- package/dist/core-NYcNjo1f.d.ts +1371 -0
- package/dist/core.d.ts +2 -1045
- package/dist/core.js +2 -2
- package/dist/index.d.ts +193 -1
- package/dist/index.js +14 -14
- package/package.json +1 -1
- package/dist/react-native-dependency-names-DrsRME-d.d.ts +0 -330
package/dist/index.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { A as ScanFinding, C as RuleFramework, D as RuleContext, E as BaseRuleContext, F as FrameworkToken, M as Capability, N as CapabilityQuery, O as EsTreeNode, P as FRAMEWORK_TOKENS, S as Rule, T as RuleVisitors, _ as MOTION_LIBRARY_PACKAGES, a as REACT_NATIVE_DEPENDENCY_NAMES, b as OxlintRuleSeverity, c as classifySecurityScanFile, f as CROSS_FILE_DEPENDENCY_COLLECTORS, g as CROSS_FILE_RULE_IDS, h as CrossFileProbeTrace, j as ScannedFile, k as FileScan, l as shouldReadSecurityScanContent, m as collectCrossFileDependencyProbes, o as REACT_NATIVE_DEPENDENCY_PREFIXES, p as UNBOUNDED_CROSS_FILE_RULE_IDS, s as isReactNativeDependencyName, u as resetFilesystemCaches, v as EXTERNAL_RULES, w as RuleSeverity, y as REACT_COMPILER_RULES } from "./core-NYcNjo1f.js";
|
|
2
2
|
|
|
3
3
|
//#region src/plugin/utils/rule-plugin.d.ts
|
|
4
4
|
interface HostRule extends Omit<Rule, "create"> {
|
|
@@ -207,6 +207,30 @@ declare const REACT_DOCTOR_RULES: readonly [{
|
|
|
207
207
|
readonly recommendationFor?: (hasCapability: CapabilityQuery) => string | undefined;
|
|
208
208
|
readonly create: (context: RuleContext) => RuleVisitors;
|
|
209
209
|
};
|
|
210
|
+
}, {
|
|
211
|
+
readonly key: "react-doctor/anchor-target-exists";
|
|
212
|
+
readonly id: "anchor-target-exists";
|
|
213
|
+
readonly source: "react-doctor";
|
|
214
|
+
readonly originallyExternal: false;
|
|
215
|
+
readonly rule: {
|
|
216
|
+
readonly framework: "global";
|
|
217
|
+
readonly category: "Accessibility";
|
|
218
|
+
readonly requires: readonly Capability[];
|
|
219
|
+
readonly id: string;
|
|
220
|
+
readonly title?: string;
|
|
221
|
+
readonly severity: RuleSeverity;
|
|
222
|
+
readonly minimumInkVersion?: string;
|
|
223
|
+
readonly disabledWhen?: ReadonlyArray<Capability>;
|
|
224
|
+
readonly tags?: ReadonlyArray<string>;
|
|
225
|
+
readonly matchByOccurrence?: boolean;
|
|
226
|
+
readonly defaultEnabled?: boolean;
|
|
227
|
+
readonly lifecycle?: "retired";
|
|
228
|
+
readonly scan?: FileScan;
|
|
229
|
+
readonly committedFilesOnly?: boolean;
|
|
230
|
+
readonly recommendation?: string;
|
|
231
|
+
readonly recommendationFor?: (hasCapability: CapabilityQuery) => string | undefined;
|
|
232
|
+
readonly create: (context: RuleContext) => RuleVisitors;
|
|
233
|
+
};
|
|
210
234
|
}, {
|
|
211
235
|
readonly key: "react-doctor/aria-activedescendant-has-tabindex";
|
|
212
236
|
readonly id: "aria-activedescendant-has-tabindex";
|
|
@@ -11151,6 +11175,30 @@ declare const REACT_DOCTOR_RULES: readonly [{
|
|
|
11151
11175
|
readonly recommendationFor?: (hasCapability: CapabilityQuery) => string | undefined;
|
|
11152
11176
|
readonly create: (context: RuleContext) => RuleVisitors;
|
|
11153
11177
|
};
|
|
11178
|
+
}, {
|
|
11179
|
+
readonly key: "react-doctor/no-unowned-async-error-clear";
|
|
11180
|
+
readonly id: "no-unowned-async-error-clear";
|
|
11181
|
+
readonly source: "react-doctor";
|
|
11182
|
+
readonly originallyExternal: false;
|
|
11183
|
+
readonly rule: {
|
|
11184
|
+
readonly framework: "global";
|
|
11185
|
+
readonly category: "Bugs";
|
|
11186
|
+
readonly requires: readonly Capability[];
|
|
11187
|
+
readonly id: string;
|
|
11188
|
+
readonly title?: string;
|
|
11189
|
+
readonly severity: RuleSeverity;
|
|
11190
|
+
readonly minimumInkVersion?: string;
|
|
11191
|
+
readonly disabledWhen?: ReadonlyArray<Capability>;
|
|
11192
|
+
readonly tags?: ReadonlyArray<string>;
|
|
11193
|
+
readonly matchByOccurrence?: boolean;
|
|
11194
|
+
readonly defaultEnabled?: boolean;
|
|
11195
|
+
readonly lifecycle?: "retired";
|
|
11196
|
+
readonly scan?: FileScan;
|
|
11197
|
+
readonly committedFilesOnly?: boolean;
|
|
11198
|
+
readonly recommendation?: string;
|
|
11199
|
+
readonly recommendationFor?: (hasCapability: CapabilityQuery) => string | undefined;
|
|
11200
|
+
readonly create: (context: RuleContext) => RuleVisitors;
|
|
11201
|
+
};
|
|
11154
11202
|
}, {
|
|
11155
11203
|
readonly key: "react-doctor/no-unsafe";
|
|
11156
11204
|
readonly id: "no-unsafe";
|
|
@@ -13071,6 +13119,30 @@ declare const REACT_DOCTOR_RULES: readonly [{
|
|
|
13071
13119
|
readonly recommendationFor?: (hasCapability: CapabilityQuery) => string | undefined;
|
|
13072
13120
|
readonly create: (context: RuleContext) => RuleVisitors;
|
|
13073
13121
|
};
|
|
13122
|
+
}, {
|
|
13123
|
+
readonly key: "react-doctor/r3f-prefer-instanced-mesh";
|
|
13124
|
+
readonly id: "r3f-prefer-instanced-mesh";
|
|
13125
|
+
readonly source: "react-doctor";
|
|
13126
|
+
readonly originallyExternal: false;
|
|
13127
|
+
readonly rule: {
|
|
13128
|
+
readonly framework: "global";
|
|
13129
|
+
readonly category: "Performance";
|
|
13130
|
+
readonly tags: readonly string[];
|
|
13131
|
+
readonly requires: readonly Capability[];
|
|
13132
|
+
readonly id: string;
|
|
13133
|
+
readonly title?: string;
|
|
13134
|
+
readonly severity: RuleSeverity;
|
|
13135
|
+
readonly minimumInkVersion?: string;
|
|
13136
|
+
readonly disabledWhen?: ReadonlyArray<Capability>;
|
|
13137
|
+
readonly matchByOccurrence?: boolean;
|
|
13138
|
+
readonly defaultEnabled?: boolean;
|
|
13139
|
+
readonly lifecycle?: "retired";
|
|
13140
|
+
readonly scan?: FileScan;
|
|
13141
|
+
readonly committedFilesOnly?: boolean;
|
|
13142
|
+
readonly recommendation?: string;
|
|
13143
|
+
readonly recommendationFor?: (hasCapability: CapabilityQuery) => string | undefined;
|
|
13144
|
+
readonly create: (context: RuleContext) => RuleVisitors;
|
|
13145
|
+
};
|
|
13074
13146
|
}, {
|
|
13075
13147
|
readonly key: "react-doctor/r3f-prefer-use-loader";
|
|
13076
13148
|
readonly id: "r3f-prefer-use-loader";
|
|
@@ -17511,6 +17583,30 @@ declare const REACT_DOCTOR_RULES: readonly [{
|
|
|
17511
17583
|
readonly recommendationFor?: (hasCapability: CapabilityQuery) => string | undefined;
|
|
17512
17584
|
readonly create: (context: RuleContext) => RuleVisitors;
|
|
17513
17585
|
};
|
|
17586
|
+
}, {
|
|
17587
|
+
readonly key: "react-doctor/three-prefer-instanced-mesh";
|
|
17588
|
+
readonly id: "three-prefer-instanced-mesh";
|
|
17589
|
+
readonly source: "react-doctor";
|
|
17590
|
+
readonly originallyExternal: false;
|
|
17591
|
+
readonly rule: {
|
|
17592
|
+
readonly framework: "global";
|
|
17593
|
+
readonly category: "Performance";
|
|
17594
|
+
readonly tags: readonly string[];
|
|
17595
|
+
readonly requires: readonly Capability[];
|
|
17596
|
+
readonly id: string;
|
|
17597
|
+
readonly title?: string;
|
|
17598
|
+
readonly severity: RuleSeverity;
|
|
17599
|
+
readonly minimumInkVersion?: string;
|
|
17600
|
+
readonly disabledWhen?: ReadonlyArray<Capability>;
|
|
17601
|
+
readonly matchByOccurrence?: boolean;
|
|
17602
|
+
readonly defaultEnabled?: boolean;
|
|
17603
|
+
readonly lifecycle?: "retired";
|
|
17604
|
+
readonly scan?: FileScan;
|
|
17605
|
+
readonly committedFilesOnly?: boolean;
|
|
17606
|
+
readonly recommendation?: string;
|
|
17607
|
+
readonly recommendationFor?: (hasCapability: CapabilityQuery) => string | undefined;
|
|
17608
|
+
readonly create: (context: RuleContext) => RuleVisitors;
|
|
17609
|
+
};
|
|
17514
17610
|
}, {
|
|
17515
17611
|
readonly key: "react-doctor/three-raw-shader-require-fragment-float-precision";
|
|
17516
17612
|
readonly id: "three-raw-shader-require-fragment-float-precision";
|
|
@@ -18952,6 +19048,30 @@ declare const RULES: readonly [{
|
|
|
18952
19048
|
readonly recommendationFor?: (hasCapability: CapabilityQuery) => string | undefined;
|
|
18953
19049
|
readonly create: (context: RuleContext) => RuleVisitors;
|
|
18954
19050
|
};
|
|
19051
|
+
}, {
|
|
19052
|
+
readonly key: "react-doctor/anchor-target-exists";
|
|
19053
|
+
readonly id: "anchor-target-exists";
|
|
19054
|
+
readonly source: "react-doctor";
|
|
19055
|
+
readonly originallyExternal: false;
|
|
19056
|
+
readonly rule: {
|
|
19057
|
+
readonly framework: "global";
|
|
19058
|
+
readonly category: "Accessibility";
|
|
19059
|
+
readonly requires: readonly Capability[];
|
|
19060
|
+
readonly id: string;
|
|
19061
|
+
readonly title?: string;
|
|
19062
|
+
readonly severity: RuleSeverity;
|
|
19063
|
+
readonly minimumInkVersion?: string;
|
|
19064
|
+
readonly disabledWhen?: ReadonlyArray<Capability>;
|
|
19065
|
+
readonly tags?: ReadonlyArray<string>;
|
|
19066
|
+
readonly matchByOccurrence?: boolean;
|
|
19067
|
+
readonly defaultEnabled?: boolean;
|
|
19068
|
+
readonly lifecycle?: "retired";
|
|
19069
|
+
readonly scan?: FileScan;
|
|
19070
|
+
readonly committedFilesOnly?: boolean;
|
|
19071
|
+
readonly recommendation?: string;
|
|
19072
|
+
readonly recommendationFor?: (hasCapability: CapabilityQuery) => string | undefined;
|
|
19073
|
+
readonly create: (context: RuleContext) => RuleVisitors;
|
|
19074
|
+
};
|
|
18955
19075
|
}, {
|
|
18956
19076
|
readonly key: "react-doctor/aria-activedescendant-has-tabindex";
|
|
18957
19077
|
readonly id: "aria-activedescendant-has-tabindex";
|
|
@@ -29896,6 +30016,30 @@ declare const RULES: readonly [{
|
|
|
29896
30016
|
readonly recommendationFor?: (hasCapability: CapabilityQuery) => string | undefined;
|
|
29897
30017
|
readonly create: (context: RuleContext) => RuleVisitors;
|
|
29898
30018
|
};
|
|
30019
|
+
}, {
|
|
30020
|
+
readonly key: "react-doctor/no-unowned-async-error-clear";
|
|
30021
|
+
readonly id: "no-unowned-async-error-clear";
|
|
30022
|
+
readonly source: "react-doctor";
|
|
30023
|
+
readonly originallyExternal: false;
|
|
30024
|
+
readonly rule: {
|
|
30025
|
+
readonly framework: "global";
|
|
30026
|
+
readonly category: "Bugs";
|
|
30027
|
+
readonly requires: readonly Capability[];
|
|
30028
|
+
readonly id: string;
|
|
30029
|
+
readonly title?: string;
|
|
30030
|
+
readonly severity: RuleSeverity;
|
|
30031
|
+
readonly minimumInkVersion?: string;
|
|
30032
|
+
readonly disabledWhen?: ReadonlyArray<Capability>;
|
|
30033
|
+
readonly tags?: ReadonlyArray<string>;
|
|
30034
|
+
readonly matchByOccurrence?: boolean;
|
|
30035
|
+
readonly defaultEnabled?: boolean;
|
|
30036
|
+
readonly lifecycle?: "retired";
|
|
30037
|
+
readonly scan?: FileScan;
|
|
30038
|
+
readonly committedFilesOnly?: boolean;
|
|
30039
|
+
readonly recommendation?: string;
|
|
30040
|
+
readonly recommendationFor?: (hasCapability: CapabilityQuery) => string | undefined;
|
|
30041
|
+
readonly create: (context: RuleContext) => RuleVisitors;
|
|
30042
|
+
};
|
|
29899
30043
|
}, {
|
|
29900
30044
|
readonly key: "react-doctor/no-unsafe";
|
|
29901
30045
|
readonly id: "no-unsafe";
|
|
@@ -31816,6 +31960,30 @@ declare const RULES: readonly [{
|
|
|
31816
31960
|
readonly recommendationFor?: (hasCapability: CapabilityQuery) => string | undefined;
|
|
31817
31961
|
readonly create: (context: RuleContext) => RuleVisitors;
|
|
31818
31962
|
};
|
|
31963
|
+
}, {
|
|
31964
|
+
readonly key: "react-doctor/r3f-prefer-instanced-mesh";
|
|
31965
|
+
readonly id: "r3f-prefer-instanced-mesh";
|
|
31966
|
+
readonly source: "react-doctor";
|
|
31967
|
+
readonly originallyExternal: false;
|
|
31968
|
+
readonly rule: {
|
|
31969
|
+
readonly framework: "global";
|
|
31970
|
+
readonly category: "Performance";
|
|
31971
|
+
readonly tags: readonly string[];
|
|
31972
|
+
readonly requires: readonly Capability[];
|
|
31973
|
+
readonly id: string;
|
|
31974
|
+
readonly title?: string;
|
|
31975
|
+
readonly severity: RuleSeverity;
|
|
31976
|
+
readonly minimumInkVersion?: string;
|
|
31977
|
+
readonly disabledWhen?: ReadonlyArray<Capability>;
|
|
31978
|
+
readonly matchByOccurrence?: boolean;
|
|
31979
|
+
readonly defaultEnabled?: boolean;
|
|
31980
|
+
readonly lifecycle?: "retired";
|
|
31981
|
+
readonly scan?: FileScan;
|
|
31982
|
+
readonly committedFilesOnly?: boolean;
|
|
31983
|
+
readonly recommendation?: string;
|
|
31984
|
+
readonly recommendationFor?: (hasCapability: CapabilityQuery) => string | undefined;
|
|
31985
|
+
readonly create: (context: RuleContext) => RuleVisitors;
|
|
31986
|
+
};
|
|
31819
31987
|
}, {
|
|
31820
31988
|
readonly key: "react-doctor/r3f-prefer-use-loader";
|
|
31821
31989
|
readonly id: "r3f-prefer-use-loader";
|
|
@@ -36256,6 +36424,30 @@ declare const RULES: readonly [{
|
|
|
36256
36424
|
readonly recommendationFor?: (hasCapability: CapabilityQuery) => string | undefined;
|
|
36257
36425
|
readonly create: (context: RuleContext) => RuleVisitors;
|
|
36258
36426
|
};
|
|
36427
|
+
}, {
|
|
36428
|
+
readonly key: "react-doctor/three-prefer-instanced-mesh";
|
|
36429
|
+
readonly id: "three-prefer-instanced-mesh";
|
|
36430
|
+
readonly source: "react-doctor";
|
|
36431
|
+
readonly originallyExternal: false;
|
|
36432
|
+
readonly rule: {
|
|
36433
|
+
readonly framework: "global";
|
|
36434
|
+
readonly category: "Performance";
|
|
36435
|
+
readonly tags: readonly string[];
|
|
36436
|
+
readonly requires: readonly Capability[];
|
|
36437
|
+
readonly id: string;
|
|
36438
|
+
readonly title?: string;
|
|
36439
|
+
readonly severity: RuleSeverity;
|
|
36440
|
+
readonly minimumInkVersion?: string;
|
|
36441
|
+
readonly disabledWhen?: ReadonlyArray<Capability>;
|
|
36442
|
+
readonly matchByOccurrence?: boolean;
|
|
36443
|
+
readonly defaultEnabled?: boolean;
|
|
36444
|
+
readonly lifecycle?: "retired";
|
|
36445
|
+
readonly scan?: FileScan;
|
|
36446
|
+
readonly committedFilesOnly?: boolean;
|
|
36447
|
+
readonly recommendation?: string;
|
|
36448
|
+
readonly recommendationFor?: (hasCapability: CapabilityQuery) => string | undefined;
|
|
36449
|
+
readonly create: (context: RuleContext) => RuleVisitors;
|
|
36450
|
+
};
|
|
36259
36451
|
}, {
|
|
36260
36452
|
readonly key: "react-doctor/three-raw-shader-require-fragment-float-precision";
|
|
36261
36453
|
readonly id: "three-raw-shader-require-fragment-float-precision";
|