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.

requireParamName.js 1.5KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859
  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('param', (jsdocParameter, targetTagName) => {
  13. if (jsdocParameter.tag && jsdocParameter.name === '') {
  14. report(`There must be an identifier after @${targetTagName} ${jsdocParameter.type === '' ? 'type' : 'tag'}.`, null, jsdocParameter);
  15. }
  16. });
  17. }, {
  18. contextDefaults: true,
  19. meta: {
  20. docs: {
  21. description: 'Requires that all function parameters have names.',
  22. url: 'https://github.com/gajus/eslint-plugin-jsdoc#eslint-plugin-jsdoc-rules-require-param-name'
  23. },
  24. schema: [{
  25. additionalProperties: false,
  26. properties: {
  27. contexts: {
  28. items: {
  29. anyOf: [{
  30. type: 'string'
  31. }, {
  32. additionalProperties: false,
  33. properties: {
  34. comment: {
  35. type: 'string'
  36. },
  37. context: {
  38. type: 'string'
  39. }
  40. },
  41. type: 'object'
  42. }]
  43. },
  44. type: 'array'
  45. }
  46. },
  47. type: 'object'
  48. }],
  49. type: 'suggestion'
  50. }
  51. });
  52. exports.default = _default;
  53. module.exports = exports.default;
  54. //# sourceMappingURL=requireParamName.js.map