Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat!: Update shouldUseFlatConfig and CLI so flat config is default #17748

Merged
merged 13 commits into from
Dec 20, 2023
Prev Previous commit
Next Next commit
Fix tests
  • Loading branch information
nzakas committed Dec 20, 2023
commit df69890cd458209d32090041c3317ab3f9a2a7ad
2 changes: 1 addition & 1 deletion tests/bin/eslint.js
Original file line number Diff line number Diff line change
Expand Up @@ -176,7 +176,7 @@ describe("bin/eslint.js", () => {
const stderrPromise = getOutput(child).then(output => {
assert.match(
output.stderr,
/ESLint couldn't find a configuration file/u
/Could not find config file/u
nzakas marked this conversation as resolved.
Show resolved Hide resolved
);
});

Expand Down
2 changes: 1 addition & 1 deletion tests/lib/eslint/flat-eslint.js
Original file line number Diff line number Diff line change
Expand Up @@ -6446,6 +6446,6 @@ describe("shouldUseFlatConfig", () => {
});

describe("when the env variable `ESLINT_USE_FLAT_CONFIG` is unset", () => {
testShouldUseFlatConfig(true, false);
testShouldUseFlatConfig(true, true);
});
});