Add full support for biome (#4705)

* Revert "Add biome support for javascript (#4701)"

This reverts commit 8922478a83.

* Add support for biome
This commit is contained in:
Filip Gospodinov authored and GitHub committed 2024-02-24 16:51:39 +09:00
1 parent b74cd02648
commit 9cc8383fe9
12 files changed
+91 -79

No files matched your search

+4 -11
View File
@@ -1,17 +1,10 @@
" Author: Akiomi Kamakura <akiomik@gmail.com>
" Description: Fixing files with biome (ex.rome).
function! ale#fixers#biome#Fix(buffer) abort
let l:executable = ale#handlers#biome#GetExecutable(a:buffer)
let l:options = ale#Var(a:buffer, 'javascript_biome_options')
let l:node = ale#Var(a:buffer, 'javascript_biome_node_executable')
let l:options = ale#Var(a:buffer, 'biome_options')
return {
\ 'command': (has('win32') ? (ale#Escape(l:node) . ' ') : '')
\ . ale#Escape(l:executable)
\ . ' check --apply'
\ . ale#Pad(l:options)
\ . ' %t',
\ 'read_temporary_file': 1,
\ 'command': '%e format'
\ . (!empty(l:options) ? ' ' . l:options : '')
\ . ' --stdin-file-path=%s',
\}
endfunction