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.nix does output changes (when needed)
nix fmt results 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
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 runtreefmt test.js.To Reproduce
Steps to reproduce the behavior:
I am using treefmt-nix, with this:
nix fmt -- --stdin test.js < test.jsnix fmt -- --stdin flake.nix < flake.nixdoes output changes (when needed)nix fmtresults in formatted js fileExpected behavior
It should format the JS through stdin via prettier.
System information
nixos-unstable 01f116e4df6a15f4ccdffb1bcd41096869fb385c
treefmt v2.4.0
Additional context