eslint-plugin-react-hooks-extra 1.25.0 → 1.26.0-beta.3
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 +11 -11
package/dist/index.js
CHANGED
|
@@ -31,9 +31,9 @@ var VAR5__namespace = /*#__PURE__*/_interopNamespace(VAR5);
|
|
|
31
31
|
|
|
32
32
|
// package.json
|
|
33
33
|
var name = "eslint-plugin-react-hooks-extra";
|
|
34
|
-
var version = "1.
|
|
34
|
+
var version = "1.26.0-beta.3";
|
|
35
35
|
var createRule = shared.createRuleForPlugin("hooks-extra");
|
|
36
|
-
function isFromHookCall(name2, context, settings, predicate = eff.
|
|
36
|
+
function isFromHookCall(name2, context, settings, predicate = eff.constTrue) {
|
|
37
37
|
const hookAlias = settings.additionalHooks[name2] ?? [];
|
|
38
38
|
return (topLevelId) => {
|
|
39
39
|
const variable = VAR5__namespace.findVariable(topLevelId, context.sourceCode.getScope(topLevelId));
|
package/dist/index.mjs
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import * as AST from '@eslint-react/ast';
|
|
2
2
|
import { isReactHookCallWithNameAlias, isReactHookCall, isUseCallbackCall, isReactHookCallWithNameLoose, isUseMemoCall, useHookCollector, isUseStateCall, isReactHookName } from '@eslint-react/core';
|
|
3
|
-
import { getOrUpdate, _, identity,
|
|
3
|
+
import { getOrUpdate, _, identity, constTrue } from '@eslint-react/eff';
|
|
4
4
|
import { createRuleForPlugin, getSettingsFromContext } from '@eslint-react/shared';
|
|
5
5
|
import * as VAR5 from '@eslint-react/var';
|
|
6
6
|
import { AST_NODE_TYPES } from '@typescript-eslint/types';
|
|
@@ -8,9 +8,9 @@ import { match } from 'ts-pattern';
|
|
|
8
8
|
|
|
9
9
|
// package.json
|
|
10
10
|
var name = "eslint-plugin-react-hooks-extra";
|
|
11
|
-
var version = "1.
|
|
11
|
+
var version = "1.26.0-beta.3";
|
|
12
12
|
var createRule = createRuleForPlugin("hooks-extra");
|
|
13
|
-
function isFromHookCall(name2, context, settings, predicate =
|
|
13
|
+
function isFromHookCall(name2, context, settings, predicate = constTrue) {
|
|
14
14
|
const hookAlias = settings.additionalHooks[name2] ?? [];
|
|
15
15
|
return (topLevelId) => {
|
|
16
16
|
const variable = VAR5.findVariable(topLevelId, context.sourceCode.getScope(topLevelId));
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "eslint-plugin-react-hooks-extra",
|
|
3
|
-
"version": "1.
|
|
3
|
+
"version": "1.26.0-beta.3",
|
|
4
4
|
"description": "ESLint React's ESLint plugin for React Hooks related rules.",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"react",
|
|
@@ -42,18 +42,18 @@
|
|
|
42
42
|
"./package.json"
|
|
43
43
|
],
|
|
44
44
|
"dependencies": {
|
|
45
|
-
"@typescript-eslint/scope-manager": "^8.
|
|
46
|
-
"@typescript-eslint/type-utils": "^8.
|
|
47
|
-
"@typescript-eslint/types": "^8.
|
|
48
|
-
"@typescript-eslint/utils": "^8.
|
|
45
|
+
"@typescript-eslint/scope-manager": "^8.22.0",
|
|
46
|
+
"@typescript-eslint/type-utils": "^8.22.0",
|
|
47
|
+
"@typescript-eslint/types": "^8.22.0",
|
|
48
|
+
"@typescript-eslint/utils": "^8.22.0",
|
|
49
49
|
"string-ts": "^2.2.0",
|
|
50
50
|
"ts-pattern": "^5.6.2",
|
|
51
|
-
"@eslint-react/
|
|
52
|
-
"@eslint-react/
|
|
53
|
-
"@eslint-react/
|
|
54
|
-
"@eslint-react/
|
|
55
|
-
"@eslint-react/
|
|
56
|
-
"@eslint-react/var": "1.
|
|
51
|
+
"@eslint-react/ast": "1.26.0-beta.3",
|
|
52
|
+
"@eslint-react/core": "1.26.0-beta.3",
|
|
53
|
+
"@eslint-react/eff": "1.26.0-beta.3",
|
|
54
|
+
"@eslint-react/shared": "1.26.0-beta.3",
|
|
55
|
+
"@eslint-react/jsx": "1.26.0-beta.3",
|
|
56
|
+
"@eslint-react/var": "1.26.0-beta.3"
|
|
57
57
|
},
|
|
58
58
|
"devDependencies": {
|
|
59
59
|
"@types/react": "^19.0.8",
|