eslint-plugin-react-x 5.2.4-next.3 → 5.2.4-next.5
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 +2 -3
- package/package.json +7 -7
package/dist/index.js
CHANGED
|
@@ -1,7 +1,6 @@
|
|
|
1
1
|
import { DEFAULT_ESLINT_REACT_SETTINGS, getSettingsFromContext, toRegExp } from "@eslint-react/shared";
|
|
2
2
|
import { Check, Compare, Extract, Traverse, is, isOneOf } from "@eslint-react/ast";
|
|
3
3
|
import * as core from "@eslint-react/core";
|
|
4
|
-
import { isUseRefCall } from "@eslint-react/core";
|
|
5
4
|
import { merge } from "@eslint-react/eslint";
|
|
6
5
|
import { AST_NODE_TYPES } from "@typescript-eslint/types";
|
|
7
6
|
import { ESLintUtils } from "@typescript-eslint/utils";
|
|
@@ -143,7 +142,7 @@ const rules$7 = {
|
|
|
143
142
|
//#endregion
|
|
144
143
|
//#region package.json
|
|
145
144
|
var name$6 = "eslint-plugin-react-x";
|
|
146
|
-
var version = "5.2.4-next.
|
|
145
|
+
var version = "5.2.4-next.5";
|
|
147
146
|
|
|
148
147
|
//#endregion
|
|
149
148
|
//#region src/rules/component-hook-factories/lib.ts
|
|
@@ -4029,7 +4028,7 @@ function create$5(context) {
|
|
|
4029
4028
|
if (init == null) continue;
|
|
4030
4029
|
switch (true) {
|
|
4031
4030
|
case init.type === AST_NODE_TYPES.MemberExpression && init.object.type === AST_NODE_TYPES.Identifier && (init.object.name === "ref" || init.object.name.endsWith("Ref")): return true;
|
|
4032
|
-
case init.type === AST_NODE_TYPES.CallExpression && isUseRefCall(context, init): return true;
|
|
4031
|
+
case init.type === AST_NODE_TYPES.CallExpression && core.isUseRefCall(context, init): return true;
|
|
4033
4032
|
}
|
|
4034
4033
|
}
|
|
4035
4034
|
return false;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "eslint-plugin-react-x",
|
|
3
|
-
"version": "5.2.4-next.
|
|
3
|
+
"version": "5.2.4-next.5",
|
|
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",
|
|
@@ -46,12 +46,12 @@
|
|
|
46
46
|
"string-ts": "^2.3.1",
|
|
47
47
|
"ts-api-utils": "^2.5.0",
|
|
48
48
|
"ts-pattern": "^5.9.0",
|
|
49
|
-
"@eslint-react/
|
|
50
|
-
"@eslint-react/
|
|
51
|
-
"@eslint-react/
|
|
52
|
-
"@eslint-react/
|
|
53
|
-
"@eslint-react/
|
|
54
|
-
"@eslint-react/
|
|
49
|
+
"@eslint-react/eslint": "5.2.4-next.5",
|
|
50
|
+
"@eslint-react/ast": "5.2.4-next.5",
|
|
51
|
+
"@eslint-react/jsx": "5.2.4-next.5",
|
|
52
|
+
"@eslint-react/shared": "5.2.4-next.5",
|
|
53
|
+
"@eslint-react/var": "5.2.4-next.5",
|
|
54
|
+
"@eslint-react/core": "5.2.4-next.5"
|
|
55
55
|
},
|
|
56
56
|
"devDependencies": {
|
|
57
57
|
"@types/react": "^19.2.14",
|