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.

index.js 971B

12345678910111213141516171819202122232425262728293031323334353637383940
  1. // @ts-nocheck
  2. 'use strict';
  3. const atRuleNameSpaceChecker = require('../atRuleNameSpaceChecker');
  4. const ruleMessages = require('../../utils/ruleMessages');
  5. const validateOptions = require('../../utils/validateOptions');
  6. const whitespaceChecker = require('../../utils/whitespaceChecker');
  7. const ruleName = 'at-rule-name-newline-after';
  8. const messages = ruleMessages(ruleName, {
  9. expectedAfter: (name) => `Expected newline after at-rule name "${name}"`,
  10. });
  11. function rule(expectation) {
  12. const checker = whitespaceChecker('newline', expectation, messages);
  13. return (root, result) => {
  14. const validOptions = validateOptions(result, ruleName, {
  15. actual: expectation,
  16. possible: ['always', 'always-multi-line'],
  17. });
  18. if (!validOptions) {
  19. return;
  20. }
  21. atRuleNameSpaceChecker({
  22. root,
  23. result,
  24. locationChecker: checker.afterOneOnly,
  25. checkedRuleName: ruleName,
  26. });
  27. };
  28. }
  29. rule.ruleName = ruleName;
  30. rule.messages = messages;
  31. module.exports = rule;