Skip to content

Commit 491e4c4

Browse files
committed
context.options[0] is always present
1 parent 283dfc4 commit 491e4c4

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/rules/no-empty-definitions.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -88,9 +88,9 @@ export default {
8888
},
8989

9090
create(context) {
91-
const allowDefinitions = new Set(context.options[0]?.allowDefinitions);
91+
const allowDefinitions = new Set(context.options[0].allowDefinitions);
9292
const allowFootnoteDefinitions = new Set(
93-
context.options[0]?.allowFootnoteDefinitions,
93+
context.options[0].allowFootnoteDefinitions,
9494
);
9595
const [{ checkFootnoteDefinitions }] = context.options;
9696

0 commit comments

Comments
 (0)