UNPKG

@hero-design/snowflake-guard

Version:

A hero-design bot detecting snowflake usage

42 lines (41 loc) 1.27 kB
import * as recast from 'recast'; import { InlineStyleProps, ViolatingAttribute } from './reportInlineStyle'; import type { CompoundMobileComponentName, MobileComponentName } from './types'; export declare const getNonApprovedInlineLocs: (reportedLocs: { style?: number; barStyle?: number; containerStyle?: number; textStyle?: number; }, violatingAttributes: ViolatingAttribute[], approvedCmts: { loc: number; comment: string; }[], elementLoc: number) => { reportedLocs: { style?: number; barStyle?: number; containerStyle?: number; textStyle?: number; }; noneApprovedAttributes: ViolatingAttribute[]; }; declare const reportCustomProperties: (ast: recast.types.ASTNode, componentList: { [k: string]: MobileComponentName; }, commentList: { styleCmts: { loc: number; comment: string; }[]; }) => { style: number[]; barStyle: number[]; containerStyle: number[]; textStyle: number[]; violatingAttributes: { attributeName: string; attributeValue: string | null; inlineStyleProps: InlineStyleProps; componentName: CompoundMobileComponentName; loc: number | undefined; }[]; }; export default reportCustomProperties;