mirror of
https://github.com/thangisme/notes.git
synced 2025-09-24 07:14:22 -04:00
Initial commit
This commit is contained in:
25
node_modules/stylelint/lib/utils/isStandardSyntaxProperty.js
generated
vendored
Normal file
25
node_modules/stylelint/lib/utils/isStandardSyntaxProperty.js
generated
vendored
Normal file
@@ -0,0 +1,25 @@
|
||||
/* @flow */
|
||||
"use strict"
|
||||
|
||||
const hasInterpolation = require("../utils/hasInterpolation")
|
||||
/**
|
||||
* Check whether a property is standard
|
||||
*/
|
||||
module.exports = function (property/*: string*/)/*: boolean*/ {
|
||||
// SCSS var (e.g. $var: x), list (e.g. $list: (x)) or map (e.g. $map: (key:value))
|
||||
if (property[0] === "$") {
|
||||
return false
|
||||
}
|
||||
|
||||
// Less var (e.g. @var: x)
|
||||
if (property[0] === "@") {
|
||||
return false
|
||||
}
|
||||
|
||||
// SCSS or Less interpolation
|
||||
if (hasInterpolation(property)) {
|
||||
return false
|
||||
}
|
||||
|
||||
return true
|
||||
}
|
Reference in New Issue
Block a user