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.

implementsOnClasses.js 1.6KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667
  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. const iteratingFunction = utils.isIteratingFunction();
  13. if (iteratingFunction) {
  14. if (utils.hasATag(['class', 'constructor']) || utils.isConstructor()) {
  15. return;
  16. }
  17. } else if (!utils.isVirtualFunction()) {
  18. return;
  19. }
  20. utils.forEachPreferredTag('implements', tag => {
  21. report('@implements used on a non-constructor function', null, tag);
  22. });
  23. }, {
  24. contextDefaults: true,
  25. meta: {
  26. docs: {
  27. description: 'Reports an issue with any non-constructor function using `@implements`.',
  28. url: 'https://github.com/gajus/eslint-plugin-jsdoc#eslint-plugin-jsdoc-rules-implements-on-classes'
  29. },
  30. schema: [{
  31. additionalProperties: false,
  32. properties: {
  33. contexts: {
  34. items: {
  35. anyOf: [{
  36. type: 'string'
  37. }, {
  38. additionalProperties: false,
  39. properties: {
  40. comment: {
  41. type: 'string'
  42. },
  43. context: {
  44. type: 'string'
  45. }
  46. },
  47. type: 'object'
  48. }]
  49. },
  50. type: 'array'
  51. }
  52. },
  53. type: 'object'
  54. }],
  55. type: 'suggestion'
  56. }
  57. });
  58. exports.default = _default;
  59. module.exports = exports.default;
  60. //# sourceMappingURL=implementsOnClasses.js.map