mirror of
https://github.com/thangisme/notes.git
synced 2025-10-21 11:24:04 -04:00
Initial commit
This commit is contained in:
25
node_modules/stylelint-scss/dist/utils/isStandardSyntaxProperty.js
generated
vendored
Normal file
25
node_modules/stylelint-scss/dist/utils/isStandardSyntaxProperty.js
generated
vendored
Normal file
@@ -0,0 +1,25 @@
|
||||
"use strict";
|
||||
|
||||
Object.defineProperty(exports, "__esModule", {
|
||||
value: true
|
||||
});
|
||||
|
||||
exports.default = function (property) {
|
||||
|
||||
// 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 (/#{.+?}|@{.+?}|\$\(.+?\)/.test(property)) {
|
||||
return false;
|
||||
}
|
||||
|
||||
return true;
|
||||
};
|
Reference in New Issue
Block a user