-
Notifications
You must be signed in to change notification settings - Fork 61
Expand file tree
/
Copy pathplugin.yaml
More file actions
54 lines (54 loc) · 1.58 KB
/
plugin.yaml
File metadata and controls
54 lines (54 loc) · 1.58 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
version: 0.1
tools:
definitions:
- name: biome
# Available as a download, but release name doesn't configure well to our schema
runtime: node
package: "@biomejs/biome"
shims: [biome]
known_good_version: 2.0.5
lint:
definitions:
# Successor to the rome linter+formatter
- name: biome
files:
- astro
- css
- graphql
- html
- javascript
- json
- typescript
description: A static analyzer for web projects
commands:
- name: lint
output: regex
parse_regex:
' *(?P<path>.*?):(?P<line>\d+):(?P<col>\d+) (?P<code>[^ ]+)(?:[^×]*\n).*×
(?P<message>.*)\n'
run: biome check --config-path=${workspace}/biome.jsonc ${target}
run_from: ${root_or_parent_with(biome.jsonc)}
success_codes: [0, 1]
batch: true
cache_results: false
read_output_from: stderr
- name: fmt
output: rewrite
run: biome format --config-path=${workspace}/biome.jsonc --write ${target}
run_from: ${root_or_parent_with(biome.jsonc)}
success_codes: [0]
batch: true
cache_results: false
formatter: true
in_place: true
tools: [biome]
suggest_if: config_present
direct_configs:
- biome.jsonc
affects_cache:
- package.json
- .editorconfig # Undocumented config file
known_good_version: 2.0.5
version_command:
parse_regex: biome CLI version ${semver}
run: biome --version