You're Invited:Meet the Socket Team at RSAC and BSidesSF 2026, March 23–26.RSVP
Socket
Book a DemoSign in
Socket

@eslint-react/core

Package Overview
Dependencies
Maintainers
1
Versions
2385
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@eslint-react/core - npm Package Compare versions

Comparing version
3.0.0-beta.77
to
3.0.0-beta.78
+14
-14
dist/index.d.ts

@@ -22,3 +22,3 @@ import * as ast from "@eslint-react/ast";

* @param initialScope The initial scope
* @param importSource Alternative import source of React (e.g., "preact/compat")
* @param importSource Alternative import source of React (ex: "preact/compat")
* @returns True if the variable is initialized or derived from React import

@@ -33,3 +33,3 @@ */

* @param initialScope The initial scope
* @param importSource Alternative import source of React Native (e.g., "react-native-web")
* @param importSource Alternative import source of React Native (ex: "react-native-web")
* @returns True if the variable is initialized from React Native import

@@ -48,3 +48,3 @@ */

* Check if the node is a React API identifier or member expression
* @param api The React API name to check against (e.g., "useState", "React.memo")
* @param api The React API name to check against (ex: "useState", "React.memo")
* @returns A predicate function to check if a node matches the API

@@ -170,3 +170,3 @@ */

body: TSESTree.BlockStatement | TSESTree.Expression;
/** The directives of the function (e.g., "use strict", "use client", "use server", etc.) */
/** The directives of the function (ex: "use strict", "use client", "use server", etc.) */
directives: ast.TSESTreeDirective[];

@@ -229,3 +229,3 @@ /** The parameters of the function */

/**
* The directives used in the function (e.g., "use strict", "use client", etc.)
* The directives used in the function (ex: "use strict", "use client", etc.)
*/

@@ -402,6 +402,6 @@ directives: ast.TSESTreeDirective[];

declare const ComponentFlag: {
/** Indicates the component creates elements using `createElement` instead of JSX */CreateElement: bigint; /** Indicates the component forwards a ref (e.g., React.forwardRef) */
ForwardRef: bigint; /** Indicates the component is memoized (e.g., React.memo) */
/** Indicates the component creates elements using `createElement` instead of JSX */CreateElement: bigint; /** Indicates the component forwards a ref (ex: React.forwardRef) */
ForwardRef: bigint; /** Indicates the component is memoized (ex: React.memo) */
Memo: bigint; /** No flags set */
None: bigint; /** Indicates the component is a pure component (e.g., extends PureComponent) */
None: bigint; /** Indicates the component is a pure component (ex: extends PureComponent) */
PureComponent: bigint;

@@ -531,3 +531,3 @@ };

hookCalls: TSESTree.CallExpression[];
/** The directives used in the function (e.g., "use strict", "use client", etc.) */
/** The directives used in the function (ex: "use strict", "use client", etc.) */
directives: TSESTree.StringLiteral[];

@@ -795,3 +795,3 @@ }

* @param node The JSX element to search for the attribute.
* @param name The name of the attribute to find (e.g. `"className"`).
* @param name The name of the attribute to find (ex: `"className"`).
*/

@@ -801,3 +801,3 @@ findAttribute(node: TSESTree.JSXElement, name: string): ast.TSESTreeJSXAttributeLike | undefined;

* Get the stringified name of a `JSXAttribute` node
* (e.g. `"className"`, `"aria-label"`, `"xml:space"`).
* (ex: `"className"`, `"aria-label"`, `"xml:space"`).
* @param node The `JSXAttribute` node to extract the name from.

@@ -820,3 +820,3 @@ * @returns The stringified name of the attribute.

* @param node The JSX element to search for the attribute.
* @param name The name of the attribute to resolve (e.g. `"className"`).
* @param name The name of the attribute to resolve (ex: `"className"`).
* @returns The static value of the attribute, or `undefined` if not found or not statically resolvable.

@@ -831,3 +831,3 @@ */

