-
-
Notifications
You must be signed in to change notification settings - Fork 169
Closed
Description
Expected behavior
jsdoc/valid-types does not warn for {message: string|undefined}.
Actual behavior
index.js:2:0: Syntax error in type: {message: string|undefined} [Warning/jsdoc/valid-types]
ESLint Config
{
"extends": [
"plugin:jsdoc/recommended"
]
}ESLint sample
/**
* @param {{message: string|undefined}} options Options.
*/
function MyError(options) {
}Environment
- Node version: v12.21.0
- ESLint version v7.27.0
eslint-plugin-jsdocversion: v35.1.1 or v35.1.0
Additional Info
I confirmed the issue does not occur with eslint-plugin-jsdoc@35.0.0 or earlier.
Thanks again,
Kevin