Open
Description
Suggestion
Right now, if a rule is created through util.createRule
with defaultOptions
, the create
function's second parameter is an array whose first element is still Options | undefined
. That means folks have to !
. For example, in #5327:
typescript-eslint/packages/eslint-plugin/src/rules/lines-around-comment.ts
Lines 136 to 137 in 7f2661f
Unless I've grossly misinterpreted the rule options, those !
should be unnecessary, right?
Edit: here's a TypeScript playground with an isolated repro.