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.

isAfterStandardPropertyDeclaration.js 585B

1234567891011121314151617181920
  1. 'use strict';
  2. const _ = require('lodash');
  3. const getPreviousNonSharedLineCommentNode = require('./getPreviousNonSharedLineCommentNode');
  4. const isCustomProperty = require('./isCustomProperty');
  5. const isStandardSyntaxDeclaration = require('./isStandardSyntaxDeclaration');
  6. /**
  7. * @param {import('postcss').Node} node
  8. */
  9. module.exports = function (node) {
  10. const prevNode = getPreviousNonSharedLineCommentNode(node);
  11. return (
  12. prevNode !== undefined &&
  13. prevNode.type === 'decl' &&
  14. isStandardSyntaxDeclaration(prevNode) &&
  15. !isCustomProperty(_.get(prevNode, 'prop', ''))
  16. );
  17. };