@eslint-react/core 1.33.0 → 1.34.0-beta.1
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.d.mts +15 -16
- package/dist/index.d.ts +15 -16
- package/package.json +6 -6
package/dist/index.d.mts
CHANGED
|
@@ -4,7 +4,6 @@ import { RuleContext } from '@eslint-react/shared';
|
|
|
4
4
|
import { TSESTree } from '@typescript-eslint/types';
|
|
5
5
|
import { ESLintUtils, TSESTree as TSESTree$1 } from '@typescript-eslint/utils';
|
|
6
6
|
import * as birecord from 'birecord';
|
|
7
|
-
import * as _typescript_eslint_utils_ts_eslint from '@typescript-eslint/utils/ts-eslint';
|
|
8
7
|
import { Scope } from '@typescript-eslint/scope-manager';
|
|
9
8
|
|
|
10
9
|
type ERComponentHint = bigint;
|
|
@@ -297,21 +296,21 @@ declare function isReactHookCallWithName(context: RuleContext, node: TSESTree.Ca
|
|
|
297
296
|
declare function isReactHookCallWithNameLoose(node: TSESTree.CallExpression | _): (name: string) => boolean;
|
|
298
297
|
declare function isReactHookCallWithNameAlias(context: RuleContext, name: string, alias?: _ | string[]): (node: TSESTree.CallExpression) => boolean;
|
|
299
298
|
declare function isUseEffectCallLoose(node: TSESTree.Node | _): boolean;
|
|
300
|
-
declare const isUseCallbackCall: (context:
|
|
301
|
-
declare const isUseContextCall: (context:
|
|
302
|
-
declare const isUseDebugValueCall: (context:
|
|
303
|
-
declare const isUseDeferredValueCall: (context:
|
|
304
|
-
declare const isUseEffectCall: (context:
|
|
305
|
-
declare const isUseIdCall: (context:
|
|
306
|
-
declare const isUseImperativeHandleCall: (context:
|
|
307
|
-
declare const isUseInsertionEffectCall: (context:
|
|
308
|
-
declare const isUseLayoutEffectCall: (context:
|
|
309
|
-
declare const isUseMemoCall: (context:
|
|
310
|
-
declare const isUseReducerCall: (context:
|
|
311
|
-
declare const isUseRefCall: (context:
|
|
312
|
-
declare const isUseStateCall: (context:
|
|
313
|
-
declare const isUseSyncExternalStoreCall: (context:
|
|
314
|
-
declare const isUseTransitionCall: (context:
|
|
299
|
+
declare const isUseCallbackCall: (context: RuleContext, node: TSESTree.CallExpression | undefined) => boolean;
|
|
300
|
+
declare const isUseContextCall: (context: RuleContext, node: TSESTree.CallExpression | undefined) => boolean;
|
|
301
|
+
declare const isUseDebugValueCall: (context: RuleContext, node: TSESTree.CallExpression | undefined) => boolean;
|
|
302
|
+
declare const isUseDeferredValueCall: (context: RuleContext, node: TSESTree.CallExpression | undefined) => boolean;
|
|
303
|
+
declare const isUseEffectCall: (context: RuleContext, node: TSESTree.CallExpression | undefined) => boolean;
|
|
304
|
+
declare const isUseIdCall: (context: RuleContext, node: TSESTree.CallExpression | undefined) => boolean;
|
|
305
|
+
declare const isUseImperativeHandleCall: (context: RuleContext, node: TSESTree.CallExpression | undefined) => boolean;
|
|
306
|
+
declare const isUseInsertionEffectCall: (context: RuleContext, node: TSESTree.CallExpression | undefined) => boolean;
|
|
307
|
+
declare const isUseLayoutEffectCall: (context: RuleContext, node: TSESTree.CallExpression | undefined) => boolean;
|
|
308
|
+
declare const isUseMemoCall: (context: RuleContext, node: TSESTree.CallExpression | undefined) => boolean;
|
|
309
|
+
declare const isUseReducerCall: (context: RuleContext, node: TSESTree.CallExpression | undefined) => boolean;
|
|
310
|
+
declare const isUseRefCall: (context: RuleContext, node: TSESTree.CallExpression | undefined) => boolean;
|
|
311
|
+
declare const isUseStateCall: (context: RuleContext, node: TSESTree.CallExpression | undefined) => boolean;
|
|
312
|
+
declare const isUseSyncExternalStoreCall: (context: RuleContext, node: TSESTree.CallExpression | undefined) => boolean;
|
|
313
|
+
declare const isUseTransitionCall: (context: RuleContext, node: TSESTree.CallExpression | undefined) => boolean;
|
|
315
314
|
|
|
316
315
|
interface ERSemanticEntry {
|
|
317
316
|
node: TSESTree.Node;
|
package/dist/index.d.ts
CHANGED
|
@@ -4,7 +4,6 @@ import { RuleContext } from '@eslint-react/shared';
|
|
|
4
4
|
import { TSESTree } from '@typescript-eslint/types';
|
|
5
5
|
import { ESLintUtils, TSESTree as TSESTree$1 } from '@typescript-eslint/utils';
|
|
6
6
|
import * as birecord from 'birecord';
|
|
7
|
-
import * as _typescript_eslint_utils_ts_eslint from '@typescript-eslint/utils/ts-eslint';
|
|
8
7
|
import { Scope } from '@typescript-eslint/scope-manager';
|
|
9
8
|
|
|
10
9
|
type ERComponentHint = bigint;
|
|
@@ -297,21 +296,21 @@ declare function isReactHookCallWithName(context: RuleContext, node: TSESTree.Ca
|
|
|
297
296
|
declare function isReactHookCallWithNameLoose(node: TSESTree.CallExpression | _): (name: string) => boolean;
|
|
298
297
|
declare function isReactHookCallWithNameAlias(context: RuleContext, name: string, alias?: _ | string[]): (node: TSESTree.CallExpression) => boolean;
|
|
299
298
|
declare function isUseEffectCallLoose(node: TSESTree.Node | _): boolean;
|
|
300
|
-
declare const isUseCallbackCall: (context:
|
|
301
|
-
declare const isUseContextCall: (context:
|
|
302
|
-
declare const isUseDebugValueCall: (context:
|
|
303
|
-
declare const isUseDeferredValueCall: (context:
|
|
304
|
-
declare const isUseEffectCall: (context:
|
|
305
|
-
declare const isUseIdCall: (context:
|
|
306
|
-
declare const isUseImperativeHandleCall: (context:
|
|
307
|
-
declare const isUseInsertionEffectCall: (context:
|
|
308
|
-
declare const isUseLayoutEffectCall: (context:
|
|
309
|
-
declare const isUseMemoCall: (context:
|
|
310
|
-
declare const isUseReducerCall: (context:
|
|
311
|
-
declare const isUseRefCall: (context:
|
|
312
|
-
declare const isUseStateCall: (context:
|
|
313
|
-
declare const isUseSyncExternalStoreCall: (context:
|
|
314
|
-
declare const isUseTransitionCall: (context:
|
|
299
|
+
declare const isUseCallbackCall: (context: RuleContext, node: TSESTree.CallExpression | undefined) => boolean;
|
|
300
|
+
declare const isUseContextCall: (context: RuleContext, node: TSESTree.CallExpression | undefined) => boolean;
|
|
301
|
+
declare const isUseDebugValueCall: (context: RuleContext, node: TSESTree.CallExpression | undefined) => boolean;
|
|
302
|
+
declare const isUseDeferredValueCall: (context: RuleContext, node: TSESTree.CallExpression | undefined) => boolean;
|
|
303
|
+
declare const isUseEffectCall: (context: RuleContext, node: TSESTree.CallExpression | undefined) => boolean;
|
|
304
|
+
declare const isUseIdCall: (context: RuleContext, node: TSESTree.CallExpression | undefined) => boolean;
|
|
305
|
+
declare const isUseImperativeHandleCall: (context: RuleContext, node: TSESTree.CallExpression | undefined) => boolean;
|
|
306
|
+
declare const isUseInsertionEffectCall: (context: RuleContext, node: TSESTree.CallExpression | undefined) => boolean;
|
|
307
|
+
declare const isUseLayoutEffectCall: (context: RuleContext, node: TSESTree.CallExpression | undefined) => boolean;
|
|
308
|
+
declare const isUseMemoCall: (context: RuleContext, node: TSESTree.CallExpression | undefined) => boolean;
|
|
309
|
+
declare const isUseReducerCall: (context: RuleContext, node: TSESTree.CallExpression | undefined) => boolean;
|
|
310
|
+
declare const isUseRefCall: (context: RuleContext, node: TSESTree.CallExpression | undefined) => boolean;
|
|
311
|
+
declare const isUseStateCall: (context: RuleContext, node: TSESTree.CallExpression | undefined) => boolean;
|
|
312
|
+
declare const isUseSyncExternalStoreCall: (context: RuleContext, node: TSESTree.CallExpression | undefined) => boolean;
|
|
313
|
+
declare const isUseTransitionCall: (context: RuleContext, node: TSESTree.CallExpression | undefined) => boolean;
|
|
315
314
|
|
|
316
315
|
interface ERSemanticEntry {
|
|
317
316
|
node: TSESTree.Node;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@eslint-react/core",
|
|
3
|
-
"version": "1.
|
|
3
|
+
"version": "1.34.0-beta.1",
|
|
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": {
|
|
@@ -41,11 +41,11 @@
|
|
|
41
41
|
"@typescript-eslint/utils": "^8.26.1",
|
|
42
42
|
"birecord": "^0.1.1",
|
|
43
43
|
"ts-pattern": "^5.6.2",
|
|
44
|
-
"@eslint-react/ast": "1.
|
|
45
|
-
"@eslint-react/
|
|
46
|
-
"@eslint-react/
|
|
47
|
-
"@eslint-react/shared": "1.
|
|
48
|
-
"@eslint-react/var": "1.
|
|
44
|
+
"@eslint-react/ast": "1.34.0-beta.1",
|
|
45
|
+
"@eslint-react/jsx": "1.34.0-beta.1",
|
|
46
|
+
"@eslint-react/eff": "1.34.0-beta.1",
|
|
47
|
+
"@eslint-react/shared": "1.34.0-beta.1",
|
|
48
|
+
"@eslint-react/var": "1.34.0-beta.1"
|
|
49
49
|
},
|
|
50
50
|
"devDependencies": {
|
|
51
51
|
"tsup": "^8.4.0",
|