treesit-auto
prettier
treesit-auto | prettier | |
---|---|---|
8 | 444 | |
308 | 48,399 | |
- | 0.8% | |
8.3 | 9.8 | |
8 days ago | 6 days ago | |
Emacs Lisp | JavaScript | |
GNU General Public License v3.0 only | MIT 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.
treesit-auto
-
Setting up Doom Emacs for Astro Development
Or you can take the red pill and use treesit-auto and automatically install the language grammar.
- treesit-auto: Automatic installation, usage, and fallback for tree-sitter major modes in Emacs 29
-
How to use tree-sitter for syntax highlighting in Emacs 29+?
So far I've been using tree-sitter.el with the tree-sitter-hl-mode for syntax highlighting. As far as I understand, Tree Sitter is now built-into Emacs 29 and above as treesit (https://github.com/emacs-mirror/emacs/blob/master/admin/notes/tree-sitter/starter-guide), which makes tree-sitter.el obsolete. There is also this package https://github.com/renzmann/treesit-auto which seems to handle the installation, mapping and activation of the language modes.
-
Emacs 29 included tree-sitter doesn't highlight as much as third party tree-sitter package
If you want it to use the ts modes by default then you'll have to adjust the major-mode-remap-alist variable. Or give the treesit-auto package a shot.
- treesit-auto: Automatically pick between TreeSitter and default major modes in Emacs 29+
-
(Small) breaking changes in treesit-auto 0.5
Over the last couple weeks while putting the treesit-auto package together it gained adoption much faster than I had expected. While I'm incredibly happy others found it useful, that also means that many assumptions in my hacky code were quickly blown apart. Also, in no small part due to my poor documentation, it was confusing to figure out exactly how/what would be supported when trying to add a new language.
-
treesit-auto 0.3: Now with automatic installation of tree-sitter grammars
GitHub for treesit-auto Original announcement of treesit-auto Blog post that inspired treesit-auto
-
Getting Emacs 29 to Automatically Use Tree-sitter Modes ยท robbmann
/u/casouri posted an article recently about getting started with tree-sitter. Unfortunately, it mentioned that automatic switching between those tree-sitter modes and the default modes (e.g. between python-mode and python-ts-mode won't be coming just yet, but there was a suggested workaround. I took a slightly different approach from what was outlined, and wound up with treesit-auto.el, which is customizable, and I think hits all the intended behavior.
prettier
-
Mastering Code Quality: Setting Up ESLint with Standard JS in TypeScript Projects
In this post, I also use ESLint + Standard JS as my code formatting tools. Formatting JS/TS code by using ESLint is also subjective and opinionated, arguably most people would rather use Prettier instead, which provides more configurable options.
-
How to make ESLint and Prettier work together? ๐ ๏ธ
Let's be honest - setting up tools for a new project can be a frustrating process. Especially when you want to jump straight to coding part. This is often the case with ESLint and Prettier, two popular tools in the JavaScript ecosystem that can sometimes interfere with each other when it comes to code formatting. Fortunately, there's a simple solution to this process, and it's called eslint-plugin-prettier.
-
My opinion about opinionated Prettier: ๐
From my point of view, Prettier doesn't work well for styling with utility classes. For a discussion see Prettier#7863 or Prettier#5948.
-
Shared Data-Layer Setup For Micro Frontend Application with Nx Workspace
Prettier: An opinionated code formatter that enforces a consistent code style.
-
To Review or Not to Review: The Debate on Mandatory Code Reviews
Automating code checks with static code analysis allows us to enforce code styling effectively. By integrating tools into our workflow, we can identify errors at an early stage, while coding instead of blocking us at the end. For instance, flake8 checks Python code for style and errors, eslint performs similar checks for JavaScript, and prettier automatically formats code to maintain consistency.
-
Setting up Doom Emacs for Astro Development
So anyways, I wanted to hook up Emacs with Astro support. For now, I've just been roughing it out there and running Prettier by itself and turning off save on format and auto-complete. It's been scary.
-
Biome.js : Prettier+ESLint killer ?
If you're a developer, you're surely familiar with Prettier and ESLint. With over 8 years of existence, they have established themselves as references in the JavaScript ecosystem.
-
Most basic code formatting
prettier is used to format you text
-
How to use Lefthooks in your node project?
No formatting inconsistencies: The committed code should follow the organization's code formatting standards(prettier or pretty-quick).
-
Git Project Configuration With Husky and ESLint
Letโs walk through the steps for a one-time setup to configure husky pre-commit and pre-push hooks, ESLint with code styles conventions, prettier code formatter, and lint-staged. Husky automatically runs a script on each commit or push. This is useful for linting files to enforce code styles that keeps the entire code base following conventions.
What are some alternatives?
tree-sitter-module - Building script for tree-sitter language definitions
black - The uncompromising Python code formatter
GNU Emacs - Mirror of GNU Emacs
JS-Beautifier - Beautifier for javascript
nvim-treesitter - Nvim Treesitter configurations and abstraction layer
dprint - Pluggable and configurable code formatting platform written in Rust.
tree-sitter - An incremental parsing system for programming tools
ESLint - Find and fix problems in your JavaScript code.
prettier-plugin-organize-imports - Make Prettier organize your imports using the TypeScript language service API.
Standard - ๐ JavaScript Style Guide, with linter & automatic code fixer
JSHint - JSHint is a tool that helps to detect errors and potential problems in your JavaScript code
pretty-quick - โก Get Pretty Quick