@atlaskit/eslint-plugin-design-system
Version:
The essential plugin for use with the Atlassian Design System.
18 lines (17 loc) • 399 B
TypeScript
import type { Rule } from 'eslint';
import { type EslintNode } from 'eslint-codemod-utils';
/**
* @example
* ```js
* `2 ${variable} 0`
*
* // results in [2, NaN, 0]
* ```
* ```js
* const variable = 4;
* `2 ${variable} 0`
*
* // results in [2, 4, 0]
* ```
*/
export declare const getValueFromTemplateLiteralRaw: (node: EslintNode, context: Rule.RuleContext) => string[] | string | null;