mirror of
https://github.com/dense-analysis/ale.git
synced 2026-01-21 02:22:13 +08:00
fix(biome): update biome to replace deprecated arguments (#4934)
This commit is contained in:
@@ -1,7 +1,7 @@
|
||||
function! ale#fixers#biome#Fix(buffer) abort
|
||||
let l:executable = ale#handlers#biome#GetExecutable(a:buffer)
|
||||
let l:options = ale#Var(a:buffer, 'biome_options')
|
||||
let l:apply = ale#Var(a:buffer, 'biome_fixer_apply_unsafe') ? '--apply-unsafe' : '--apply'
|
||||
let l:apply = ale#Var(a:buffer, 'biome_fixer_apply_unsafe') ? '--write --unsafe' : '--write'
|
||||
|
||||
return {
|
||||
\ 'read_temporary_file': 1,
|
||||
|
||||
@@ -17,7 +17,7 @@ Execute(The default biome command should be correct):
|
||||
\ {
|
||||
\ 'read_temporary_file': 1,
|
||||
\ 'command': ale#Escape('biome')
|
||||
\ . ' check --apply %t'
|
||||
\ . ' check --write %t'
|
||||
\ }
|
||||
|
||||
Execute(Unsafe fixes can be applied via an option):
|
||||
@@ -28,7 +28,7 @@ Execute(Unsafe fixes can be applied via an option):
|
||||
\ {
|
||||
\ 'read_temporary_file': 1,
|
||||
\ 'command': ale#Escape('biome')
|
||||
\ . ' check --apply-unsafe %t'
|
||||
\ . ' check --write --unsafe %t'
|
||||
\ }
|
||||
|
||||
Execute(The fixer should accept options):
|
||||
@@ -39,5 +39,5 @@ Execute(The fixer should accept options):
|
||||
\ {
|
||||
\ 'read_temporary_file': 1,
|
||||
\ 'command': ale#Escape('biome')
|
||||
\ . ' check --apply --foobar %t',
|
||||
\ . ' check --write --foobar %t',
|
||||
\ }
|
||||
|
||||
Reference in New Issue
Block a user