mirror of
https://github.com/dense-analysis/ale.git
synced 2026-11-19 02:01:03 +08:00
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:
1 parent
b74cd02648
commit
9cc8383fe9
12 files changed
+91
-79
No files matched your search
@@ -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
|
||||
Reference in new issue
Block a user