Skip to content

Commit e9a1c14

Browse files
committed
Permit using EventEmitter in tests
Testing against EventEmitter instances is common, often because it is the base class of several stream classes. Don't lint for it. Signed-off-by: Kevin Locke <[email protected]>
1 parent 501c5d3 commit e9a1c14

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

test/.eslintrc.json

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,9 @@
1010
"arrow-body-style": "off",
1111

1212
// Allow null use in tests
13-
"unicorn/no-null": "off"
13+
"unicorn/no-null": "off",
14+
15+
// Allow EventEmitter use in tests
16+
"unicorn/prefer-event-target": "off"
1417
}
1518
}

0 commit comments

Comments
 (0)