biome.vim (1013B)
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 6 if exists("current_compiler") | finish | endif 7 let current_compiler = "biome" 8 9 let s:cpo_save = &cpo 10 set cpo&vim 11 12 exe '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 15 CompilerSet errorformat=::%trror%.%#file=%f\\,line=%l\\,%.%#col=%c\\,%.%#::%m 16 CompilerSet errorformat+=::%tarning%.%#file=%f\\,line=%l\\,%.%#col=%c\\,%.%#::%m 17 CompilerSet errorformat+=::%totice%.%#file=%f\\,line=%l\\,%.%#col=%c\\,%.%#::%m 18 CompilerSet errorformat+=%-G\\s%# 19 CompilerSet errorformat+=%-Gcheck\ %.%# 20 CompilerSet errorformat+=%-G%.%#Some\ errors\ were\ emitted\ while\ running\ checks%. 21 22 let &cpo = s:cpo_save 23 unlet s:cpo_save