hatch-surf/node_modules/eslint-plugin-react/lib/util/componentUtil.d.ts
Riley Zhang df378d33ef
Some checks failed
CI / go (push) Waiting to run
CI / docker (push) Waiting to run
CI / lint-go (push) Waiting to run
CI / lint-docs (push) Waiting to run
CI / check-paperclip (push) Waiting to run
Deploy static site / Deploy to GitHub Pages (push) Has been cancelled
Deploy static site / Deploy via Docker to hatch.surf (push) Has been cancelled
Merge GitHub main into Gitea repo (allow unrelated histories)
Resolved conflicts by taking GitHub versions for:
- .dockerignore, .gitignore, Dockerfile, README.md, docker-compose.yml

Kept deploy.sh updated to:
- Pull from GitHub (primary source)
- Push to Gitea (push-mirror)
- Build from site/ directory (GitHub structure)

Co-Authored-By: Paperclip <noreply@paperclip.ing>
2026-06-25 05:20:46 +02:00

46 lines
1.4 KiB
TypeScript

/**
* @param {ASTNode} node
* @param {Context} context
* @returns {boolean}
*/
export function isES5Component(node: ASTNode, context: Context): boolean;
/**
* @param {ASTNode} node
* @param {Context} context
* @returns {boolean}
*/
export function isES6Component(node: ASTNode, context: Context): boolean;
/**
* Get the parent ES5 component node from the current scope
* @param {Context} context
* @param {ASTNode} node
* @returns {ASTNode|null}
*/
export function getParentES5Component(context: Context, node: ASTNode): ASTNode | null;
/**
* Get the parent ES6 component node from the current scope
* @param {Context} context
* @param {ASTNode} node
* @returns {ASTNode | null}
*/
export function getParentES6Component(context: Context, node: ASTNode): ASTNode | null;
/**
* Check if the node is explicitly declared as a descendant of a React Component
* @param {any} node
* @param {Context} context
* @returns {boolean}
*/
export function isExplicitComponent(node: any, context: Context): boolean;
/**
* Checks if a component extends React.PureComponent
* @param {ASTNode} node
* @param {Context} context
* @returns {boolean}
*/
export function isPureComponent(node: ASTNode, context: Context): boolean;
/**
* @param {ASTNode} node
* @returns {boolean}
*/
export function isStateMemberExpression(node: ASTNode): boolean;
//# sourceMappingURL=componentUtil.d.ts.map