UNPKG

stylelint

Version:

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

26 lines (20 loc) 597 B
// NOTICE: This file is generated by Rollup. To modify it, // please instead edit the ESM counterpart and rebuild with Rollup (npm run build). 'use strict'; const keywords = require('../reference/keywords.cjs'); /** * Check value is a custom ident * * @param {string} value */ function isCounterIncrementCustomIdentValue(value) { const valueLowerCase = value.toLowerCase(); if ( keywords.counterIncrementKeywords.has(valueLowerCase) || Number.isFinite(Number.parseInt(valueLowerCase, 10)) ) { return false; } return true; } module.exports = isCounterIncrementCustomIdentValue;