eslint-plugin-react-doctor 0.2.8 → 0.2.10

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
@@ -38,6 +38,7 @@ interface EslintPlugin {
38
38
  "react-native": EslintFlatConfig;
39
39
  "tanstack-start": EslintFlatConfig;
40
40
  "tanstack-query": EslintFlatConfig;
41
+ preact: EslintFlatConfig;
41
42
  all: EslintFlatConfig;
42
43
  };
43
44
  }
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.8"
27
+ version: "0.2.10"
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.8",
3
+ "version": "0.2.10",
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.8"
44
+ "oxlint-plugin-react-doctor": "0.2.10"
45
45
  },
46
46
  "devDependencies": {
47
47
  "@types/node": "^25.6.0"
@@ -51,7 +51,7 @@
51
51
  },
52
52
  "scripts": {
53
53
  "dev": "vp pack --watch",
54
- "build": "node -e \"require('node:fs').rmSync('dist', { recursive: true, force: true })\" && NODE_ENV=production vp pack",
54
+ "build": "node -e \"require('node:fs').rmSync('dist', { recursive: true, force: true })\" && cross-env NODE_ENV=production vp pack",
55
55
  "typecheck": "tsc --noEmit",
56
56
  "test": "vp test run"
57
57
  }