1
0
mirror of https://github.com/thangisme/notes.git synced 2024-06-12 09:00:55 +00:00
notes/node_modules/stylelint/lib/utils/isCounterIncrementCustomIdentValue.js
Patrick Marsceill b7b0d0d7bf
Initial commit
2017-03-09 13:16:08 -05:00

20 lines
404 B
JavaScript

/* @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
}