stylelint
Version:
A mighty CSS linter that helps you avoid errors and enforce conventions.
16 lines (12 loc) • 407 B
JavaScript
// NOTICE: This file is generated by Rollup. To modify it,
// please instead edit the ESM counterpart and rebuild with Rollup (npm run build).
;
const isValidHex = require('./isValidHex.cjs');
/**
* @param {import('postcss-value-parser').Node} node
* @returns {boolean}
*/
function isHexColor({ type, value }) {
return type === 'word' && isValidHex(value);
}
module.exports = isHexColor;