Skip to content

Commit

Permalink
Update bin tests to search for eslint.config.js
Browse files Browse the repository at this point in the history
  • Loading branch information
nzakas committed Dec 20, 2023
1 parent 728b4bc commit 7b359b0
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions tests/bin/eslint.js
Original file line number Diff line number Diff line change
Expand Up @@ -160,10 +160,8 @@ describe("bin/eslint.js", () => {
"gives a detailed error message if no config file is found in /",
() => {
if (
fs.readdirSync("/").some(
fileName =>
/^\.eslintrc(?:\.(?:js|yaml|yml|json))?$/u
.test(fileName)
fs.readdirSync("/").includes(
"eslint.config.js"
)
) {
return Promise.resolve(true);
Expand Down

0 comments on commit 7b359b0

Please sign in to comment.