diff options
| author | Daniel Perez Alvarez <danielpza@protonmail.com> | 2025-01-18 11:08:20 -0800 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2025-01-18 11:08:20 -0800 |
| commit | fa50cb3a3c7cb8f2b4216760c05f8a885a3ce906 (patch) | |
| tree | fcfa0df142f091d336a3ee3be7d44796f0efdbb2 /apheleia-formatters.el | |
| parent | 30b19fa7b3841bb9b811e2ecdcd3782248052ae8 (diff) | |
feat: add biome formatter (#339)
See https://biomejs.dev/
Alternative formatter to `prettier`
closes https://github.com/radian-software/apheleia/issues/323
Diffstat (limited to 'apheleia-formatters.el')
| -rw-r--r-- | apheleia-formatters.el | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/apheleia-formatters.el b/apheleia-formatters.el index bef7aa0..ba3aad1 100644 --- a/apheleia-formatters.el +++ b/apheleia-formatters.el @@ -35,6 +35,7 @@ "-")) (brittany . ("brittany")) (buildifier . ("buildifier")) + (biome . ("apheleia-npx" "biome" "format" "--stdin-file-path" filepath)) (caddyfmt . ("caddy" "fmt" "-")) (clang-format . ("clang-format" "-assume-filename" @@ -1177,7 +1178,7 @@ For more implementation detail, see (setq-local indent-line-function (buffer-local-value 'indent-line-function buffer)) (setq-local lisp-indent-function - (buffer-local-value 'lisp-indent-function buffer)) + (buffer-local-value 'lisp-indent-function buffer)) (setq-local indent-tabs-mode (buffer-local-value 'indent-tabs-mode buffer)) (goto-char (point-min)) |
