eslint-plugin-perfectionist
Version:
ESLint plugin for sorting various data such as objects, imports, types, enums, JSX props, etc.
11 lines (10 loc) • 334 B
TypeScript
import { TSESTree } from '@typescript-eslint/types'
/**
* Checks if a node represents a style component.
*
* @param node - The AST node to check.
* @returns True if the node is a style component, false otherwise.
*/
export declare function isStyleComponent(
node: TSESTree.ObjectExpression | TSESTree.ObjectPattern,
): boolean