UNPKG

stylelint

Version:

A mighty CSS linter that helps you avoid errors and enforce conventions.

12 lines (10 loc) 244 B
/** * @param {import('stylelint').RuleContext} context * @returns {import('css-tree').Lexer} */ export default function getLexer(context) { if (!context?.lexer) { throw new Error('Expected a "lexer" object'); } return context.lexer; }