All patches and comments are welcome. Please squash your changes to logical
commits before using git-format-patch and git-send-email to
patches@git.madduck.net.
If you'd read over the Git project's submission guidelines and adhered to them,
I'd be especially grateful.
2 Save g:ale_biome_options
3 Save g:ale_biome_lsp_project_root
5 let g:ale_biome_options = ''
6 let g:ale_biome_lsp_project_root = ''
8 call ale#assert#SetUpLinterTest('typescript', 'biome')
9 call ale#test#SetFilename('test.ts')
12 call ale#assert#TearDownLinterTest()
14 Execute(The default biome command should be correct):
15 AssertLinter 'biome', ale#Escape('biome') . ' lsp-proxy'
17 Execute(Uses the filetype as the language):
18 call ale#test#SetFilename('test.ts')
19 set filetype=typescript
20 AssertLSPLanguage 'typescript'
22 call ale#test#SetFilename('test.tsx')
23 set filetype=typescriptreact
24 AssertLSPLanguage 'typescriptreact'
26 call ale#test#SetFilename('test.js')
27 set filetype=javascript
28 AssertLSPLanguage 'javascript'
30 call ale#test#SetFilename('test.jsx')
31 set filetype=javascriptreact
32 AssertLSPLanguage 'javascriptreact'
34 Execute(Should find project root containing biome.json):
35 call ale#test#SetFilename('../test-files/biome/json/src/test.ts')
37 AssertLSPProject ale#path#Simplify(g:dir . '/../test-files/biome/json')
39 Execute(Should find project root containing biome.jsonc):
40 call ale#test#SetFilename('../test-files/biome/jsonc/src/test.ts')
42 AssertLSPProject ale#path#Simplify(g:dir . '/../test-files/biome/jsonc')
44 Execute(Should use user-specified project root):
45 let g:ale_biome_lsp_project_root = '/'
47 call ale#test#SetFilename('../test-files/biome/jsonc/src/test.ts')