robin/laufey

git clone https://git.robinwobin.dev/robin/laufey

zeertzjqvim-patch:d0dd561: runtime(compiler): add biome linter (#36562)b3c099b1dd

master
1013 B23 linesraw
1" Vim compiler file
2" Compiler:     Biome (= linter for JavaScript, TypeScript, JSX, TSX, JSON,
3"               JSONC, HTML, Vue, Svelte, Astro, CSS, GraphQL and GritQL files)
4" Maintainer:   @Konfekt
5" Last Change:  2025 Nov 12
6if exists("current_compiler") | finish | endif
7let current_compiler = "biome"
8
9let s:cpo_save = &cpo
10set cpo&vim
11
12exe 'CompilerSet makeprg=' .. escape('biome check --linter-enabled=true --formatter-enabled=false --assist-enabled=false --reporter=github '
13      \ .. get(b:, 'biome_makeprg_params', get(g:, 'biome_makeprg_params', '')), ' \|"')
14
15CompilerSet errorformat=::%trror%.%#file=%f\\,line=%l\\,%.%#col=%c\\,%.%#::%m
16CompilerSet errorformat+=::%tarning%.%#file=%f\\,line=%l\\,%.%#col=%c\\,%.%#::%m
17CompilerSet errorformat+=::%totice%.%#file=%f\\,line=%l\\,%.%#col=%c\\,%.%#::%m
18CompilerSet errorformat+=%-G\\s%#
19CompilerSet errorformat+=%-Gcheck\ %.%#
20CompilerSet errorformat+=%-G%.%#Some\ errors\ were\ emitted\ while\ running\ checks%.
21
22let &cpo = s:cpo_save
23unlet s:cpo_save