UNPKG

@atlaskit/eslint-plugin-design-system

Version:

The essential plugin for use with the Atlassian Design System.

10 lines (9 loc) • 490 B
import type { Rule } from 'eslint'; /** * Inserts or updates `const iconSpacingStyles = cssMap({ spaceXXX: { padding: token('space.XXX') } })` * after the last import statement. * * If `iconSpacingStyles` already exists, adds the new key to the existing cssMap object. * If it doesn't exist, inserts a new declaration after the last import. */ export declare function upsertCssMapVariable(context: Rule.RuleContext, fixer: Rule.RuleFixer, paddingToken: string): Rule.Fix | undefined;