UNPKG
@udyux/stylelint-order
Version:
latest (4.0.2)
4.0.2
4.0.1
3.1.1
2.1.1
[fork] A collection of order related linting rules for stylelint.
udyux/stylelint-order
@udyux/stylelint-order
/
utils
/
isCustomProperty.js
11 lines
(9 loc)
•
234 B
JavaScript
View Raw
1
2
3
4
5
6
7
8
9
10
11
/** * Check whether a property is a custom one * *
@param
{string} property *
@return
{boolean} If `true`, property is a custom one */
module
.
exports
= function
isCustomProperty
(property)
{
return
property.startsWith(
'--'
); };