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

Fix argument passed to lilconfig.search() #15363

Merged
merged 12 commits into from
Nov 15, 2023
Prev Previous commit
Next Next commit
Fix test
  • Loading branch information
fisker committed Nov 15, 2023
commit 59a9ea72cd344c62f8b3862fad1695454ae29efd
3 changes: 2 additions & 1 deletion src/cli/format.js
Original file line number Diff line number Diff line change
Expand Up @@ -248,6 +248,7 @@ async function formatStdin(context) {

try {
const input = await getStdin();
// TODO[@fisker]: Exit if no input.

let isFileIgnored = false;
if (filepath) {
Expand All @@ -262,7 +263,7 @@ async function formatStdin(context) {

const options = await getOptionsForFile(
context,
filepath ? path.resolve(process.cwd(), filepath) : process.cwd(),
path.resolve(process.cwd(), filepath ?? "<stdin>"),
);

if (await listDifferent(context, input, options, "(stdin)")) {
Expand Down
Loading