@atlaskit/eslint-plugin-design-system
Version:
The essential plugin for use with the Atlassian Design System.
17 lines (16 loc) • 818 B
TypeScript
import type { Rule } from 'eslint';
import { type TaggedTemplateExpression } from 'eslint-codemod-utils';
import type { ProcessedCSSLines } from './types';
/**
* Returns an array of tuples representing a processed css within `TaggedTemplateExpression` node.
* Each element of the array is a tuple `[string, string]`,
* where the first element is the processed css line with computed values
* and the second element of the tuple is the original css line from source.
* @param node TaggedTemplateExpression node.
* @param context Rule.RuleContext.
* @example
* ```
* `[['padding: 8', 'padding: ${gridSize()}'], ['margin: 6', 'margin: 6px' ]]`
* ```
*/
export declare function processCssNode(node: TaggedTemplateExpression & Rule.NodeParentExtension, context: Rule.RuleContext): ProcessedCSSLines | undefined;