oxlint-plugin-react-doctor 0.9.12-dev.86198f1 → 0.9.12-dev.905607f
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-D9W-G7Ci.js +31 -0
- package/dist/core.d.ts +47 -2
- package/dist/core.js +2 -2
- package/dist/index.d.ts +25880 -360
- package/dist/index.js +12 -12
- package/dist/{react-native-dependency-names-Bsr-0DF0.d.ts → react-native-dependency-names-waW0owVD.d.ts} +5 -3
- package/package.json +2 -2
- package/dist/capability-BwQbtKnB.js +0 -31
|
@@ -4,7 +4,7 @@ import { TSESTree } from "@typescript-eslint/types";
|
|
|
4
4
|
//#region src/plugin/utils/capability.d.ts
|
|
5
5
|
declare const FRAMEWORK_TOKENS: readonly ["nextjs", "astro", "vite", "cra", "remix", "gatsby", "expo", "react-native", "tanstack-start", "preact", "unknown"];
|
|
6
6
|
type FrameworkToken = (typeof FRAMEWORK_TOKENS)[number];
|
|
7
|
-
type Capability = FrameworkToken | "react" | "remotion" | "pure-preact" | "react-native" | "server-actions" | "ssr" | "client-only" | "expo:54" | "nextjs:static-export" | "nextjs:15" | "nextjs:16" | "tailwind" | "tailwind:3.4" | "tailwind:4" | "zod" | "zod:4" | "mobx" | "mobx-react" | "mobx-react-lite" | "mobx-react-binding" | "mobx-react-binding-observer-memo-guard" | "mobx-react-observer-memo-guard" | "mobx-react-lite-observer-memo-guard" | "mobx-state-tree" | "mobx-react-observer" | "zustand" | "typescript" | "react-compiler" | "reanimated" | "reanimated:4" | "tanstack-query" | "valtio" | "i18n" | "styled-components" | "styled-components:6" | "three" | "r3f" | "react-router" | "react-router-framework" | "react-router:6.4" | "react-router:6.7" | "react-router:6.9" | "react-router:6.19" | "react-router:7" | "react-router:7.8" | "react-router:7.9" | "react-router:7.10" | "react-router:7.15" | "react-router:8" | "pre-es2023" | "target-blank-needs-explicit-protection" | "target-blank-needs-noreferrer" | `react:${number}` | `preact:${number}` | `remotion:${number}` | `valtio:${number}` | `mobx:${number}` | `zustand:${number}` | `three:${number}` | `r3f:${number}`;
|
|
7
|
+
type Capability = FrameworkToken | "react" | "remotion" | "pure-preact" | "react-native" | "server-actions" | "ssr" | "client-only" | "expo:54" | "nextjs:static-export" | "nextjs:15" | "nextjs:16" | "tailwind" | "tailwind:3.4" | "tailwind:4" | "shadcn" | "radix-ui" | "base-ui" | "react-aria" | "tanstack-table" | "tanstack-virtual" | "tanstack-form" | "zod" | "zod:4" | "mobx" | "mobx-react" | "mobx-react-lite" | "mobx-react-binding" | "mobx-react-binding-observer-memo-guard" | "mobx-react-observer-memo-guard" | "mobx-react-lite-observer-memo-guard" | "mobx-state-tree" | "mobx-react-observer" | "zustand" | "typescript" | "react-compiler" | "reanimated" | "reanimated:4" | "tanstack-query" | "valtio" | "i18n" | "styled-components" | "styled-components:6" | "three" | "r3f" | "react-router" | "react-router-framework" | "react-router:6.4" | "react-router:6.7" | "react-router:6.9" | "react-router:6.19" | "react-router:7" | "react-router:7.8" | "react-router:7.9" | "react-router:7.10" | "react-router:7.15" | "react-router:8" | "pre-es2023" | "target-blank-needs-explicit-protection" | "target-blank-needs-noreferrer" | `react:${number}` | `preact:${number}` | `remotion:${number}` | `valtio:${number}` | `mobx:${number}` | `zustand:${number}` | `three:${number}` | `r3f:${number}`;
|
|
8
8
|
type CapabilityQuery = (capability: Capability) => boolean;
|
|
9
9
|
//#endregion
|
|
10
10
|
//#region src/plugin/utils/file-scan.d.ts
|
|
@@ -134,6 +134,7 @@ interface RuleVisitors {
|
|
|
134
134
|
//#endregion
|
|
135
135
|
//#region src/plugin/utils/rule.d.ts
|
|
136
136
|
type RuleSeverity = "error" | "warn";
|
|
137
|
+
type RuleExecution = "project";
|
|
137
138
|
type RuleFramework = "global" | "nextjs" | "react-native" | "tanstack-start" | "tanstack-query" | "preact";
|
|
138
139
|
interface Rule {
|
|
139
140
|
id: string;
|
|
@@ -148,6 +149,7 @@ interface Rule {
|
|
|
148
149
|
matchByOccurrence?: boolean;
|
|
149
150
|
defaultEnabled?: boolean;
|
|
150
151
|
lifecycle?: "retired";
|
|
152
|
+
execution?: RuleExecution;
|
|
151
153
|
scan?: FileScan;
|
|
152
154
|
committedFilesOnly?: boolean;
|
|
153
155
|
recommendation?: string;
|
|
@@ -327,5 +329,5 @@ declare const REACT_NATIVE_DEPENDENCY_NAMES: ReadonlySet<string>;
|
|
|
327
329
|
declare const REACT_NATIVE_DEPENDENCY_PREFIXES: ReadonlyArray<string>;
|
|
328
330
|
declare const isReactNativeDependencyName: (dependencyName: string) => boolean;
|
|
329
331
|
//#endregion
|
|
330
|
-
export {
|
|
331
|
-
//# sourceMappingURL=react-native-dependency-names-
|
|
332
|
+
export { FrameworkToken as A, EsTreeNode as C, Capability as D, ScannedFile as E, CapabilityQuery as O, RuleContext as S, ScanFinding as T, RuleExecution as _, shouldReadSecurityScanContent as a, RuleVisitors as b, UNBOUNDED_CROSS_FILE_RULE_IDS as c, CROSS_FILE_RULE_IDS as d, MOTION_LIBRARY_PACKAGES as f, Rule as g, OxlintRuleSeverity as h, classifySecurityScanFile as i, FRAMEWORK_TOKENS as k, collectCrossFileDependencyProbes as l, REACT_COMPILER_RULES as m, REACT_NATIVE_DEPENDENCY_PREFIXES as n, resetFilesystemCaches as o, EXTERNAL_RULES as p, isReactNativeDependencyName as r, CROSS_FILE_DEPENDENCY_COLLECTORS as s, REACT_NATIVE_DEPENDENCY_NAMES as t, CrossFileProbeTrace as u, RuleFramework as v, FileScan as w, BaseRuleContext as x, RuleSeverity as y };
|
|
333
|
+
//# sourceMappingURL=react-native-dependency-names-waW0owVD.d.ts.map
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "oxlint-plugin-react-doctor",
|
|
3
|
-
"version": "0.9.12-dev.
|
|
3
|
+
"version": "0.9.12-dev.905607f",
|
|
4
4
|
"description": "React Doctor rules for oxlint.",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"accessibility",
|
|
@@ -51,7 +51,7 @@
|
|
|
51
51
|
"eslint-scope": "^9.1.2",
|
|
52
52
|
"eslint-visitor-keys": "^5.0.1",
|
|
53
53
|
"lightningcss": "^1.33.0",
|
|
54
|
-
"oxc-parser": "^0.
|
|
54
|
+
"oxc-parser": "^0.146.0"
|
|
55
55
|
},
|
|
56
56
|
"devDependencies": {
|
|
57
57
|
"@types/node": "^25.6.0",
|