Software zum Installieren eines Smart-Mirror Frameworks , zum Nutzen von hochschulrelevanten Informationen, auf einem Raspberry-Pi.
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

isBlocklessAtRuleAfterSameNameBlocklessAtRule.js 547B

12345678910111213141516171819
  1. 'use strict';
  2. const _ = require('lodash');
  3. const getPreviousNonSharedLineCommentNode = require('./getPreviousNonSharedLineCommentNode');
  4. const isBlocklessAtRuleAfterBlocklessAtRule = require('./isBlocklessAtRuleAfterBlocklessAtRule');
  5. /**
  6. * @param {import('postcss').AtRule} atRule
  7. * @returns {boolean}
  8. */
  9. module.exports = function (atRule) {
  10. if (!isBlocklessAtRuleAfterBlocklessAtRule(atRule)) {
  11. return false;
  12. }
  13. const previousNode = getPreviousNonSharedLineCommentNode(atRule);
  14. return _.get(previousNode, 'name') === atRule.name;
  15. };