mirror of
https://github.com/dense-analysis/ale.git
synced 2025-12-20 11:11:13 +08:00
Since Biome understands `typescriptreact` and `javascriptreact` as languages, we can send the `filetype` to the LSP, rather than only sending `typescript` for both `ts` and `tsx` files, or `javascript` for `js` and `jsx` files. fixes: #4752
12 lines
421 B
VimL
12 lines
421 B
VimL
" Author: Filip Gospodinov <f@gospodinov.ch>
|
|
" Description: biome for JavaScript files
|
|
|
|
call ale#linter#Define('javascript', {
|
|
\ 'name': 'biome',
|
|
\ 'lsp': 'stdio',
|
|
\ 'language': function('ale#handlers#biome#GetLanguage'),
|
|
\ 'executable': function('ale#handlers#biome#GetExecutable'),
|
|
\ 'command': function('ale#handlers#biome#GetCommand'),
|
|
\ 'project_root': function('ale#handlers#biome#GetProjectRoot'),
|
|
\})
|