parallel-prettier
prettierd
parallel-prettier | prettierd | |
---|---|---|
2 | 5 | |
191 | 709 | |
1.0% | - | |
3.6 | 9.0 | |
7 months ago | 8 days ago | |
TypeScript | TypeScript | |
MIT License | ISC License |
Stars - the number of stars that a project has on GitHub. Growth - month over month growth in stars.
Activity is a relative number indicating how actively a project is being developed. Recent commits have higher weight than older ones.
For example, an activity of 9.0 indicates that a project is amongst the top 10% of the most actively developed projects that we are tracking.
parallel-prettier
-
10k Bounty for Rewriting Prettier in Rust
Prettier runs on a single thread only. Running it on each thread could make it significantly faster [0].
[0]: https://github.com/microsoft/parallel-prettier
-
Speeding up Prettier locally using the new –cache CLI option
There are third party options you could try like this one (no personal experience): https://github.com/microsoft/parallel-prettier
Alternatively, it’s pretty common to only run prettier on changed files using lint-staged or pretty-quick.
prettierd
-
My Neovim setup for React, TypeScript, Tailwind CSS, etc
First, you need prettierd:
-
This j/k mappings should be default (for wrap) at least in Plugins like vim-pencil
Besides remapping keys, auto-format with prettier (null-ls, ALE, etc) will wrap your code on line break. This might not be desirable for txt files, but it's transparent and fully supported by markdown. It'll also fix things like aligning your markdown tables. There's also prettierd and prettier_d_slim to keep it running as a daemon in the background, which makes the buffer reformatting really snappy.
-
I'm searching for nvim configs of react/js developers
For react you will need the one for typescript and the eslint lsp is also used in the config to auto fix errors on save. Also this relies on prettierd to be installed globally: https://github.com/fsouza/prettierd
- Anyone know how to make prettier run faster when run on save? It takes about 2 seconds every time I write my buffer to desk for Neovim to become responsive again.
-
Speed-up your Prettier formatting using prettierd
But today I discovered this tool: https://github.com/fsouza/prettierd. This completely solves the issue: the slowness of prettier is due to the overhead of launching the program. This package leaves prettier running as a daemon, which removes the launch overhead (kind of similar to the already famous `eslint_d`).
What are some alternatives?
prettier-plugin-astro-organize-imports - A Prettier plugin for formatting imports in Astro files
prettier-plugin-sort-imports - A prettier plugin to sort imports in typescript and javascript files by the provided RegEx order.
jest-runner-eslint - An ESLint runner for Jest
dotfiles
typescript-starter - Quickly create and configure a new library or Node.js project
prettier_d_slim
prettier-plugin-go-template - Fixes prettier formatting for go templates 🐹
dotfiles - All of my dotfiles are here.
jest-runner-prettier - Prettier runner for Jest
CNvim - A lightweight Neovim config for web development
gts - ☂️ TypeScript style guide, formatter, and linter.
dotfiles - My dotfiles