1
0
mirror of https://github.com/thangisme/notes.git synced 2024-11-01 05:27:15 -04:00
notes/node_modules/stylelint/lib/utils/isCounterIncrementCustomIdentValue.js

20 lines
404 B
JavaScript
Raw Normal View History

2017-03-09 13:16:08 -05:00
/* @flow */
"use strict"
const keywordSets = require("../reference/keywordSets")
const _ = require("lodash")
/**
* Check value is a custom ident
*/
module.exports = function (value/*: string*/)/*: boolean*/ {
const valueLowerCase = value.toLowerCase()
if (keywordSets.counterIncrementKeywords.has(valueLowerCase) || _.isFinite(parseInt(valueLowerCase))) {
return false
}
return true
}