diff --git a/autoload/ale/fix/registry.vim b/autoload/ale/fix/registry.vim index 044a14d551..0cad0a9911 100644 --- a/autoload/ale/fix/registry.vim +++ b/autoload/ale/fix/registry.vim @@ -646,11 +646,6 @@ let s:default_registry = { \ 'suggested_filetypes': ['ruby'], \ 'description': 'A formatter for Ruby source code', \ }, -\ 'biome': { -\ 'function': 'ale#fixers#biome#Fix', -\ 'suggested_filetypes': ['javascript', 'typescript'], -\ 'description': 'Apply biome (ex. rome) check to a file.', -\ }, \} " Reset the function registry to the default entries. diff --git a/autoload/ale/fixers/biome.vim b/autoload/ale/fixers/biome.vim deleted file mode 100644 index 3a45fa3efd..0000000000 --- a/autoload/ale/fixers/biome.vim +++ /dev/null @@ -1,17 +0,0 @@ -" Author: Akiomi Kamakura -" 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') - - return { - \ 'command': (has('win32') ? (ale#Escape(l:node) . ' ') : '') - \ . ale#Escape(l:executable) - \ . ' check --apply' - \ . ale#Pad(l:options) - \ . ' %t', - \ 'read_temporary_file': 1, - \} -endfunction diff --git a/autoload/ale/handlers/biome.vim b/autoload/ale/handlers/biome.vim deleted file mode 100644 index 8d75e3bc0d..0000000000 --- a/autoload/ale/handlers/biome.vim +++ /dev/null @@ -1,14 +0,0 @@ -" Author: Akiomi Kamakura -" Description: Functions for working with biome, for fixing files. - -call ale#Set('javascript_biome_node_executable', 'node.exe') -call ale#Set('javascript_biome_executable', 'biome') -call ale#Set('javascript_biome_use_global', get(g:, 'ale_use_global_executables', 0)) -call ale#Set('javascript_biome_options', '') - -function! ale#handlers#biome#GetExecutable(buffer) abort - return ale#path#FindExecutable(a:buffer, 'javascript_biome', [ - \ 'node_modules/.bin/biome', - \ 'node_modules/@biomejs/biome/bin/biome', - \]) -endfunction diff --git a/doc/ale-javascript.txt b/doc/ale-javascript.txt index 98c582da32..a55cd64398 100644 --- a/doc/ale-javascript.txt +++ b/doc/ale-javascript.txt @@ -25,33 +25,6 @@ To this: > < -=============================================================================== -biome *ale-javascript-biome* - -g:ale_javascript_biome_executable *g:ale_javascript_biome_executable* - *b:ale_javascript_biome_executable* - Type: |String| - Default: `'biome'` - - See |ale-integrations-local-executables| - - -g:ale_javascript_biome_use_global *g:ale_javascript_biome_use_global* - *b:ale_javascript_biome_use_global* - Type: |Number| - Default: `get(g:, 'ale_use_global_executables', 0)` - - See |ale-integrations-local-executables| - - -g:ale_javascript_biome_options *g:ale_javascript_biome_options* - *b:ale_javascript_biome_options* - Type: |String| - Default: `''` - - This variable can be set to pass additional options to biome. - - =============================================================================== clang-format *ale-javascript-clangformat* diff --git a/doc/ale-supported-languages-and-tools.txt b/doc/ale-supported-languages-and-tools.txt index 403aa842e6..d9099879d5 100644 --- a/doc/ale-supported-languages-and-tools.txt +++ b/doc/ale-supported-languages-and-tools.txt @@ -292,7 +292,6 @@ Notes: * `javalsp` * `uncrustify` * JavaScript - * `biome` * `clang-format` * `cspell` * `deno` @@ -654,7 +653,6 @@ Notes: * TOML * `dprint` * TypeScript - * `biome` * `cspell` * `deno` * `dprint` diff --git a/doc/ale-typescript.txt b/doc/ale-typescript.txt index 1641e60e0f..ab3f17bd7f 100644 --- a/doc/ale-typescript.txt +++ b/doc/ale-typescript.txt @@ -2,12 +2,6 @@ ALE TypeScript Integration *ale-typescript-options* -=============================================================================== -biome *ale-typescript-biome* - -See |ale-javascript-biome| - - =============================================================================== cspell *ale-typescript-cspell* diff --git a/doc/ale.txt b/doc/ale.txt index 756735f703..c76abfbe70 100644 --- a/doc/ale.txt +++ b/doc/ale.txt @@ -3116,7 +3116,6 @@ documented in additional help files. eclipselsp............................|ale-java-eclipselsp| uncrustify............................|ale-java-uncrustify| javascript..............................|ale-javascript-options| - biome.................................|ale-javascript-biome| clang-format..........................|ale-javascript-clangformat| cspell................................|ale-javascript-cspell| deno..................................|ale-javascript-deno| @@ -3440,7 +3439,6 @@ documented in additional help files. toml....................................|ale-toml-options| dprint................................|ale-toml-dprint| typescript..............................|ale-typescript-options| - biome.................................|ale-typescript-biome| cspell................................|ale-typescript-cspell| deno..................................|ale-typescript-deno| dprint................................|ale-typescript-dprint| diff --git a/supported-tools.md b/supported-tools.md index 785b1b2774..414fefe4a3 100644 --- a/supported-tools.md +++ b/supported-tools.md @@ -301,7 +301,6 @@ formatting. * [javalsp](https://github.com/georgewfraser/vscode-javac) * [uncrustify](https://github.com/uncrustify/uncrustify) * JavaScript - * [biome](http://biomejs.dev) * [clang-format](https://clang.llvm.org/docs/ClangFormat.html) * [cspell](https://github.com/streetsidesoftware/cspell/tree/main/packages/cspell) * [deno](https://deno.land/) @@ -663,7 +662,6 @@ formatting. * TOML * [dprint](https://dprint.dev) * TypeScript - * [biome](http://biomejs.dev) * [cspell](https://github.com/streetsidesoftware/cspell/tree/main/packages/cspell) * [deno](https://deno.land/) * [dprint](https://dprint.dev/) diff --git a/test/fixers/test_biome_fixer_callback.vader b/test/fixers/test_biome_fixer_callback.vader deleted file mode 100644 index 0cb4888e8f..0000000000 --- a/test/fixers/test_biome_fixer_callback.vader +++ /dev/null @@ -1,30 +0,0 @@ -Before: - call ale#assert#SetUpFixerTest('javascript', 'biome') - runtime autoload/ale/handlers/biome.vim - set filetype=javascript - -After: - call ale#assert#TearDownFixerTest() - -Execute(The biome callback should return the correct default values): - call ale#test#SetFilename('../test-files/biome/src/test.js') - - AssertFixer - \ { - \ 'read_temporary_file': 1, - \ 'command': (has('win32') ? 'node.exe ' : '') - \ . ale#Escape(ale#path#Simplify(g:dir . '/../test-files/biome/node_modules/.bin/biome')) - \ . ' check --apply %t', - \ } - -Execute(The biome callback should include custom biome options): - let b:ale_javascript_biome_options = '--organize-imports-enabled=true' - call ale#test#SetFilename('../test-files/biome/src/test.js') - - AssertFixer - \ { - \ 'read_temporary_file': 1, - \ 'command': (has('win32') ? 'node.exe ' : '') - \ . ale#Escape(ale#path#Simplify(g:dir . '/../test-files/biome/node_modules/.bin/biome')) - \ . ' check --apply --organize-imports-enabled=true %t', - \ } diff --git a/test/test-files/biome/node_modules/.bin/biome b/test/test-files/biome/node_modules/.bin/biome deleted file mode 100644 index e69de29bb2..0000000000 diff --git a/test/test-files/biome/src/test.js b/test/test-files/biome/src/test.js deleted file mode 100644 index e69de29bb2..0000000000