I'd like to use eslint to enforce the succinct syntax for optional function parameters.
I would like to use the short ? syntax in this case. That is:
// Expected syntax
function myFunct(optionalInput?: number): void {...}
// Undesired syntax
function myFunct(optionalInput: number | undefined): void {...}
Is there any way to enforce this with eslint?