eslint-plugin-react-doctor 0.2.0-beta.5 → 0.2.0-beta.6
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/README.md +1 -1
- package/dist/index.js +5 -12
- package/package.json +2 -2
package/README.md
CHANGED
|
@@ -75,7 +75,7 @@ export default [
|
|
|
75
75
|
This package only ships the ESLint plugin. To run React Doctor's full scan (with scoring, JSON reports, agent integration, etc.), use the main CLI:
|
|
76
76
|
|
|
77
77
|
```bash
|
|
78
|
-
npx
|
|
78
|
+
npx react-doctor@latest
|
|
79
79
|
```
|
|
80
80
|
|
|
81
81
|
See the [React Doctor README](https://github.com/millionco/react-doctor#readme) for the full feature set.
|
package/dist/index.js
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import oxlintPlugin, {
|
|
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";
|
|
2
2
|
//#region src/index.ts
|
|
3
3
|
const PLUGIN_NAMESPACE = "react-doctor";
|
|
4
4
|
const RULE_DOCS_BASE_URL = "https://react.doctor/rules";
|
|
5
|
-
const recommendedRuleKeys = new Set(Object.keys(
|
|
5
|
+
const recommendedRuleKeys = new Set(Object.keys(RECOMMENDED_RULES));
|
|
6
6
|
const wrapAsEslintRule = (ruleName, ruleImpl) => ({
|
|
7
7
|
meta: {
|
|
8
8
|
type: "problem",
|
|
@@ -21,26 +21,19 @@ const buildFlatConfig = (configName, ruleSet) => ({
|
|
|
21
21
|
plugins: {},
|
|
22
22
|
rules: { ...ruleSet }
|
|
23
23
|
});
|
|
24
|
-
const ALL_RULES_AT_RECOMMENDED_SEVERITY = {
|
|
25
|
-
...GLOBAL_REACT_DOCTOR_RULES,
|
|
26
|
-
...NEXTJS_RULES,
|
|
27
|
-
...REACT_NATIVE_RULES,
|
|
28
|
-
...TANSTACK_START_RULES,
|
|
29
|
-
...TANSTACK_QUERY_RULES
|
|
30
|
-
};
|
|
31
24
|
const eslintPlugin = {
|
|
32
25
|
meta: {
|
|
33
26
|
name: PLUGIN_NAMESPACE,
|
|
34
|
-
version: "0.2.0-beta.
|
|
27
|
+
version: "0.2.0-beta.6"
|
|
35
28
|
},
|
|
36
29
|
rules: eslintShapedRules,
|
|
37
30
|
configs: {
|
|
38
|
-
recommended: buildFlatConfig("recommended",
|
|
31
|
+
recommended: buildFlatConfig("recommended", RECOMMENDED_RULES),
|
|
39
32
|
next: buildFlatConfig("next", NEXTJS_RULES),
|
|
40
33
|
"react-native": buildFlatConfig("react-native", REACT_NATIVE_RULES),
|
|
41
34
|
"tanstack-start": buildFlatConfig("tanstack-start", TANSTACK_START_RULES),
|
|
42
35
|
"tanstack-query": buildFlatConfig("tanstack-query", TANSTACK_QUERY_RULES),
|
|
43
|
-
all: buildFlatConfig("all",
|
|
36
|
+
all: buildFlatConfig("all", ALL_REACT_DOCTOR_RULES)
|
|
44
37
|
}
|
|
45
38
|
};
|
|
46
39
|
for (const flatConfig of Object.values(eslintPlugin.configs)) flatConfig.plugins[PLUGIN_NAMESPACE] = eslintPlugin;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "eslint-plugin-react-doctor",
|
|
3
|
-
"version": "0.2.0-beta.
|
|
3
|
+
"version": "0.2.0-beta.6",
|
|
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.0-beta.
|
|
44
|
+
"oxlint-plugin-react-doctor": "0.2.0-beta.6"
|
|
45
45
|
},
|
|
46
46
|
"devDependencies": {
|
|
47
47
|
"@types/node": "^25.6.0"
|