UNPKG

stylelint

Version:

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

10 lines (9 loc) 215 B
/** * Check whether a word is a variable i.e var(--custom-property). * * @param {string} word * @returns {boolean} */ export default function isVariable(word) { return word.toLowerCase().startsWith('var('); }