{"size": 330, "ext": "js", "max_stars_repo_path": "src/rules/requireReturnsType.js", "max_stars_repo_name": "ahwayakchih/eslint-plugin-jsdoc", "max_stars_repo_stars_event_min_datetime": null, "max_stars_repo_stars_event_max_datetime": null, "max_issues_repo_path": "src/rules/requireReturnsType.js", "max_issues_repo_name": "ahwayakchih/eslint-plugin-jsdoc", "max_issues_repo_issues_event_min_datetime": null, "max_issues_repo_issues_event_max_datetime": null, "max_forks_repo_path": "src/rules/requireReturnsType.js", "max_forks_repo_name": "ahwayakchih/eslint-plugin-jsdoc", "max_forks_repo_forks_event_min_datetime": null, "max_forks_repo_forks_event_max_datetime": null}
{"max_stars_count": null, "max_issues_count": null, "max_forks_count": null, "avg_line_length": 19.4117647059, "max_line_length": 70, "alphanum_fraction": 0.6090909091}
import iterateJsdoc from '../iterateJsdoc';

export default iterateJsdoc(({
  report,
  utils,
}) => {
  utils.forEachPreferredTag('returns', (jsdocTag, targetTagName) => {
    if (!jsdocTag.type) {
      report(`Missing JSDoc @${targetTagName} type.`, null, jsdocTag);
    }
  });
}, {
  meta: {
    type: 'suggestion',
  },
});
