-
Notifications
You must be signed in to change notification settings - Fork 48
Open
Labels
bugSomething isn't workingSomething isn't working
Description
Describe the bug
I run e.g. treefmt --stdin test.js < test.js, but no changes. Neither for json files. But file does change if I run treefmt test.js.
To Reproduce
Steps to reproduce the behavior:
I am using treefmt-nix, with this:
treefmt = {
programs = {
prettier.enable = true;
};
};const x = () => {
console.log( "zxc " );
};nix fmt -- --stdin test.js < test.js- Outputs the same content as went in, no changes.
- For reference,
nix fmt -- --stdin flake.nix < flake.nixdoes output changes (when needed) nix fmtresults in formatted js file
Expected behavior
It should format the JS through stdin via prettier.
System information
nixos-unstable 01f116e4df6a15f4ccdffb1bcd41096869fb385c
treefmt v2.4.0
Additional context
Metadata
Metadata
Assignees
Labels
bugSomething isn't workingSomething isn't working