UNPKG

stylelint

Version:

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

10 lines (8 loc) 266 B
const IGNORED_FUNCTIONS = new Set(['url']); /** * @param {import('postcss-value-parser').Node} node * @returns {boolean} */ export default function isIgnoredFunction({ type, value }) { return type === 'function' && IGNORED_FUNCTIONS.has(value.toLowerCase()); }