Uh oh!
There was an error while loading.Please reload this page.
- Notifications
You must be signed in to change notification settings - Fork2.8k
Open
Labels
Description
Suggestion
Right now, if a rule is created throughutil.createRule
withdefaultOptions
, thecreate
function's second parameter is an array whose first element is stillOptions | 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 in7f2661f
create(context,[_options]){ | |
constoptions=_options!; |
Unless I've grossly misinterpreted the rule options, those!
should be unnecessary, right?