eslint-plugin-react-doctor 0.2.9 → 0.2.11-dev.d917f62

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 CHANGED
@@ -6,7 +6,9 @@ interface EslintRuleContext {
6
6
  node: EsTreeNode;
7
7
  message: string;
8
8
  }) => void;
9
- getFilename?: () => string;
9
+ readonly filename?: string;
10
+ /** @deprecated Use `filename`. Kept only for host compatibility. */
11
+ getFilename?: () => string | undefined;
10
12
  }
11
13
  interface EslintRuleMeta {
12
14
  type: "problem" | "suggestion" | "layout";
@@ -38,6 +40,7 @@ interface EslintPlugin {
38
40
  "react-native": EslintFlatConfig;
39
41
  "tanstack-start": EslintFlatConfig;
40
42
  "tanstack-query": EslintFlatConfig;
43
+ preact: EslintFlatConfig;
41
44
  all: EslintFlatConfig;
42
45
  };
43
46
  }
package/dist/index.js CHANGED
@@ -1,4 +1,4 @@
1
- import oxlintPlugin, { ALL_REACT_DOCTOR_RULES, NEXTJS_RULES, REACT_NATIVE_RULES, RECOMMENDED_RULES, TANSTACK_QUERY_RULES, TANSTACK_START_RULES } from "oxlint-plugin-react-doctor";
1
+ import oxlintPlugin, { ALL_REACT_DOCTOR_RULES, NEXTJS_RULES, PREACT_RULES, REACT_NATIVE_RULES, RECOMMENDED_RULES, TANSTACK_QUERY_RULES, TANSTACK_START_RULES } from "oxlint-plugin-react-doctor";
2
2
  //#region src/index.ts
3
3
  const PLUGIN_NAMESPACE = "react-doctor";
4
4
  const RULE_DOCS_BASE_URL = "https://react.doctor/rules";
@@ -24,7 +24,7 @@ const buildFlatConfig = (configName, ruleSet) => ({
24
24
  const eslintPlugin = {
25
25
  meta: {
26
26
  name: PLUGIN_NAMESPACE,
27
- version: "0.2.9"
27
+ version: "0.2.11-dev.d917f62"
28
28
  },
29
29
  rules: eslintShapedRules,
30
30
  configs: {
@@ -33,6 +33,7 @@ const eslintPlugin = {
33
33
  "react-native": buildFlatConfig("react-native", REACT_NATIVE_RULES),
34
34
  "tanstack-start": buildFlatConfig("tanstack-start", TANSTACK_START_RULES),
35
35
  "tanstack-query": buildFlatConfig("tanstack-query", TANSTACK_QUERY_RULES),
36
+ preact: buildFlatConfig("preact", PREACT_RULES),
36
37
  all: buildFlatConfig("all", ALL_REACT_DOCTOR_RULES)
37
38
  }
38
39
  };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "eslint-plugin-react-doctor",
3
- "version": "0.2.9",
3
+ "version": "0.2.11-dev.d917f62",
4
4
  "description": "ESLint plugin for React Doctor: diagnose React codebases for security, performance, correctness, accessibility, bundle-size, and architecture issues",
5
5
  "keywords": [
6
6
  "accessibility",
@@ -41,7 +41,7 @@
41
41
  }
42
42
  },
43
43
  "dependencies": {
44
- "oxlint-plugin-react-doctor": "0.2.9"
44
+ "oxlint-plugin-react-doctor": "0.2.11-dev.d917f62"
45
45
  },
46
46
  "devDependencies": {
47
47
  "@types/node": "^25.6.0"