gts
☂️ TypeScript style guide, formatter, and linter. (by google)
prettierd
prettier, as a daemon, for improved formatting speed. (by fsouza)
Our great sponsors
gts | prettierd | |
---|---|---|
4 | 5 | |
4,922 | 686 | |
1.1% | - | |
8.5 | 9.0 | |
8 days ago | 7 days ago | |
TypeScript | TypeScript | |
Apache License 2.0 | ISC License |
The number of mentions indicates the total number of mentions that we've tracked plus the number of user suggested alternatives.
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.
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.
gts
Posts with mentions or reviews of gts.
We have used some of these posts to build our list of alternatives
and similar projects. The last one was on 2023-07-11.
- Typescript template for Leetcode grinding
-
Prettier and how to get most out of it
// https://github.com/google/gts/blob/main/.prettierrc.json { "bracketSpacing": false, "singleQuote": true, "trailingComma": "es5", "arrowParens": "avoid" }
-
Couple super basic Typescript questions from a newbie: how to compile and how to start learning
If you want to write apps that run on Node.js I would suggest using Google’s TypeScript style guide. You can start using it by simply running npx gts init. I’d suggest that you start with this and run your apps using ts-node/ts-node-dev because it does not require an extra build step.
-
Start a new typescript project with gts and esbuild
To minize the effort gts is a nice tool to help you setting up the project. Our of deployment/devliver purposes we also want to bundle the code to create nice and small artifacts. For those purposes we use esbuild. The whole example can be found here
prettierd
Posts with mentions or reviews of prettierd.
We have used some of these posts to build our list of alternatives
and similar projects. The last one was on 2022-08-09.
-
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?
When comparing gts and prettierd you can also consider the following projects:
Eucalyptus - Eucalyptus Cloud-computing Platform
prettier-plugin-sort-imports - A prettier plugin to sort imports in typescript and javascript files by the provided RegEx order.
Cobbler - Cobbler is a versatile Linux deployment server
dotfiles
prettier-vscode - Visual Studio Code extension for Prettier
prettier_d_slim
esbuild - An extremely fast bundler for the web
dotfiles - All of my dotfiles are here.
OpenStack Tracking Repo - Repository tracking all OpenStack repositories as submodules. Mirror of code maintained at opendev.org.
CNvim - A lightweight Neovim config for web development
tidier - The file & folder name formatter
dotfiles - My dotfiles