@hero-design/snowflake-guard
Version:
A hero-design bot detecting snowflake usage
26 lines (25 loc) • 796 B
TypeScript
import * as recast from 'recast';
import { AdditionalProp, InlineStyleProps } from './reportInlineStyle';
import type { ComponentName, CompoundComponentName } from './types';
declare const reportCustomProperties: (ast: recast.types.ASTNode, componentList: {
[k: string]: ComponentName;
}, commentList: {
classNameCmts: number[];
styleCmts: {
loc: number;
comment: string;
}[];
}) => {
className: number[];
style: number[];
sx: number[];
violatingAttributes: {
attributeName: string;
attributeValue: string | null;
inlineStyleProps: InlineStyleProps;
componentName: CompoundComponentName;
loc: number | undefined;
additionalProps?: AdditionalProp[];
}[];
};
export default reportCustomProperties;