Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/alecthomas/esfmt
An opinionated, zero-configuration formatter for ES/TS/ESX/TSX
https://github.com/alecthomas/esfmt
ecmascript es esx javascript js jsx react typescript
Last synced: about 2 months ago
JSON representation
An opinionated, zero-configuration formatter for ES/TS/ESX/TSX
- Host: GitHub
- URL: https://github.com/alecthomas/esfmt
- Owner: alecthomas
- License: apache-2.0
- Created: 2022-01-30T03:31:26.000Z (almost 3 years ago)
- Default Branch: master
- Last Pushed: 2024-01-01T11:30:21.000Z (12 months ago)
- Last Synced: 2024-10-10T16:06:23.101Z (2 months ago)
- Topics: ecmascript, es, esx, javascript, js, jsx, react, typescript
- Language: Go
- Homepage:
- Size: 12.7 KB
- Stars: 5
- Watchers: 3
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: COPYING
Awesome Lists containing this project
README
# esfmt - an opinionated, zero-configuration formatter for ES/TS/ESX/TSX
Status: total hack
In the spirit of [esbuild](https://esbuild.github.io/), esfmt strives to bring
the speed and convenience of a statically compiled single binary
distribution to formatting TSX and its relatives.Leveraging the excellent [Treesitter](https://tree-sitter.github.io/tree-sitter/)
will hopefully allow us to do this with relatively little effort.## Developing
Copy JS/TSX/ES/ESX into the [Tree-Sitter playground](https://tree-sitter.github.io/tree-sitter/playground).
This formats the parse tree in a nice way and allows interactive selection.