codekingpro/portable-devtools
114k
1" Vim compiler file2" Compiler: Biome (= linter for JavaScript, TypeScript, JSX, TSX, JSON,3" JSONC, HTML, Vue, Svelte, Astro, CSS, GraphQL and GritQL files)4" Maintainer: @Konfekt5" Last Change: 2025 Nov 126if exists("current_compiler") | finish | endif7let current_compiler = "biome"8 9let s:cpo_save = &cpo10set cpo&vim11 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\\,%.%#::%m16CompilerSet errorformat+=::%tarning%.%#file=%f\\,line=%l\\,%.%#col=%c\\,%.%#::%m17CompilerSet errorformat+=::%totice%.%#file=%f\\,line=%l\\,%.%#col=%c\\,%.%#::%m18CompilerSet errorformat+=%-G\\s%#19CompilerSet errorformat+=%-Gcheck\ %.%#20CompilerSet errorformat+=%-G%.%#Some\ errors\ were\ emitted\ while\ running\ checks%.21 22let &cpo = s:cpo_save23unlet s:cpo_save24 