UNPKG
stylelint-order
Version:
latest (8.1.3)
8.1.3
8.1.2
8.1.1
8.1.0
8.0.0
7.0.1
7.0.0
6.0.4
6.0.3
6.0.2
6.0.1
6.0.0
5.0.0
4.1.0
4.0.0
3.1.1
3.1.0
3.0.1
3.0.0
2.2.1
2.2.0
2.1.0
2.0.0
1.0.0
0.8.1
0.8.0
0.7.0
0.6.0
0.5.0
0.4.4
0.4.3
0.4.2
0.4.1
0.4.0
0.3.0
0.2.2
0.2.1
0.2.0
0.1.0
A collection of order related linting rules for Stylelint.
stylelint-order
/
utils
/
isCustomProperty.js
11 lines
(9 loc)
•
223 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 */
export
function
isCustomProperty
(
property
) {
return
property.
startsWith
(
'--'
); }