github gajus/eslint-plugin-jsdoc v25.0.0

latest releases: v48.2.3, v48.2.2, v48.2.1...
3 years ago

25.0.0 (2020-05-09)

Bug Fixes

  • require-param: allow checking for [@arg](https://github.com/arg) jsdoc param names if preferred (35088cb)

Features

  • check-param-names: checkRestProperty (and docs/tests) (7ce31e0)
  • check-param-names, require-param: check (and for require-param, fix) destructured objects and arrays, including the root. (a516865)
  • check-param-names, require-param: check (and for require-param, fix) destructured objects and arrays, including the root. (d906d1b)
  • require-param, check-param-names: checkTypesPattern (with docs, tests, and schema) (06add2f)

BREAKING CHANGES

  • check-param-names, require-param: Completes work on destructuring (prevents adding ...any for rest properties).

Works with renamed parameters and defaults and has special handling for rest elements/properties and type annotations.

For require-param: Adds options unnamedRootBase, autoIncrementBase, checkRestProperty, enableFixer, enableRootFixer, enableRestElementFixer, checkTypesPattern

For check-param-names: Add options checkRestProperty and checkTypesPattern

Also ensures indent is relative to applicable node, not whole source code; fix indents in tests

For testing, add output and cover more cases.

Don't miss a new eslint-plugin-jsdoc release

NewReleases is sending notifications on new releases.