fix(biome): update biome to replace deprecated arguments (#4934)

This commit is contained in:
dcai
2025-03-27 23:37:31 +11:00
committed by GitHub
parent 7fcc0548b0
commit f3512cd778
2 changed files with 4 additions and 4 deletions
+1 -1
View File
@@ -1,7 +1,7 @@
function! ale#fixers#biome#Fix(buffer) abort function! ale#fixers#biome#Fix(buffer) abort
let l:executable = ale#handlers#biome#GetExecutable(a:buffer) let l:executable = ale#handlers#biome#GetExecutable(a:buffer)
let l:options = ale#Var(a:buffer, 'biome_options') 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 { return {
\ 'read_temporary_file': 1, \ 'read_temporary_file': 1,
+3 -3
View File
@@ -17,7 +17,7 @@ Execute(The default biome command should be correct):
\ { \ {
\ 'read_temporary_file': 1, \ 'read_temporary_file': 1,
\ 'command': ale#Escape('biome') \ 'command': ale#Escape('biome')
\ . ' check --apply %t' \ . ' check --write %t'
\ } \ }
Execute(Unsafe fixes can be applied via an option): 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, \ 'read_temporary_file': 1,
\ 'command': ale#Escape('biome') \ 'command': ale#Escape('biome')
\ . ' check --apply-unsafe %t' \ . ' check --write --unsafe %t'
\ } \ }
Execute(The fixer should accept options): Execute(The fixer should accept options):
@@ -39,5 +39,5 @@ Execute(The fixer should accept options):
\ { \ {
\ 'read_temporary_file': 1, \ 'read_temporary_file': 1,
\ 'command': ale#Escape('biome') \ 'command': ale#Escape('biome')
\ . ' check --apply --foobar %t', \ . ' check --write --foobar %t',
\ } \ }