From f3512cd7788615e4ba8446a3ba74469919c0cd48 Mon Sep 17 00:00:00 2001 From: dcai Date: Thu, 27 Mar 2025 23:37:31 +1100 Subject: [PATCH] fix(biome): update biome to replace deprecated arguments (#4934) --- autoload/ale/fixers/biome.vim | 2 +- test/fixers/test_biome_fixer_callback.vader | 6 +++--- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/autoload/ale/fixers/biome.vim b/autoload/ale/fixers/biome.vim index 63c0fdbc..5d33bb2a 100644 --- a/autoload/ale/fixers/biome.vim +++ b/autoload/ale/fixers/biome.vim @@ -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, diff --git a/test/fixers/test_biome_fixer_callback.vader b/test/fixers/test_biome_fixer_callback.vader index 3d2083e4..b11b657e 100644 --- a/test/fixers/test_biome_fixer_callback.vader +++ b/test/fixers/test_biome_fixer_callback.vader @@ -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', \ }