When settings.jsdoc.preferredTypes is configured in a way that [] array notation is preferred over the Array<> notation and the array contains a union type the auto-fix result type is incorrect.
given: Array<number|undefined> (array of "number or undefined")
yields: number|undefined[] ("number" or "array of undefined")
expected: (number|undefined)[]
Settings:
settings: {
jsdoc: {
preferredTypes: {
'Array<>': '[]',
'Array.<>': '[]',
}
}
}