v25.0.0
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.