Skip to content

Add Formatly and --format flag to autofix mode#1029

Merged
webpro merged 3 commits intomainfrom
feat/introduce-formatly
May 3, 2025
Merged

Add Formatly and --format flag to autofix mode#1029
webpro merged 3 commits intomainfrom
feat/introduce-formatly

Conversation

@webpro
Copy link
Copy Markdown
Member

@webpro webpro commented Apr 14, 2025

Adds the --format flag to knip --fix to use Formatly and format the modified files using your local formatter + configuration.

Updated docs: https://feat-introduce-formatly.knip.pages.dev/features/auto-fix

Test in CI that actually does the formatting: format.fs.test.ts (unformatted: fix.fs.test.ts)

cc @JoshuaKGoldberg - if there's anything off or that could be improved, feel free to let me know! Thanks for building Formatly, it's perfect for tooling like this ✨

@pkg-pr-new
Copy link
Copy Markdown

pkg-pr-new Bot commented Apr 14, 2025

Open in StackBlitz

npm i https://pkg.pr.new/knip@1029

commit: 56a5741

@cloudflare-workers-and-pages
Copy link
Copy Markdown

cloudflare-workers-and-pages Bot commented Apr 14, 2025

Deploying knip with  Cloudflare Pages  Cloudflare Pages

Latest commit: 56a5741
Status: ✅  Deploy successful!
Preview URL: https://c9deb3b9.knip.pages.dev
Branch Preview URL: https://feat-introduce-formatly.knip.pages.dev

View logs

@webpro webpro force-pushed the feat/introduce-formatly branch from 65804f5 to 8973171 Compare April 14, 2025 16:22
@webpro webpro marked this pull request as ready for review April 15, 2025 05:13
@webpro webpro mentioned this pull request Apr 21, 2025
@webpro webpro force-pushed the main branch 2 times, most recently from 215d713 to 4661469 Compare April 23, 2025 08:01
@webpro webpro force-pushed the feat/introduce-formatly branch from 8973171 to 45f4f8d Compare April 24, 2025 06:27
@webpro webpro force-pushed the feat/introduce-formatly branch from 45f4f8d to 56a5741 Compare May 3, 2025 14:18
@webpro webpro merged commit 268a30b into main May 3, 2025
49 checks passed
@webpro webpro deleted the feat/introduce-formatly branch May 3, 2025 14:35
@webpro
Copy link
Copy Markdown
Member Author

webpro commented May 6, 2025

🚀 This pull request is included in v5.54.0. See Release 5.54.0 for release notes.

Using Knip in a commercial project? Please consider becoming a sponsor.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant