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.

requirePropertyName.js 976B

12345678910111213141516171819202122232425262728293031323334
  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. report,
  10. utils
  11. }) => {
  12. utils.forEachPreferredTag('property', (jsdoc, targetTagName) => {
  13. if (jsdoc.tag && jsdoc.name === '') {
  14. report(`There must be an identifier after @${targetTagName} ${jsdoc.type === '' ? 'type' : 'tag'}.`, null, jsdoc);
  15. }
  16. });
  17. }, {
  18. iterateAllJsdocs: true,
  19. meta: {
  20. docs: {
  21. description: 'Requires that all function `@property` tags have names.',
  22. url: 'https://github.com/gajus/eslint-plugin-jsdoc#eslint-plugin-jsdoc-rules-require-property-name'
  23. },
  24. type: 'suggestion'
  25. }
  26. });
  27. exports.default = _default;
  28. module.exports = exports.default;
  29. //# sourceMappingURL=requirePropertyName.js.map