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.

atRuleNameSpaceChecker.js 769B

12345678910111213141516171819202122232425262728293031323334353637383940414243
  1. // @ts-nocheck
  2. 'use strict';
  3. const isStandardSyntaxAtRule = require('../utils/isStandardSyntaxAtRule');
  4. const report = require('../utils/report');
  5. module.exports = function (options) {
  6. options.root.walkAtRules((atRule) => {
  7. if (!isStandardSyntaxAtRule(atRule)) {
  8. return;
  9. }
  10. checkColon(
  11. `@${atRule.name}${atRule.raws.afterName || ''}${atRule.params}`,
  12. atRule.name.length,
  13. atRule,
  14. );
  15. });
  16. function checkColon(source, index, node) {
  17. options.locationChecker({
  18. source,
  19. index,
  20. err: (m) => {
  21. if (options.fix) {
  22. options.fix(node);
  23. return;
  24. }
  25. report({
  26. message: m,
  27. node,
  28. index,
  29. result: options.result,
  30. ruleName: options.checkedRuleName,
  31. });
  32. },
  33. errTarget: `@${node.name}`,
  34. });
  35. }
  36. };