oxlint-plugin-react-doctor 0.7.4-dev.b47d053 → 0.7.4-dev.d4f2209
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 +138 -0
- package/dist/index.js +2326 -809
- package/package.json +1 -1
package/dist/index.d.ts
CHANGED
|
@@ -4445,6 +4445,29 @@ declare const REACT_DOCTOR_RULES: readonly [{
|
|
|
4445
4445
|
readonly recommendationFor?: (hasCapability: CapabilityQuery) => string | undefined;
|
|
4446
4446
|
readonly create: (context: RuleContext) => RuleVisitors;
|
|
4447
4447
|
};
|
|
4448
|
+
}, {
|
|
4449
|
+
readonly key: "react-doctor/no-impure-state-updater";
|
|
4450
|
+
readonly id: "no-impure-state-updater";
|
|
4451
|
+
readonly source: "react-doctor";
|
|
4452
|
+
readonly originallyExternal: false;
|
|
4453
|
+
readonly rule: {
|
|
4454
|
+
readonly framework: "global";
|
|
4455
|
+
readonly category: "Bugs";
|
|
4456
|
+
readonly requires: readonly Capability[];
|
|
4457
|
+
readonly id: string;
|
|
4458
|
+
readonly title?: string;
|
|
4459
|
+
readonly severity: RuleSeverity;
|
|
4460
|
+
readonly disabledWhen?: ReadonlyArray<Capability>;
|
|
4461
|
+
readonly tags?: ReadonlyArray<string>;
|
|
4462
|
+
readonly matchByOccurrence?: boolean;
|
|
4463
|
+
readonly defaultEnabled?: boolean;
|
|
4464
|
+
readonly lifecycle?: "retired";
|
|
4465
|
+
readonly scan?: FileScan;
|
|
4466
|
+
readonly committedFilesOnly?: boolean;
|
|
4467
|
+
readonly recommendation?: string;
|
|
4468
|
+
readonly recommendationFor?: (hasCapability: CapabilityQuery) => string | undefined;
|
|
4469
|
+
readonly create: (context: RuleContext) => RuleVisitors;
|
|
4470
|
+
};
|
|
4448
4471
|
}, {
|
|
4449
4472
|
readonly key: "react-doctor/no-indeterminate-attribute";
|
|
4450
4473
|
readonly id: "no-indeterminate-attribute";
|
|
@@ -5273,6 +5296,29 @@ declare const REACT_DOCTOR_RULES: readonly [{
|
|
|
5273
5296
|
readonly recommendationFor?: (hasCapability: CapabilityQuery) => string | undefined;
|
|
5274
5297
|
readonly create: (context: RuleContext) => RuleVisitors;
|
|
5275
5298
|
};
|
|
5299
|
+
}, {
|
|
5300
|
+
readonly key: "react-doctor/no-prop-callback-in-render";
|
|
5301
|
+
readonly id: "no-prop-callback-in-render";
|
|
5302
|
+
readonly source: "react-doctor";
|
|
5303
|
+
readonly originallyExternal: false;
|
|
5304
|
+
readonly rule: {
|
|
5305
|
+
readonly framework: "global";
|
|
5306
|
+
readonly category: "Bugs";
|
|
5307
|
+
readonly requires: readonly Capability[];
|
|
5308
|
+
readonly id: string;
|
|
5309
|
+
readonly title?: string;
|
|
5310
|
+
readonly severity: RuleSeverity;
|
|
5311
|
+
readonly disabledWhen?: ReadonlyArray<Capability>;
|
|
5312
|
+
readonly tags?: ReadonlyArray<string>;
|
|
5313
|
+
readonly matchByOccurrence?: boolean;
|
|
5314
|
+
readonly defaultEnabled?: boolean;
|
|
5315
|
+
readonly lifecycle?: "retired";
|
|
5316
|
+
readonly scan?: FileScan;
|
|
5317
|
+
readonly committedFilesOnly?: boolean;
|
|
5318
|
+
readonly recommendation?: string;
|
|
5319
|
+
readonly recommendationFor?: (hasCapability: CapabilityQuery) => string | undefined;
|
|
5320
|
+
readonly create: (context: RuleContext) => RuleVisitors;
|
|
5321
|
+
};
|
|
5276
5322
|
}, {
|
|
5277
5323
|
readonly key: "react-doctor/no-prop-types";
|
|
5278
5324
|
readonly id: "no-prop-types";
|
|
@@ -5457,6 +5503,29 @@ declare const REACT_DOCTOR_RULES: readonly [{
|
|
|
5457
5503
|
readonly recommendationFor?: (hasCapability: CapabilityQuery) => string | undefined;
|
|
5458
5504
|
readonly create: (context: RuleContext) => RuleVisitors;
|
|
5459
5505
|
};
|
|
5506
|
+
}, {
|
|
5507
|
+
readonly key: "react-doctor/no-ref-current-in-render";
|
|
5508
|
+
readonly id: "no-ref-current-in-render";
|
|
5509
|
+
readonly source: "react-doctor";
|
|
5510
|
+
readonly originallyExternal: false;
|
|
5511
|
+
readonly rule: {
|
|
5512
|
+
readonly framework: "global";
|
|
5513
|
+
readonly category: "Bugs";
|
|
5514
|
+
readonly requires: readonly Capability[];
|
|
5515
|
+
readonly id: string;
|
|
5516
|
+
readonly title?: string;
|
|
5517
|
+
readonly severity: RuleSeverity;
|
|
5518
|
+
readonly disabledWhen?: ReadonlyArray<Capability>;
|
|
5519
|
+
readonly tags?: ReadonlyArray<string>;
|
|
5520
|
+
readonly matchByOccurrence?: boolean;
|
|
5521
|
+
readonly defaultEnabled?: boolean;
|
|
5522
|
+
readonly lifecycle?: "retired";
|
|
5523
|
+
readonly scan?: FileScan;
|
|
5524
|
+
readonly committedFilesOnly?: boolean;
|
|
5525
|
+
readonly recommendation?: string;
|
|
5526
|
+
readonly recommendationFor?: (hasCapability: CapabilityQuery) => string | undefined;
|
|
5527
|
+
readonly create: (context: RuleContext) => RuleVisitors;
|
|
5528
|
+
};
|
|
5460
5529
|
}, {
|
|
5461
5530
|
readonly key: "react-doctor/no-render-in-render";
|
|
5462
5531
|
readonly id: "no-render-in-render";
|
|
@@ -13642,6 +13711,29 @@ declare const RULES: readonly [{
|
|
|
13642
13711
|
readonly recommendationFor?: (hasCapability: CapabilityQuery) => string | undefined;
|
|
13643
13712
|
readonly create: (context: RuleContext) => RuleVisitors;
|
|
13644
13713
|
};
|
|
13714
|
+
}, {
|
|
13715
|
+
readonly key: "react-doctor/no-impure-state-updater";
|
|
13716
|
+
readonly id: "no-impure-state-updater";
|
|
13717
|
+
readonly source: "react-doctor";
|
|
13718
|
+
readonly originallyExternal: false;
|
|
13719
|
+
readonly rule: {
|
|
13720
|
+
readonly framework: "global";
|
|
13721
|
+
readonly category: "Bugs";
|
|
13722
|
+
readonly requires: readonly Capability[];
|
|
13723
|
+
readonly id: string;
|
|
13724
|
+
readonly title?: string;
|
|
13725
|
+
readonly severity: RuleSeverity;
|
|
13726
|
+
readonly disabledWhen?: ReadonlyArray<Capability>;
|
|
13727
|
+
readonly tags?: ReadonlyArray<string>;
|
|
13728
|
+
readonly matchByOccurrence?: boolean;
|
|
13729
|
+
readonly defaultEnabled?: boolean;
|
|
13730
|
+
readonly lifecycle?: "retired";
|
|
13731
|
+
readonly scan?: FileScan;
|
|
13732
|
+
readonly committedFilesOnly?: boolean;
|
|
13733
|
+
readonly recommendation?: string;
|
|
13734
|
+
readonly recommendationFor?: (hasCapability: CapabilityQuery) => string | undefined;
|
|
13735
|
+
readonly create: (context: RuleContext) => RuleVisitors;
|
|
13736
|
+
};
|
|
13645
13737
|
}, {
|
|
13646
13738
|
readonly key: "react-doctor/no-indeterminate-attribute";
|
|
13647
13739
|
readonly id: "no-indeterminate-attribute";
|
|
@@ -14470,6 +14562,29 @@ declare const RULES: readonly [{
|
|
|
14470
14562
|
readonly recommendationFor?: (hasCapability: CapabilityQuery) => string | undefined;
|
|
14471
14563
|
readonly create: (context: RuleContext) => RuleVisitors;
|
|
14472
14564
|
};
|
|
14565
|
+
}, {
|
|
14566
|
+
readonly key: "react-doctor/no-prop-callback-in-render";
|
|
14567
|
+
readonly id: "no-prop-callback-in-render";
|
|
14568
|
+
readonly source: "react-doctor";
|
|
14569
|
+
readonly originallyExternal: false;
|
|
14570
|
+
readonly rule: {
|
|
14571
|
+
readonly framework: "global";
|
|
14572
|
+
readonly category: "Bugs";
|
|
14573
|
+
readonly requires: readonly Capability[];
|
|
14574
|
+
readonly id: string;
|
|
14575
|
+
readonly title?: string;
|
|
14576
|
+
readonly severity: RuleSeverity;
|
|
14577
|
+
readonly disabledWhen?: ReadonlyArray<Capability>;
|
|
14578
|
+
readonly tags?: ReadonlyArray<string>;
|
|
14579
|
+
readonly matchByOccurrence?: boolean;
|
|
14580
|
+
readonly defaultEnabled?: boolean;
|
|
14581
|
+
readonly lifecycle?: "retired";
|
|
14582
|
+
readonly scan?: FileScan;
|
|
14583
|
+
readonly committedFilesOnly?: boolean;
|
|
14584
|
+
readonly recommendation?: string;
|
|
14585
|
+
readonly recommendationFor?: (hasCapability: CapabilityQuery) => string | undefined;
|
|
14586
|
+
readonly create: (context: RuleContext) => RuleVisitors;
|
|
14587
|
+
};
|
|
14473
14588
|
}, {
|
|
14474
14589
|
readonly key: "react-doctor/no-prop-types";
|
|
14475
14590
|
readonly id: "no-prop-types";
|
|
@@ -14654,6 +14769,29 @@ declare const RULES: readonly [{
|
|
|
14654
14769
|
readonly recommendationFor?: (hasCapability: CapabilityQuery) => string | undefined;
|
|
14655
14770
|
readonly create: (context: RuleContext) => RuleVisitors;
|
|
14656
14771
|
};
|
|
14772
|
+
}, {
|
|
14773
|
+
readonly key: "react-doctor/no-ref-current-in-render";
|
|
14774
|
+
readonly id: "no-ref-current-in-render";
|
|
14775
|
+
readonly source: "react-doctor";
|
|
14776
|
+
readonly originallyExternal: false;
|
|
14777
|
+
readonly rule: {
|
|
14778
|
+
readonly framework: "global";
|
|
14779
|
+
readonly category: "Bugs";
|
|
14780
|
+
readonly requires: readonly Capability[];
|
|
14781
|
+
readonly id: string;
|
|
14782
|
+
readonly title?: string;
|
|
14783
|
+
readonly severity: RuleSeverity;
|
|
14784
|
+
readonly disabledWhen?: ReadonlyArray<Capability>;
|
|
14785
|
+
readonly tags?: ReadonlyArray<string>;
|
|
14786
|
+
readonly matchByOccurrence?: boolean;
|
|
14787
|
+
readonly defaultEnabled?: boolean;
|
|
14788
|
+
readonly lifecycle?: "retired";
|
|
14789
|
+
readonly scan?: FileScan;
|
|
14790
|
+
readonly committedFilesOnly?: boolean;
|
|
14791
|
+
readonly recommendation?: string;
|
|
14792
|
+
readonly recommendationFor?: (hasCapability: CapabilityQuery) => string | undefined;
|
|
14793
|
+
readonly create: (context: RuleContext) => RuleVisitors;
|
|
14794
|
+
};
|
|
14657
14795
|
}, {
|
|
14658
14796
|
readonly key: "react-doctor/no-render-in-render";
|
|
14659
14797
|
readonly id: "no-render-in-render";
|