mirror of
https://github.com/thangisme/notes.git
synced 2025-11-23 13:12:25 -05:00
Initial commit
This commit is contained in:
34
node_modules/stylelint-scss/dist/utils/isStandardRule.js
generated
vendored
Normal file
34
node_modules/stylelint-scss/dist/utils/isStandardRule.js
generated
vendored
Normal file
@@ -0,0 +1,34 @@
|
||||
"use strict";
|
||||
|
||||
Object.defineProperty(exports, "__esModule", {
|
||||
value: true
|
||||
});
|
||||
|
||||
exports.default = function (rule) {
|
||||
|
||||
// Get full selector
|
||||
var selector = _lodash2.default.get(rule, "raws.selector.raw", rule.selector);
|
||||
|
||||
// Custom property set (e.g. --custom-property-set: {})
|
||||
if (_lodash2.default.endsWith(selector, ":")) {
|
||||
return false;
|
||||
}
|
||||
|
||||
// Called Less mixin (e.g. a { .mixin() })
|
||||
if (rule.ruleWithoutBody) {
|
||||
return false;
|
||||
}
|
||||
|
||||
// Non-outputting Less mixin definition (e.g. .mixin() {})
|
||||
if (_lodash2.default.endsWith(selector, ")") && !_lodash2.default.includes(selector, ":")) {
|
||||
return false;
|
||||
}
|
||||
|
||||
return true;
|
||||
};
|
||||
|
||||
var _lodash = require("lodash");
|
||||
|
||||
var _lodash2 = _interopRequireDefault(_lodash);
|
||||
|
||||
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
|
||||
Reference in New Issue
Block a user