Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
65 commits
Select commit Hold shift + click to select a range
6959fa3
chore(ci): synchronize to `a248e88` (#3565)
github-actions[bot] Nov 27, 2025
79395cb
chore(ci): synchronize to `da85e3c` (#3573)
github-actions[bot] Nov 28, 2025
e203d32
chore(ci): synchronize to `7207eff` (#3575)
github-actions[bot] Nov 29, 2025
0dc9213
chore(ci): synchronize to `4f7909d` (#3581)
github-actions[bot] Nov 29, 2025
71a463a
feat: document inline config (#3557)
ematipico Dec 2, 2025
ecad429
chore(ci): synchronize to `e2e6e66` (#3595)
github-actions[bot] Dec 4, 2025
45f87ba
chore(ci): synchronize to `789b0e7` (#3596)
github-actions[bot] Dec 4, 2025
8677bd0
Merge branch 'main' into next
ematipico Dec 7, 2025
217bbcb
rebase with main
ematipico Dec 7, 2025
9ce30c5
chore(ci): synchronize to `c6afa4a` (#3616)
github-actions[bot] Dec 8, 2025
34ef86e
chore(ci): synchronize to `50c3513` (#3620)
github-actions[bot] Dec 8, 2025
e654cdb
feat(playground): support embedded snippets (#3626)
siketyan Dec 9, 2025
bc6adaf
Merge branch 'main' into next
siketyan Dec 9, 2025
b055f73
chore(ci): synchronize to `6c5f368` (#3627)
github-actions[bot] Dec 9, 2025
7d526ff
feat: document embedded languages support in JavaScript (#3622)
siketyan Dec 9, 2025
1589724
chore(ci): synchronize to `1a9334c` (#3628)
github-actions[bot] Dec 9, 2025
2b92bd5
chore(ci): synchronize to `c61892d` (#3676)
github-actions[bot] Dec 16, 2025
7bb9f66
chore(ci): synchronize to `8eb3f19` (#3686)
github-actions[bot] Dec 18, 2025
473875c
chore(ci): synchronize to `bf02ba6` (#3694)
github-actions[bot] Dec 19, 2025
d421e30
chore(ci): synchronize to `ab88099` (#3696)
github-actions[bot] Dec 20, 2025
2e64a38
chore(ci): synchronize to `8aa5f5b` (#3740)
github-actions[bot] Dec 25, 2025
71f9969
Merge branch 'main' into next
siketyan Jan 2, 2026
2b31ed4
chore(ci): synchronize to `3fc8cc5`
siketyan Jan 2, 2026
556363c
feat: add reference for `RUST_BACKTRACE` environment variable (#3770)
siketyan Jan 2, 2026
6792838
chore(ci): synchronize to `4c7c06f` (#3773)
github-actions[bot] Jan 2, 2026
c428052
chore(ci): synchronize to `1dc8dc2` (#3775)
github-actions[bot] Jan 2, 2026
ef0b84a
feat: codegen and domains (#3795)
ematipico Jan 5, 2026
7c2a01a
feat: document editor options (#3782)
ematipico Jan 6, 2026
4af030a
feat: document ignore all formatter (#3797)
ematipico Jan 6, 2026
f2f3eb6
chore: fix codegen
ematipico Jan 6, 2026
449a5b7
chore(ci): synchronize to `e06e5d1` (#3799)
github-actions[bot] Jan 7, 2026
1af5368
docs: sarif reporter (#3772)
Netail Jan 7, 2026
25cccc3
chore(ci): synchronize to `0f5a05b` (#3800)
github-actions[bot] Jan 7, 2026
d7a2704
chore(ci): synchronize to `a215408` (#3809)
github-actions[bot] Jan 9, 2026
8dc14d3
docs: add JSON GritQL support documentation (#3810)
cbstns Jan 11, 2026
f984749
feat: document `formatter.trailingNewline` (#3771)
ematipico Jan 26, 2026
da04c3b
chore: fix sync job
ematipico Jan 26, 2026
070d953
feat: hidden files and known folders (#3776)
ematipico Jan 26, 2026
35d08c4
chore(ci): synchronize to `39e7fd9` (#3883)
github-actions[bot] Jan 26, 2026
04e0cf7
chore(ci): synchronize to `1469968` (#3887)
github-actions[bot] Jan 27, 2026
6f80672
chore(ci): synchronize to `361350e` (#3888)
github-actions[bot] Jan 27, 2026
05c9312
chore(ci): synchronize to `fda74af` (#3889)
github-actions[bot] Jan 28, 2026
27d505c
chore(ci): synchronize to `79b38aa` (#3890)
github-actions[bot] Jan 28, 2026
99fac53
chore(ci): synchronize to `6bf1b09` (#3891)
github-actions[bot] Jan 28, 2026
c238a4c
chore(ci): synchronize to `7e48bd4` (#3894)
github-actions[bot] Jan 30, 2026
769743c
chore: fix codegen
ematipico Feb 10, 2026
2f41c22
chore(ci): synchronize to `63a4abe` (#3930)
github-actions[bot] Feb 10, 2026
6cb808a
Merge remote-tracking branch 'origin/main' into next
ematipico Feb 10, 2026
9102e2b
chore: rebase main
ematipico Feb 10, 2026
6df16c9
chore(ci): synchronize to `426de98` (#3933)
github-actions[bot] Feb 10, 2026
ce7df22
chore(ci): synchronize to `1da1356` (#3944)
github-actions[bot] Feb 13, 2026
fdb705d
chore(ci): synchronize to `b8c1cc8` (#3945)
github-actions[bot] Feb 13, 2026
b691522
chore(ci): synchronize to `5483570` (#3946)
github-actions[bot] Feb 13, 2026
e42f12f
chore(ci): synchronize to `c047e86` (#3947)
github-actions[bot] Feb 13, 2026
287154b
chore(ci): synchronize to `0e47f5a` (#3948)
github-actions[bot] Feb 14, 2026
d834fef
chore(ci): synchronize to `66ef5ba` (#3949)
github-actions[bot] Feb 14, 2026
98b1e35
chore(ci): synchronize to `e014336` (#3950)
github-actions[bot] Feb 14, 2026
e89650b
chore(ci): synchronize to `4804acf` (#3951)
github-actions[bot] Feb 14, 2026
263c49e
feat: biome v2.4 (#3943)
ematipico Feb 15, 2026
cd136a6
chore: update index
ematipico Feb 15, 2026
6c7cbfa
fix typo
ematipico Feb 15, 2026
aaa0b6d
Merge remote-tracking branch 'origin/main' into next
ematipico Feb 15, 2026
1853ae1
add codegen
ematipico Feb 15, 2026
b568b03
update lock file
ematipico Feb 15, 2026
d7694d2
gen files
ematipico Feb 15, 2026
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 0 additions & 7 deletions .taplo.toml

This file was deleted.

472 changes: 341 additions & 131 deletions Cargo.lock

Large diffs are not rendered by default.

130 changes: 65 additions & 65 deletions Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,71 +1,71 @@
[package]
description = "Crate used to generate pages from the Rust source code of Biome"
edition = "2024"
name = "codegen"
publish = false
version = "0.1.0"

[[bin]]
name = "codegen"
path = "codegen/src/main.rs"
name = "codegen"
version = "0.1.0"
edition = "2024"
description = "Crate used to generate pages from the Rust source code of Biome"
publish = false

[lib]
name = "codegen"
path = "codegen/src/lib.rs"
name = "codegen"
path = "codegen/src/lib.rs"

[[bin]]
name = "codegen"
path = "codegen/src/main.rs"

# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html
[dependencies]
anyhow = "1.0.101"
biome_analyze = { git = "https://github.com/biomejs/biome.git", rev = "df210062a19180b964c529d9e15f2fb80d2bf80f", features = [
"schema",
] }
biome_cli = { git = "https://github.com/biomejs/biome.git", rev = "df210062a19180b964c529d9e15f2fb80d2bf80f" }
biome_configuration = { git = "https://github.com/biomejs/biome.git", rev = "df210062a19180b964c529d9e15f2fb80d2bf80f", features = [
"schema",
] }
biome_console = { git = "https://github.com/biomejs/biome.git", rev = "df210062a19180b964c529d9e15f2fb80d2bf80f" }
biome_css_analyze = { git = "https://github.com/biomejs/biome.git", rev = "df210062a19180b964c529d9e15f2fb80d2bf80f" }
biome_css_parser = { git = "https://github.com/biomejs/biome.git", rev = "df210062a19180b964c529d9e15f2fb80d2bf80f" }
biome_css_semantic = { git = "https://github.com/biomejs/biome.git", rev = "df210062a19180b964c529d9e15f2fb80d2bf80f" }
biome_css_syntax = { git = "https://github.com/biomejs/biome.git", rev = "df210062a19180b964c529d9e15f2fb80d2bf80f" }
biome_deserialize = { git = "https://github.com/biomejs/biome.git", rev = "df210062a19180b964c529d9e15f2fb80d2bf80f" }
biome_diagnostics = { git = "https://github.com/biomejs/biome.git", rev = "df210062a19180b964c529d9e15f2fb80d2bf80f" }
biome_flags = { git = "https://github.com/biomejs/biome.git", rev = "df210062a19180b964c529d9e15f2fb80d2bf80f" }
biome_formatter = { git = "https://github.com/biomejs/biome.git", rev = "df210062a19180b964c529d9e15f2fb80d2bf80f" }
biome_fs = { git = "https://github.com/biomejs/biome.git", rev = "df210062a19180b964c529d9e15f2fb80d2bf80f" }
biome_graphql_analyze = { git = "https://github.com/biomejs/biome.git", rev = "df210062a19180b964c529d9e15f2fb80d2bf80f" }
biome_graphql_parser = { git = "https://github.com/biomejs/biome.git", rev = "df210062a19180b964c529d9e15f2fb80d2bf80f" }
biome_graphql_syntax = { git = "https://github.com/biomejs/biome.git", rev = "df210062a19180b964c529d9e15f2fb80d2bf80f" }
biome_html_analyze = { git = "https://github.com/biomejs/biome.git", rev = "df210062a19180b964c529d9e15f2fb80d2bf80f" }
biome_html_parser = { git = "https://github.com/biomejs/biome.git", rev = "df210062a19180b964c529d9e15f2fb80d2bf80f" }
biome_html_syntax = { git = "https://github.com/biomejs/biome.git", rev = "df210062a19180b964c529d9e15f2fb80d2bf80f" }
biome_js_analyze = { git = "https://github.com/biomejs/biome.git", rev = "df210062a19180b964c529d9e15f2fb80d2bf80f" }
biome_js_formatter = { git = "https://github.com/biomejs/biome.git", rev = "df210062a19180b964c529d9e15f2fb80d2bf80f" }
biome_js_parser = { git = "https://github.com/biomejs/biome.git", rev = "df210062a19180b964c529d9e15f2fb80d2bf80f" }
biome_js_syntax = { git = "https://github.com/biomejs/biome.git", rev = "df210062a19180b964c529d9e15f2fb80d2bf80f" }
biome_json_analyze = { git = "https://github.com/biomejs/biome.git", rev = "df210062a19180b964c529d9e15f2fb80d2bf80f" }
biome_json_factory = { git = "https://github.com/biomejs/biome.git", rev = "df210062a19180b964c529d9e15f2fb80d2bf80f" }
biome_json_formatter = { git = "https://github.com/biomejs/biome.git", rev = "df210062a19180b964c529d9e15f2fb80d2bf80f" }
biome_json_parser = { git = "https://github.com/biomejs/biome.git", rev = "df210062a19180b964c529d9e15f2fb80d2bf80f" }
biome_json_syntax = { git = "https://github.com/biomejs/biome.git", rev = "df210062a19180b964c529d9e15f2fb80d2bf80f" }
biome_module_graph = { git = "https://github.com/biomejs/biome.git", rev = "df210062a19180b964c529d9e15f2fb80d2bf80f" }
biome_project_layout = { git = "https://github.com/biomejs/biome.git", rev = "df210062a19180b964c529d9e15f2fb80d2bf80f" }
biome_rowan = { git = "https://github.com/biomejs/biome.git", rev = "df210062a19180b964c529d9e15f2fb80d2bf80f" }
biome_ruledoc_utils = { git = "https://github.com/biomejs/biome.git", rev = "df210062a19180b964c529d9e15f2fb80d2bf80f" }
biome_service = { git = "https://github.com/biomejs/biome.git", rev = "df210062a19180b964c529d9e15f2fb80d2bf80f" }
biome_string_case = { git = "https://github.com/biomejs/biome.git", rev = "df210062a19180b964c529d9e15f2fb80d2bf80f" }
biome_test_utils = { git = "https://github.com/biomejs/biome.git", rev = "df210062a19180b964c529d9e15f2fb80d2bf80f" }
biome_text_edit = { git = "https://github.com/biomejs/biome.git", rev = "df210062a19180b964c529d9e15f2fb80d2bf80f" }
bpaf = { version = "0.9.22", features = ["docgen"] }
xtask_codegen = { git = "https://github.com/biomejs/biome.git", rev = "df210062a19180b964c529d9e15f2fb80d2bf80f", features = [
"schema",
] }
# Needed to fix some weird dependency
lock_api = "0.4.14"
# If you update this library, be aware of the breaking changes
camino = "1.2.2"
pulldown-cmark = "0.13.0"
schemars = "1.2.1"
serde = "1.0.228"
serde_json = "1.0.149"
ureq = "3.1.4"
anyhow = "1.0.100"
biome_analyze = { git = "https://github.com/biomejs/biome.git", rev = "4cc531cb6697e1b018c6c78efd1be86f17f7c904", features = [
"schema",
] }
biome_cli = { git = "https://github.com/biomejs/biome.git", rev = "4cc531cb6697e1b018c6c78efd1be86f17f7c904" }
biome_configuration = { git = "https://github.com/biomejs/biome.git", rev = "4cc531cb6697e1b018c6c78efd1be86f17f7c904", features = [
"schema",
] }
biome_console = { git = "https://github.com/biomejs/biome.git", rev = "4cc531cb6697e1b018c6c78efd1be86f17f7c904" }
biome_css_analyze = { git = "https://github.com/biomejs/biome.git", rev = "4cc531cb6697e1b018c6c78efd1be86f17f7c904" }
biome_css_parser = { git = "https://github.com/biomejs/biome.git", rev = "4cc531cb6697e1b018c6c78efd1be86f17f7c904" }
biome_css_semantic = { git = "https://github.com/biomejs/biome.git", rev = "4cc531cb6697e1b018c6c78efd1be86f17f7c904" }
biome_css_syntax = { git = "https://github.com/biomejs/biome.git", rev = "4cc531cb6697e1b018c6c78efd1be86f17f7c904" }
biome_deserialize = { git = "https://github.com/biomejs/biome.git", rev = "4cc531cb6697e1b018c6c78efd1be86f17f7c904" }
biome_diagnostics = { git = "https://github.com/biomejs/biome.git", rev = "4cc531cb6697e1b018c6c78efd1be86f17f7c904" }
biome_flags = { git = "https://github.com/biomejs/biome.git", rev = "4cc531cb6697e1b018c6c78efd1be86f17f7c904" }
biome_formatter = { git = "https://github.com/biomejs/biome.git", rev = "4cc531cb6697e1b018c6c78efd1be86f17f7c904" }
biome_fs = { git = "https://github.com/biomejs/biome.git", rev = "4cc531cb6697e1b018c6c78efd1be86f17f7c904" }
biome_graphql_analyze = { git = "https://github.com/biomejs/biome.git", rev = "4cc531cb6697e1b018c6c78efd1be86f17f7c904" }
biome_graphql_parser = { git = "https://github.com/biomejs/biome.git", rev = "4cc531cb6697e1b018c6c78efd1be86f17f7c904" }
biome_graphql_syntax = { git = "https://github.com/biomejs/biome.git", rev = "4cc531cb6697e1b018c6c78efd1be86f17f7c904" }
biome_html_analyze = { git = "https://github.com/biomejs/biome.git", rev = "4cc531cb6697e1b018c6c78efd1be86f17f7c904" }
biome_html_parser = { git = "https://github.com/biomejs/biome.git", rev = "4cc531cb6697e1b018c6c78efd1be86f17f7c904" }
biome_html_syntax = { git = "https://github.com/biomejs/biome.git", rev = "4cc531cb6697e1b018c6c78efd1be86f17f7c904" }
biome_js_analyze = { git = "https://github.com/biomejs/biome.git", rev = "4cc531cb6697e1b018c6c78efd1be86f17f7c904" }
biome_js_formatter = { git = "https://github.com/biomejs/biome.git", rev = "4cc531cb6697e1b018c6c78efd1be86f17f7c904" }
biome_js_parser = { git = "https://github.com/biomejs/biome.git", rev = "4cc531cb6697e1b018c6c78efd1be86f17f7c904" }
biome_js_syntax = { git = "https://github.com/biomejs/biome.git", rev = "4cc531cb6697e1b018c6c78efd1be86f17f7c904" }
biome_json_analyze = { git = "https://github.com/biomejs/biome.git", rev = "4cc531cb6697e1b018c6c78efd1be86f17f7c904" }
biome_json_factory = { git = "https://github.com/biomejs/biome.git", rev = "4cc531cb6697e1b018c6c78efd1be86f17f7c904" }
biome_json_formatter = { git = "https://github.com/biomejs/biome.git", rev = "4cc531cb6697e1b018c6c78efd1be86f17f7c904" }
biome_json_parser = { git = "https://github.com/biomejs/biome.git", rev = "4cc531cb6697e1b018c6c78efd1be86f17f7c904" }
biome_json_syntax = { git = "https://github.com/biomejs/biome.git", rev = "4cc531cb6697e1b018c6c78efd1be86f17f7c904" }
biome_module_graph = { git = "https://github.com/biomejs/biome.git", rev = "4cc531cb6697e1b018c6c78efd1be86f17f7c904" }
biome_project_layout = { git = "https://github.com/biomejs/biome.git", rev = "4cc531cb6697e1b018c6c78efd1be86f17f7c904" }
biome_rowan = { git = "https://github.com/biomejs/biome.git", rev = "4cc531cb6697e1b018c6c78efd1be86f17f7c904" }
biome_ruledoc_utils = { git = "https://github.com/biomejs/biome.git", rev = "4cc531cb6697e1b018c6c78efd1be86f17f7c904" }
biome_service = { git = "https://github.com/biomejs/biome.git", rev = "4cc531cb6697e1b018c6c78efd1be86f17f7c904" }
biome_string_case = { git = "https://github.com/biomejs/biome.git", rev = "4cc531cb6697e1b018c6c78efd1be86f17f7c904" }
biome_test_utils = { git = "https://github.com/biomejs/biome.git", rev = "4cc531cb6697e1b018c6c78efd1be86f17f7c904" }
biome_text_edit = { git = "https://github.com/biomejs/biome.git", rev = "4cc531cb6697e1b018c6c78efd1be86f17f7c904" }
bpaf = { version = "0.9.20", features = ["docgen"] }
# If you update this library, be aware of the breaking changes
camino = "1.2.2"
# Needed to fix some weird dependency
lock_api = "0.4.14"
pulldown-cmark = "0.13.0"
schemars = "1.1.0"
serde = "1.0.228"
serde_json = "1.0.145"
ureq = "3.1.4"
xtask_codegen = { git = "https://github.com/biomejs/biome.git", rev = "4cc531cb6697e1b018c6c78efd1be86f17f7c904", features = [
"schema",
] }
21 changes: 16 additions & 5 deletions codegen/src/domains.rs
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ use biome_json_factory::make::{
};
use biome_json_formatter::context::JsonFormatOptions;
use biome_json_formatter::format_node;
use biome_json_syntax::{AnyJsonValue, JsonObjectValue, T};
use biome_json_syntax::{AnyJsonMemberName, AnyJsonValue, JsonObjectValue, T};
use biome_rowan::AstNode;
use biome_string_case::Case;
use std::collections::HashMap;
Expand Down Expand Up @@ -99,7 +99,7 @@ impl DocDomains {
writeln!(buffer, "## {name}")?;
writeln!(
buffer,
"This domain contains rules that perform project-level analysis. This includes our module graph for dependency resolution, as well as type information. When enabling rules that belong to this domain, Biome will scan the entire project. The scanning phase will have a performance impact on the linting process. See the documentation on our [scanner](/internals/architecture/#scanner) to learn more about the scanner."
"This domain contains rules that perform project-level analysis. This includes our module graph for dependency resolution. When enabling rules that belong to this domain, Biome will scan the entire project. The scanning phase will have a performance impact on the linting process. See the documentation on our [scanner](/internals/architecture/#scanner) to learn more about the scanner."
)?;
}
RuleDomain::Vue => {
Expand All @@ -123,6 +123,13 @@ impl DocDomains {
"Use this domain inside Turborepo projects. This domain enables rules that are specific to Turborepo projects."
)?;
}
RuleDomain::Types => {
writeln!(buffer, "## {name}")?;
writeln!(
buffer,
"This domain contains rules that perform project-level analysis. This includes our module graph for dependency resolution. When enabling rules that belong to this domain, Biome will scan the entire project, *and it will enable the inference engine to resolve and flat types*. The scanning phase will have a performance impact on the linting process. See the documentation on our [scanner](/internals/architecture/#scanner) to learn more about the scanner."
)?;
}
#[allow(unreachable_patterns)]
domain => {
eprintln!("Undocumented domain: {domain:?}");
Expand Down Expand Up @@ -264,19 +271,23 @@ fn make_config_json(domain_name: &str, value: &str) -> JsonObjectValue {
token(T!['{']),
json_member_list(
vec![json_member(
json_member_name(json_string_literal("linter")),
AnyJsonMemberName::JsonMemberName(json_member_name(json_string_literal("linter"))),
token(T![:]),
AnyJsonValue::JsonObjectValue(json_object_value(
token(T!['{']),
json_member_list(
vec![json_member(
json_member_name(json_string_literal("domains")),
AnyJsonMemberName::JsonMemberName(json_member_name(
json_string_literal("domains"),
)),
token(T![:]),
AnyJsonValue::JsonObjectValue(json_object_value(
token(T!['{']),
json_member_list(
vec![json_member(
json_member_name(json_string_literal(domain_name)),
AnyJsonMemberName::JsonMemberName(json_member_name(
json_string_literal(domain_name),
)),
token(T![:]),
AnyJsonValue::JsonStringValue(json_string_value(
json_string_literal(value),
Expand Down
10 changes: 9 additions & 1 deletion codegen/src/env_variables.rs
Original file line number Diff line number Diff line change
Expand Up @@ -17,9 +17,17 @@ Overrides the Biome binary being used. This allows you, for example, to use a sy

If you don't define this variable, Biome will automatically detect the correct binary for your platform.

```
```shell
# Nix derivation example; the binary path comes from "${pkgs.biome}/bin/biome"
BIOME_BINARY=/nix/store/68fyfw1hidsqkal1839whi3nzgvqv4pa-biome-1.0.0/bin/biome npx @biomejs/biome format .
```

### `RUST_BACKTRACE`

Enables capturing the backtrace when Biome panicked. This allows you to identify where the panic occurred.

```shell
RUST_BACKTRACE=1 npx @biomejs/biome check .
```"#;

pub fn generate_env_variables() -> Result<()> {
Expand Down
Loading