@atlaskit/eslint-plugin-design-system
Version:
The essential plugin for use with the Atlassian Design System.
11 lines (10 loc) • 336 B
TypeScript
import type { SourceCode } from 'eslint';
/**
* Returns the module name of an identifier, if one exists.
*
* getModuleOfIdentifier(source, 'Button'); // "@atlaskit/button"
*/
export declare const getModuleOfIdentifier: (source: SourceCode, identifierName: string) => {
moduleName: string;
importName: string;
} | undefined;