Skip to content

Commit

Permalink
Fully support non-file usage
Browse files Browse the repository at this point in the history
  • Loading branch information
sindresorhus committed Aug 20, 2019
1 parent 6bce418 commit 6705aa6
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion rules/no-ignored-test-files.js
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ const create = context => {
const filename = context.getFilename();
const [overrides] = context.options;

if (filename === '<text>') {
if (filename === '<input>' || filename === '<text>') {
return {};
}

Expand Down
2 changes: 1 addition & 1 deletion rules/no-import-test-files.js
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ const create = context => {
const filename = context.getFilename();
const [overrides] = context.options;

if (filename === '<text>') {
if (filename === '<input>' || filename === '<text>') {
return {};
}

Expand Down

0 comments on commit 6705aa6

Please sign in to comment.