eslint-plugin-react-doctor 0.9.3 → 0.9.4-dev.8b97fdc
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.js +5 -5
- package/package.json +2 -2
package/dist/index.js
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
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
|
-
const RULE_DOCS_BASE_URL = "https://react.doctor/rules";
|
|
4
|
+
const RULE_DOCS_BASE_URL = "https://react.doctor/docs/rules";
|
|
5
5
|
const recommendedRuleKeys = new Set(Object.keys(RECOMMENDED_RULES));
|
|
6
6
|
const wrapAsEslintRule = (ruleName, ruleImpl) => ({
|
|
7
7
|
meta: {
|
|
8
|
-
type: "problem",
|
|
8
|
+
type: ruleImpl.severity === "warn" ? "suggestion" : "problem",
|
|
9
9
|
docs: {
|
|
10
|
-
description: ruleName.replaceAll("-", " ").replace(/\b\w/g, (
|
|
11
|
-
url: `${RULE_DOCS_BASE_URL}/${ruleName}`,
|
|
10
|
+
description: ruleImpl.title ?? ruleName.replaceAll("-", " ").replace(/\b\w/g, (innerCharacter) => innerCharacter.toUpperCase()),
|
|
11
|
+
url: `${RULE_DOCS_BASE_URL}/${PLUGIN_NAMESPACE}/${ruleName}`,
|
|
12
12
|
recommended: recommendedRuleKeys.has(`${PLUGIN_NAMESPACE}/${ruleName}`)
|
|
13
13
|
},
|
|
14
14
|
schema: []
|
|
@@ -24,7 +24,7 @@ const buildFlatConfig = (configName, ruleSet) => ({
|
|
|
24
24
|
const eslintPlugin = {
|
|
25
25
|
meta: {
|
|
26
26
|
name: PLUGIN_NAMESPACE,
|
|
27
|
-
version: "0.9.
|
|
27
|
+
version: "0.9.4-dev.8b97fdc"
|
|
28
28
|
},
|
|
29
29
|
rules: eslintShapedRules,
|
|
30
30
|
configs: {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "eslint-plugin-react-doctor",
|
|
3
|
-
"version": "0.9.
|
|
3
|
+
"version": "0.9.4-dev.8b97fdc",
|
|
4
4
|
"description": "React Doctor rules for ESLint.",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"accessibility",
|
|
@@ -42,7 +42,7 @@
|
|
|
42
42
|
}
|
|
43
43
|
},
|
|
44
44
|
"dependencies": {
|
|
45
|
-
"oxlint-plugin-react-doctor": "0.9.
|
|
45
|
+
"oxlint-plugin-react-doctor": "0.9.4-dev.8b97fdc"
|
|
46
46
|
},
|
|
47
47
|
"devDependencies": {
|
|
48
48
|
"@types/node": "^25.6.0"
|