Skip to content

v30.0.0

Compare
Choose a tag to compare
@gajus gajus released this 19 Jul 03:00
· 783 commits to main since this release

30.0.0 (2020-07-19)

Features

  • check-types, no-undefined-types, valid-types: Add structuredTags setting to control whether the type and namepath portions should be checked for validity and whether such portions are required, and to let user-defined "namepath-defining" tags be added to defined types. Closes #481 (89f2ad0)
  • valid-types: change allowEmptyNamepaths default to false, ensuring tags which expect names per docs will be reported (842381a)

BREAKING CHANGES

  • check-types, no-undefined-types, valid-types: Drops checkSeesForNamepaths setting. Use {settings: {jsdoc: {structuredTags: {name: 'namepath', type: false, required: ['name'],}}}} instead.

Also:

  1. Clarifies in more cases where a problem is specific to the mode or not
  2. Reports simultaneous invalid name and type errors
  3. typdef now requires allowEmptyNamepaths: false, to report empty names (as with other tags)
  4. Requires a name for event and external (and extends in jsdoc mode); some tweaking of other tags per docs