eslint-plugin-react-x 5.6.4-next.0 → 5.6.4
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 +3 -2
- package/package.json +9 -9
package/dist/index.js
CHANGED
|
@@ -142,7 +142,7 @@ const rules$6 = {
|
|
|
142
142
|
//#endregion
|
|
143
143
|
//#region package.json
|
|
144
144
|
var name$6 = "eslint-plugin-react-x";
|
|
145
|
-
var version = "5.6.4
|
|
145
|
+
var version = "5.6.4";
|
|
146
146
|
|
|
147
147
|
//#endregion
|
|
148
148
|
//#region src/utils/create-rule.ts
|
|
@@ -3504,7 +3504,8 @@ function create$10(context) {
|
|
|
3504
3504
|
for (const def of defs) {
|
|
3505
3505
|
const methodName = Extract.getPropertyName(def);
|
|
3506
3506
|
if (methodName == null) continue;
|
|
3507
|
-
if (
|
|
3507
|
+
if (usages?.has(methodName) ?? false) continue;
|
|
3508
|
+
if (LIFECYCLE_METHODS.has(methodName)) if (methodName === "shouldComponentUpdate" && core.isPureComponent(currentClass)) {} else continue;
|
|
3508
3509
|
context.report({
|
|
3509
3510
|
data: {
|
|
3510
3511
|
className: id != null ? context.sourceCode.getText(id) : "Component",
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "eslint-plugin-react-x",
|
|
3
|
-
"version": "5.6.4
|
|
3
|
+
"version": "5.6.4",
|
|
4
4
|
"description": "A set of composable ESLint rules for libraries and frameworks that use React as a UI runtime.",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"react",
|
|
@@ -45,12 +45,12 @@
|
|
|
45
45
|
"string-ts": "^2.3.1",
|
|
46
46
|
"ts-api-utils": "^2.5.0",
|
|
47
47
|
"ts-pattern": "^5.9.0",
|
|
48
|
-
"@eslint-react/ast": "5.6.4
|
|
49
|
-
"@eslint-react/core": "5.6.4
|
|
50
|
-
"@eslint-react/eslint": "5.6.4
|
|
51
|
-
"@eslint-react/jsx": "5.6.4
|
|
52
|
-
"@eslint-react/shared": "5.6.4
|
|
53
|
-
"@eslint-react/var": "5.6.4
|
|
48
|
+
"@eslint-react/ast": "5.6.4",
|
|
49
|
+
"@eslint-react/core": "5.6.4",
|
|
50
|
+
"@eslint-react/eslint": "5.6.4",
|
|
51
|
+
"@eslint-react/jsx": "5.6.4",
|
|
52
|
+
"@eslint-react/shared": "5.6.4",
|
|
53
|
+
"@eslint-react/var": "5.6.4"
|
|
54
54
|
},
|
|
55
55
|
"devDependencies": {
|
|
56
56
|
"@types/react": "^19.2.14",
|
|
@@ -63,8 +63,8 @@
|
|
|
63
63
|
"tsl": "^1.0.30",
|
|
64
64
|
"tsl-dx": "^0.12.1",
|
|
65
65
|
"typescript": "^6.0.3",
|
|
66
|
-
"@local/
|
|
67
|
-
"@local/
|
|
66
|
+
"@local/configs": "0.0.0",
|
|
67
|
+
"@local/eff": "3.0.0-beta.72"
|
|
68
68
|
},
|
|
69
69
|
"peerDependencies": {
|
|
70
70
|
"eslint": "^10.2.1",
|