@eslint-react/core 1.25.1-next.0 → 1.26.0-beta.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 +2 -2
- package/dist/index.mjs +3 -3
- package/package.json +10 -10
package/dist/index.js
CHANGED
|
@@ -186,7 +186,7 @@ function isReactHookCall(node) {
|
|
|
186
186
|
return false;
|
|
187
187
|
}
|
|
188
188
|
function isReactHookCallWithName(node, context) {
|
|
189
|
-
if (node == null) return eff.
|
|
189
|
+
if (node == null) return eff.constFalse;
|
|
190
190
|
const settings = shared.unsafeDecodeSettings(context.settings);
|
|
191
191
|
const importSource = settings.importSource ?? "react";
|
|
192
192
|
const initialScope = context.sourceCode.getScope(node);
|
|
@@ -202,7 +202,7 @@ function isReactHookCallWithName(node, context) {
|
|
|
202
202
|
};
|
|
203
203
|
}
|
|
204
204
|
function isReactHookCallWithNameLoose(node) {
|
|
205
|
-
if (node == null) return eff.
|
|
205
|
+
if (node == null) return eff.constFalse;
|
|
206
206
|
return (name) => {
|
|
207
207
|
switch (node.callee.type) {
|
|
208
208
|
case types.AST_NODE_TYPES.Identifier:
|
package/dist/index.mjs
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import * as AST8 from '@eslint-react/ast';
|
|
2
|
-
import { flip, dual, _,
|
|
2
|
+
import { flip, dual, _, constFalse } from '@eslint-react/eff';
|
|
3
3
|
import * as JSX3 from '@eslint-react/jsx';
|
|
4
4
|
import { unsafeDecodeSettings, DEFAULT_ESLINT_REACT_SETTINGS, getId } from '@eslint-react/shared';
|
|
5
5
|
import { AST_NODE_TYPES } from '@typescript-eslint/types';
|
|
@@ -159,7 +159,7 @@ function isReactHookCall(node) {
|
|
|
159
159
|
return false;
|
|
160
160
|
}
|
|
161
161
|
function isReactHookCallWithName(node, context) {
|
|
162
|
-
if (node == null) return
|
|
162
|
+
if (node == null) return constFalse;
|
|
163
163
|
const settings = unsafeDecodeSettings(context.settings);
|
|
164
164
|
const importSource = settings.importSource ?? "react";
|
|
165
165
|
const initialScope = context.sourceCode.getScope(node);
|
|
@@ -175,7 +175,7 @@ function isReactHookCallWithName(node, context) {
|
|
|
175
175
|
};
|
|
176
176
|
}
|
|
177
177
|
function isReactHookCallWithNameLoose(node) {
|
|
178
|
-
if (node == null) return
|
|
178
|
+
if (node == null) return constFalse;
|
|
179
179
|
return (name) => {
|
|
180
180
|
switch (node.callee.type) {
|
|
181
181
|
case AST_NODE_TYPES.Identifier:
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@eslint-react/core",
|
|
3
|
-
"version": "1.
|
|
3
|
+
"version": "1.26.0-beta.4",
|
|
4
4
|
"description": "ESLint React's ESLint utility module for static analysis of React core APIs and Patterns.",
|
|
5
5
|
"homepage": "https://github.com/Rel1cx/eslint-react",
|
|
6
6
|
"bugs": {
|
|
@@ -33,17 +33,17 @@
|
|
|
33
33
|
"./package.json"
|
|
34
34
|
],
|
|
35
35
|
"dependencies": {
|
|
36
|
-
"@typescript-eslint/scope-manager": "^8.
|
|
37
|
-
"@typescript-eslint/type-utils": "^8.
|
|
38
|
-
"@typescript-eslint/types": "^8.
|
|
39
|
-
"@typescript-eslint/utils": "^8.
|
|
36
|
+
"@typescript-eslint/scope-manager": "^8.22.0",
|
|
37
|
+
"@typescript-eslint/type-utils": "^8.22.0",
|
|
38
|
+
"@typescript-eslint/types": "^8.22.0",
|
|
39
|
+
"@typescript-eslint/utils": "^8.22.0",
|
|
40
40
|
"birecord": "^0.1.1",
|
|
41
41
|
"ts-pattern": "^5.6.2",
|
|
42
|
-
"@eslint-react/ast": "1.
|
|
43
|
-
"@eslint-react/eff": "1.
|
|
44
|
-
"@eslint-react/jsx": "1.
|
|
45
|
-
"@eslint-react/
|
|
46
|
-
"@eslint-react/
|
|
42
|
+
"@eslint-react/ast": "1.26.0-beta.4",
|
|
43
|
+
"@eslint-react/eff": "1.26.0-beta.4",
|
|
44
|
+
"@eslint-react/jsx": "1.26.0-beta.4",
|
|
45
|
+
"@eslint-react/shared": "1.26.0-beta.4",
|
|
46
|
+
"@eslint-react/var": "1.26.0-beta.4"
|
|
47
47
|
},
|
|
48
48
|
"devDependencies": {
|
|
49
49
|
"tsup": "^8.3.6",
|