mirror of
https://gh.wpcy.net/https://github.com/djav1985/v-wordpress-plugin-updater.git
synced 2026-04-28 08:02:16 +08:00
15 lines
300 B
JavaScript
15 lines
300 B
JavaScript
/**
|
|
* @typedef {import('css-tree').Lexer} Lexer
|
|
*/
|
|
|
|
/**
|
|
* @param {import('stylelint').RuleContext} context
|
|
* @returns {Lexer}
|
|
*/
|
|
export default function getLexer(context) {
|
|
if (!context?.lexer) {
|
|
throw new Error('Expected a "lexer" object');
|
|
}
|
|
|
|
return /** @type Lexer */ (context.lexer);
|
|
}
|