@atlaskit/eslint-plugin-design-system
Version:
The essential plugin for use with the Atlassian Design System.
7 lines (6 loc) • 309 B
TypeScript
import type { Rule, Scope } from 'eslint';
import { type JSXOpeningElement } from 'eslint-codemod-utils';
/**
* Given a component name finds its JSX usage
*/
export declare const getJsxElementByName: (componentName: string, scope: Scope.Scope) => (JSXOpeningElement & Rule.NodeParentExtension) | undefined;