Skip to content

Commit 6705aa6

Browse files
committed
Fully support non-file usage
See sindresorhus/eslint-plugin-unicorn@5e7ac3e
1 parent 6bce418 commit 6705aa6

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

rules/no-ignored-test-files.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ const create = context => {
77
const filename = context.getFilename();
88
const [overrides] = context.options;
99

10-
if (filename === '<text>') {
10+
if (filename === '<input>' || filename === '<text>') {
1111
return {};
1212
}
1313

rules/no-import-test-files.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ const create = context => {
99
const filename = context.getFilename();
1010
const [overrides] = context.options;
1111

12-
if (filename === '<text>') {
12+
if (filename === '<input>' || filename === '<text>') {
1313
return {};
1414
}
1515

0 commit comments

Comments
 (0)