UNPKG

stylelint

Version:

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

10 lines (9 loc) 246 B
/** * Check whether a function is custom / user-defined * https://github.com/w3c/css-houdini-drafts/issues/1007 * @param {string} func * @returns {boolean} */ export default function isCustomFunction(func) { return func.startsWith('--'); }