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.

checkSyntax.js 1.1KB

123456789101112131415161718192021222324252627282930313233343536373839404142
  1. "use strict";
  2. Object.defineProperty(exports, "__esModule", {
  3. value: true
  4. });
  5. exports.default = void 0;
  6. var _iterateJsdoc = _interopRequireDefault(require("../iterateJsdoc"));
  7. function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
  8. var _default = (0, _iterateJsdoc.default)(({
  9. jsdoc,
  10. report,
  11. settings
  12. }) => {
  13. const {
  14. mode
  15. } = settings; // Don't check for "permissive" and "closure"
  16. if (mode === 'jsdoc' || mode === 'typescript') {
  17. for (const tag of jsdoc.tags) {
  18. if (tag.type.slice(-1) === '=') {
  19. report('Syntax should not be Google Closure Compiler style.', null, tag);
  20. break;
  21. }
  22. }
  23. }
  24. }, {
  25. iterateAllJsdocs: true,
  26. meta: {
  27. docs: {
  28. description: 'Reports against syntax not valid for the mode (e.g., Google Closure Compiler in non-Closure mode).',
  29. url: 'https://github.com/gajus/eslint-plugin-jsdoc#eslint-plugin-jsdoc-rules-check-syntax'
  30. },
  31. type: 'suggestion'
  32. }
  33. });
  34. exports.default = _default;
  35. module.exports = exports.default;
  36. //# sourceMappingURL=checkSyntax.js.map