eslint-plugin-react-x 4.2.0-beta.1 → 4.2.0-beta.2
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 -3
- package/package.json +8 -8
package/dist/index.js
CHANGED
|
@@ -147,7 +147,7 @@ const rules$7 = {
|
|
|
147
147
|
//#endregion
|
|
148
148
|
//#region package.json
|
|
149
149
|
var name$6 = "eslint-plugin-react-x";
|
|
150
|
-
var version = "4.2.0-beta.
|
|
150
|
+
var version = "4.2.0-beta.2";
|
|
151
151
|
|
|
152
152
|
//#endregion
|
|
153
153
|
//#region src/utils/create-rule.ts
|
|
@@ -4165,8 +4165,8 @@ function create$7(context) {
|
|
|
4165
4165
|
/**
|
|
4166
4166
|
* Check if a test expression is a null check on `ref.current` for a given ref name.
|
|
4167
4167
|
* Matches forms like `ref.current === null`, `null === ref.current`, and their != variants.
|
|
4168
|
-
* @param test
|
|
4169
|
-
* @param refName
|
|
4168
|
+
* @param test The test expression to check.
|
|
4169
|
+
* @param refName The name of the ref variable.
|
|
4170
4170
|
*/
|
|
4171
4171
|
function isRefCurrentNullCheck(test, refName) {
|
|
4172
4172
|
if (test.type !== AST_NODE_TYPES.BinaryExpression) return false;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "eslint-plugin-react-x",
|
|
3
|
-
"version": "4.2.0-beta.
|
|
3
|
+
"version": "4.2.0-beta.2",
|
|
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,11 +45,11 @@
|
|
|
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": "4.2.0-beta.
|
|
49
|
-
"@eslint-react/core": "4.2.0-beta.
|
|
50
|
-
"@eslint-react/jsx": "4.2.0-beta.
|
|
51
|
-
"@eslint-react/
|
|
52
|
-
"@eslint-react/
|
|
48
|
+
"@eslint-react/ast": "4.2.0-beta.2",
|
|
49
|
+
"@eslint-react/core": "4.2.0-beta.2",
|
|
50
|
+
"@eslint-react/jsx": "4.2.0-beta.2",
|
|
51
|
+
"@eslint-react/var": "4.2.0-beta.2",
|
|
52
|
+
"@eslint-react/shared": "4.2.0-beta.2"
|
|
53
53
|
},
|
|
54
54
|
"devDependencies": {
|
|
55
55
|
"@types/react": "^19.2.14",
|
|
@@ -57,8 +57,8 @@
|
|
|
57
57
|
"eslint": "^10.1.0",
|
|
58
58
|
"tsdown": "^0.21.7",
|
|
59
59
|
"tsl-dx": "^0.10.2",
|
|
60
|
-
"@local/
|
|
61
|
-
"@local/
|
|
60
|
+
"@local/eff": "3.0.0-beta.72",
|
|
61
|
+
"@local/configs": "0.0.0"
|
|
62
62
|
},
|
|
63
63
|
"peerDependencies": {
|
|
64
64
|
"eslint": "^10.0.0",
|