* @param node The JSX element to search for the attribute.
* @param name The name of the attribute to find and resolve (e.g. `"className"`).
* @param name The name of the attribute to find and resolve (ex: `"className"`).
* @returns A descriptor of the attribute's value that can be further inspected, or `undefined` if the attribute is not found.

@@ -858,3 +858,3 @@ */

* @param node The JSX element to check for the attribute.
* @param name The name of the attribute to check for (e.g. `"className"`).
* @param name The name of the attribute to check for (ex: `"className"`).
* @returns `true` if the attribute exists on the element, `false` otherwise.

@@ -861,0 +861,0 @@ */

@@ -216,3 +216,3 @@ import * as ast from "@eslint-react/ast";

* @param initialScope The initial scope
* @param importSource Alternative import source of React (e.g., "preact/compat")
* @param importSource Alternative import source of React (ex: "preact/compat")
* @returns True if the variable is initialized or derived from React import

@@ -230,3 +230,3 @@ */

* @param initialScope The initial scope
* @param importSource Alternative import source of React Native (e.g., "react-native-web")
* @param importSource Alternative import source of React Native (ex: "react-native-web")
* @returns True if the variable is initialized from React Native import

@@ -246,3 +246,3 @@ */

* Check if the node is a React API identifier or member expression
* @param api The React API name to check against (e.g., "useState", "React.memo")
* @param api The React API name to check against (ex: "useState", "React.memo")
* @returns A predicate function to check if a node matches the API

@@ -759,3 +759,3 @@ */

* @param node The JSX element to search for the attribute.
* @param name The name of the attribute to find (e.g. `"className"`).
* @param name The name of the attribute to find (ex: `"className"`).
*/

@@ -778,3 +778,3 @@ findAttribute(node, name) {

* Get the stringified name of a `JSXAttribute` node
* (e.g. `"className"`, `"aria-label"`, `"xml:space"`).
* (ex: `"className"`, `"aria-label"`, `"xml:space"`).
* @param node The `JSXAttribute` node to extract the name from.

@@ -799,3 +799,3 @@ * @returns The stringified name of the attribute.

* @param node The JSX element to search for the attribute.
* @param name The name of the attribute to resolve (e.g. `"className"`).
* @param name The name of the attribute to resolve (ex: `"className"`).
* @returns The static value of the attribute, or `undefined` if not found or not statically resolvable.

@@ -816,3 +816,3 @@ */

* @param node The JSX element to search for the attribute.
* @param name The name of the attribute to find and resolve (e.g. `"className"`).
* @param name The name of the attribute to find and resolve (ex: `"className"`).
* @returns A descriptor of the attribute's value that can be further inspected, or `undefined` if the attribute is not found.

@@ -852,3 +852,3 @@ */

* @param node The JSX element to check for the attribute.
* @param name The name of the attribute to check for (e.g. `"className"`).
* @param name The name of the attribute to check for (ex: `"className"`).
* @returns `true` if the attribute exists on the element, `false` otherwise.

@@ -855,0 +855,0 @@ */

{
"name": "@eslint-react/core",
"version": "3.0.0-beta.77",
"version": "3.0.0-beta.78",
"description": "ESLint React's ESLint utility module for static analysis of React core APIs and patterns.",

@@ -37,8 +37,8 @@ "homepage": "https://github.com/Rel1cx/eslint-react",

"ts-pattern": "^5.9.0",
"@eslint-react/ast": "3.0.0-beta.77",
"@eslint-react/shared": "3.0.0-beta.77",
"@eslint-react/var": "3.0.0-beta.77"
"@eslint-react/ast": "3.0.0-beta.78",
"@eslint-react/shared": "3.0.0-beta.78",
"@eslint-react/var": "3.0.0-beta.78"
},
"devDependencies": {
"tsdown": "^0.21.0-beta.2",
"tsdown": "^0.21.0",
"@local/configs": "0.0.0",

@@ -45,0 +45,0 @@ "@local/eff": "3.0.0-beta.72"