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
Update tests/lib/cli.js
Co-authored-by: Milos Djermanovic <milos.djermanovic@gmail.com>
  • Loading branch information
nzakas and mdjermanovic committed Dec 20, 2023
commit 4fc794c45e676b1f46548834ab783a5905acc2c1
2 changes: 1 addition & 1 deletion tests/lib/cli.js
Original file line number Diff line number Diff line change
Expand Up @@ -329,7 +329,7 @@ describe("cli", () => {
describe("when given an invalid built-in formatter name", () => {
it(`should execute with error: with configType:${configType}`, async () => {
const filePath = getFixturePath("passing.js");
const exit = await cli.execute(`-f fakeformatter ${filePath} ${flag}`, null, configType === "flat");
const exit = await cli.execute(`-f fakeformatter ${filePath} ${flag}`, null, useFlatConfig);

assert.strictEqual(exit, 2);
});
Expand Down