prettier-cli
prettier-cli copied to clipboard
Based on https://github.com/prettier/prettier-cli/pull/52. TODOs: * [x] Prettier v3 seems to remove semicolons for some reason, v4 doesn't, need to investigate that * [x] handling for Prettier configs * [ ]...
Sorry that I forgot we use snapshots here. The format has been changed in https://github.com/prettier/prettier/pull/17386
Copies the `config-precedence` tests from prettier. @fabiospampinato i could do with some help here. i haven't updated the snapshots yet since some of them are legitimate failures it seems (until...
Copies the `write` tests from prettier. Notable differences: - Unchanged files are still listed in the output in prettier, but not here (e.g. `foo.js (unchanged)`) - Written files also log...
Copies the stdin-filepath tests from prettier. Notable differences: - Blocked by #21 - Syntax errors output the `stdin-filepath` basename in prettier but not in this CLI (e.g. `[Error] foo.js SyntaxError...
Fixes #45 This script should be good enough to bundle the package. Should we do this in core? Since we have more esbuild plugins there, this repo don't need to...
Copies the `plugin-resolution` tests from prettier. Blocked by #41
This is a first attempt at re-using the format options logic when stdin mode has been given a file path. There is still code clean up to do, but this...
When running `node bin/prettier --experimental-cli . -c` in Prettier repo ```console Checking formatting... [warn] .vscode/extensions.json [warn] .vscode/settings.example.json [warn] bin/prettier.cjs [warn] Code style issues found in 3 files. Run Prettier with...