UNPKG

eslint-plugin-perfectionist

Version:

ESLint plugin for sorting various data such as objects, imports, types, enums, JSX props, etc.

15 lines (14 loc) 545 B
import { TSESTree } from '@typescript-eslint/types' /** * Checks whether a node is the callee of a call or `new` expression. * * Used to treat immediately invoked function expressions as eagerly executed: * references inside their bodies are read as soon as the surrounding expression * is evaluated, unlike references inside deferred function bodies. * * @param node - The AST node to check. * @returns Whether the node is immediately called. */ export declare function isNodeImmediatelyCalled( node: TSESTree.Expression, ): boolean