repo
stringclasses
47 values
pull_number
int64
2
17k
instance_id
stringlengths
14
36
issue_numbers
listlengths
1
3
base_commit
stringlengths
40
40
patch
stringlengths
274
1.45M
test_patch
stringlengths
254
594k
problem_statement
stringlengths
34
44.3k
hints_text
stringlengths
0
66.2k
created_at
stringdate
2017-03-29 16:32:14
2024-12-29 18:55:13
version
stringclasses
76 values
updated_at
stringdate
2017-04-05 19:13:00
2025-03-25 20:07:17
environment_setup_commit
stringlengths
40
40
FAIL_TO_PASS
listlengths
1
1.57k
PASS_TO_PASS
listlengths
0
1.78k
FAIL_TO_FAIL
listlengths
0
83
PASS_TO_FAIL
listlengths
0
3
source_dir
stringclasses
13 values
tokio-rs/bytes
560
tokio-rs__bytes-560
[ "559" ]
38fd42acbaced11ff19f0a4ca2af44a308af5063
diff --git a/src/bytes_mut.rs b/src/bytes_mut.rs --- a/src/bytes_mut.rs +++ b/src/bytes_mut.rs @@ -670,7 +670,10 @@ impl BytesMut { // Compare the condition in the `kind == KIND_VEC` case above // for more details. - if v_capacity >= new_cap && offset >= len { + ...
diff --git a/tests/test_bytes.rs b/tests/test_bytes.rs --- a/tests/test_bytes.rs +++ b/tests/test_bytes.rs @@ -515,6 +515,34 @@ fn reserve_in_arc_unique_doubles() { assert_eq!(2000, bytes.capacity()); } +#[test] +fn reserve_in_arc_unique_does_not_overallocate_after_split() { + let mut bytes = BytesMut::from(...
reserve_inner over allocates which can lead to a OOM conidition # Summary `reseve_inner` will double the size of the underlying shared vector instead of just extending the BytesMut buffer in place if a call to `BytesMut::reserve` would fit inside the current allocated shared buffer. If this happens repeatedly you wi...
2022-07-29T23:42:13Z
1.2
2022-07-30T16:42:55Z
38fd42acbaced11ff19f0a4ca2af44a308af5063
[ "reserve_in_arc_unique_does_not_overallocate_after_multiple_splits", "reserve_in_arc_unique_does_not_overallocate_after_split" ]
[ "copy_to_bytes_less", "test_bufs_vec", "copy_to_bytes_overflow - should panic", "test_deref_buf_forwards", "test_fresh_cursor_vec", "test_get_u16", "test_get_u16_buffer_underflow - should panic", "test_get_u8", "test_vec_deque", "test_deref_bufmut_forwards", "test_clone", "copy_from_slice_pani...
[]
[]
auto_2025-06-10
tokio-rs/bytes
547
tokio-rs__bytes-547
[ "427" ]
068ed41bc02c21fe0a0a4d8e95af8a4668276f5d
diff --git a/src/bytes.rs b/src/bytes.rs --- a/src/bytes.rs +++ b/src/bytes.rs @@ -109,6 +109,10 @@ pub(crate) struct Vtable { /// fn(data, ptr, len) pub clone: unsafe fn(&AtomicPtr<()>, *const u8, usize) -> Bytes, /// fn(data, ptr, len) + /// + /// takes `Bytes` to value + pub to_vec: unsafe fn...
diff --git a/tests/test_bytes.rs b/tests/test_bytes.rs --- a/tests/test_bytes.rs +++ b/tests/test_bytes.rs @@ -1065,3 +1065,73 @@ fn bytes_into_vec() { let vec: Vec<u8> = bytes.into(); assert_eq!(&vec, prefix); } + +#[test] +fn test_bytes_into_vec() { + // Test STATIC_VTABLE.to_vec + let bs = b"1b23exf...
Conversion from Bytes to Vec<u8>? According to this thread https://github.com/tokio-rs/bytes/pull/151/commits/824a986fec988eaa7f9313838a01c7ff6d0e85bb conversion from `Bytes` to `Vec<u8>` has ever existed but not found today. Is it deleted? but what reason? Is there some workaround today? I want to use `Bytes` entir...
I think you should look into just using `Bytes` everywhere. `Bytes` in the end is a type-erased buffer, and it may or may not contain a `Vec<u8>`. Depending on what it is - which might again depend on the current version of `Bytes` - the conversion might either be rather cheap or involve a full allocation and copy....
2022-05-01T12:23:57Z
1.1
2022-07-13T07:04:28Z
068ed41bc02c21fe0a0a4d8e95af8a4668276f5d
[ "copy_to_bytes_less", "test_deref_buf_forwards", "test_bufs_vec", "copy_to_bytes_overflow - should panic", "test_fresh_cursor_vec", "test_get_u16", "test_get_u16_buffer_underflow - should panic", "test_get_u8", "test_vec_deque", "copy_from_slice_panics_if_different_length_2 - should panic", "tes...
[]
[]
[]
auto_2025-06-10
tokio-rs/bytes
543
tokio-rs__bytes-543
[ "427" ]
f514bd38dac85695e9053d990b251643e9e4ef92
diff --git a/src/bytes_mut.rs b/src/bytes_mut.rs --- a/src/bytes_mut.rs +++ b/src/bytes_mut.rs @@ -1540,6 +1540,43 @@ impl PartialEq<Bytes> for BytesMut { } } +impl From<BytesMut> for Vec<u8> { + fn from(mut bytes: BytesMut) -> Self { + let kind = bytes.kind(); + + let mut vec = if kind == KIND...
diff --git a/tests/test_bytes.rs b/tests/test_bytes.rs --- a/tests/test_bytes.rs +++ b/tests/test_bytes.rs @@ -1028,3 +1028,40 @@ fn box_slice_empty() { let b = Bytes::from(empty); assert!(b.is_empty()); } + +#[test] +fn bytes_into_vec() { + // Test kind == KIND_VEC + let content = b"helloworld"; + + ...
Conversion from Bytes to Vec<u8>? According to this thread https://github.com/tokio-rs/bytes/pull/151/commits/824a986fec988eaa7f9313838a01c7ff6d0e85bb conversion from `Bytes` to `Vec<u8>` has ever existed but not found today. Is it deleted? but what reason? Is there some workaround today? I want to use `Bytes` entir...
I think you should look into just using `Bytes` everywhere. `Bytes` in the end is a type-erased buffer, and it may or may not contain a `Vec<u8>`. Depending on what it is - which might again depend on the current version of `Bytes` - the conversion might either be rather cheap or involve a full allocation and copy....
2022-04-20T09:50:32Z
1.1
2022-07-10T12:25:14Z
068ed41bc02c21fe0a0a4d8e95af8a4668276f5d
[ "copy_to_bytes_less", "test_deref_buf_forwards", "copy_to_bytes_overflow - should panic", "test_bufs_vec", "test_fresh_cursor_vec", "test_get_u16", "test_get_u8", "test_get_u16_buffer_underflow - should panic", "test_vec_deque", "test_deref_bufmut_forwards", "copy_from_slice_panics_if_different_...
[]
[]
[]
auto_2025-06-10
starkware-libs/cairo
3,132
starkware-libs__cairo-3132
[ "3130" ]
5c98cf17854f2bec359077daa610a72453f04b7f
diff --git a/Cargo.lock b/Cargo.lock --- a/Cargo.lock +++ b/Cargo.lock @@ -603,6 +603,7 @@ dependencies = [ "env_logger", "indoc", "itertools", + "num-bigint", "salsa", "serde_json", "smol_str", diff --git a/crates/cairo-lang-plugins/Cargo.toml b/crates/cairo-lang-plugins/Cargo.toml --- a/crates/cairo-lang-...
diff --git a/crates/cairo-lang-plugins/src/lib.rs b/crates/cairo-lang-plugins/src/lib.rs --- a/crates/cairo-lang-plugins/src/lib.rs +++ b/crates/cairo-lang-plugins/src/lib.rs @@ -13,6 +15,7 @@ mod test; /// Gets the list of default plugins to load into the Cairo compiler. pub fn get_default_plugins() -> Vec<Arc<dyn S...
feat: compile-time arithmetic for constants # Feature Request **Describe the Feature Request** The Cairo compiler should be able to calculate the compile-time value of constants, to make it easier to write such constants, e.g.: ``` const some_value = (256 * 1080) & 0xfaff + 1234; // should become 14336 const s...
2023-05-12T09:12:14Z
1.3
2023-06-13T14:38:53Z
2dca6e26696859c0e70910023110500d6bc2671b
[ "test::expand_plugin::config", "test::expand_plugin::derive", "test::expand_plugin::panicable", "test::expand_plugin::generate_trait" ]
[]
[]
[]
auto_2025-06-10
starkware-libs/cairo
5,683
starkware-libs__cairo-5683
[ "5680" ]
576ddd1b38abe25af1e204cb77ea039b7c46d05e
diff --git a/crates/cairo-lang-semantic/src/expr/compute.rs b/crates/cairo-lang-semantic/src/expr/compute.rs --- a/crates/cairo-lang-semantic/src/expr/compute.rs +++ b/crates/cairo-lang-semantic/src/expr/compute.rs @@ -1773,7 +1773,7 @@ fn maybe_compute_tuple_like_pattern_semantic( unexpected_pattern: fn(TypeId) -...
diff --git a/crates/cairo-lang-semantic/src/expr/compute.rs b/crates/cairo-lang-semantic/src/expr/compute.rs --- a/crates/cairo-lang-semantic/src/expr/compute.rs +++ b/crates/cairo-lang-semantic/src/expr/compute.rs @@ -2279,30 +2279,13 @@ fn member_access_expr( // Find MemberId. let member_name = expr_as_id...
bug: weak inference on simple type # Bug Report **Cairo version:** On commit `8d6b690cb1401e682a0aba7bcda3b40f00482572`. **Current behavior:** The inference of very simple types seems to not be supported anymore, at least on `LegacyMap` that we had into the storage. It this expected as `LegacyMap` should be...
2024-05-29T16:31:46Z
2.6
2024-06-10T16:00:00Z
a767ed09cf460ba70c689abc2cfd18c0a581fc6c
[ "diagnostic::test::test_missing_module_file", "diagnostic::test::test_inline_module_diagnostics", "resolve::test::test_resolve_path_super", "diagnostic::test::test_analyzer_diagnostics", "items::extern_type::test::test_extern_type", "items::extern_function::test::test_extern_function", "expr::test::test...
[]
[]
[]
auto_2025-06-10
starkware-libs/cairo
5,539
starkware-libs__cairo-5539
[ "5524" ]
2b8bd3da33176c38e92e660d8c94f8b6df05f0b1
diff --git a/crates/cairo-lang-lowering/src/graph_algorithms/feedback_set.rs b/crates/cairo-lang-lowering/src/graph_algorithms/feedback_set.rs --- a/crates/cairo-lang-lowering/src/graph_algorithms/feedback_set.rs +++ b/crates/cairo-lang-lowering/src/graph_algorithms/feedback_set.rs @@ -41,7 +41,7 @@ pub fn priv_functio...
diff --git a/crates/cairo-lang-utils/src/graph_algos/feedback_set.rs b/crates/cairo-lang-utils/src/graph_algos/feedback_set.rs --- a/crates/cairo-lang-utils/src/graph_algos/feedback_set.rs +++ b/crates/cairo-lang-utils/src/graph_algos/feedback_set.rs @@ -19,45 +21,55 @@ mod feedback_set_test; /// Context for the fee...
bug: gas computation / unexpected cycle in computation issue with recursive type definition # Bug Report **Cairo version:** At least on `2.5.4` and `2.6.3` **Current behavior:** For the Dojo project, we use the following types to define the layout of our data that will be stored in a dedicated smart contrac...
Tell me if you need more explanation, context or whatever ! Thank you for the report! managed to minimally recreate an example now as well. For your specific usecase you can even reorder your function definitions - and your code would fully compile. will be taking care of it soon.
2024-05-09T18:35:22Z
2.6
2024-05-20T04:05:02Z
a767ed09cf460ba70c689abc2cfd18c0a581fc6c
[ "bigint::test::serde::test_bigint_serde::zero", "bigint::test::serde::test_bigint_serde::negative", "bigint::test::serde::test_bigint_serde::positive", "bigint::test::parity_scale_codec::encode_bigint", "collection_arithmetics::test::test_add_map_and_sub_map", "graph_algos::feedback_set::feedback_set_test...
[]
[]
[]
auto_2025-06-10
starkware-libs/cairo
4,777
starkware-libs__cairo-4777
[ "4744" ]
75f779e8553d28e4bfff3b23f140ccc781c9dab0
diff --git a/crates/cairo-lang-sierra-generator/src/store_variables/known_stack.rs b/crates/cairo-lang-sierra-generator/src/store_variables/known_stack.rs --- a/crates/cairo-lang-sierra-generator/src/store_variables/known_stack.rs +++ b/crates/cairo-lang-sierra-generator/src/store_variables/known_stack.rs @@ -70,9 +70,...
diff --git a/crates/cairo-lang-sierra-generator/src/store_variables/test.rs b/crates/cairo-lang-sierra-generator/src/store_variables/test.rs --- a/crates/cairo-lang-sierra-generator/src/store_variables/test.rs +++ b/crates/cairo-lang-sierra-generator/src/store_variables/test.rs @@ -207,6 +207,11 @@ fn get_lib_func_sign...
bug: One of the arguments does not satisfy the requirements of the libfunc. # Bug Report **Cairo version: 2.3.0-rc0** <!-- Please specify commit or tag version. --> **Current behavior:** ```cairo fn g(ref v: Felt252Vec<u64>, a: usize, b: usize, c: usize, d: usize, x: u64, y: u64) { let mut v_a = v[a];...
I suggested a temporary workaround as you suggested to me last time @orizi, which is ```rust #[inline(never)] fn no_op() {} fn g(ref v: Felt252Vec<u64>, a: usize, b: usize, c: usize, d: usize, x: u64, y: u64) { let mut v_a = v[a]; let mut v_b = v[b]; let mut v_c = v[c]; let mut v_d = v[d];...
2024-01-10T09:30:48Z
2.4
2024-01-15T08:20:26Z
75f779e8553d28e4bfff3b23f140ccc781c9dab0
[ "store_variables::test::push_values_with_hole" ]
[ "store_variables::known_stack::test::merge_stacks", "resolve_labels::test::test_resolve_labels", "canonical_id_replacer::test::test_replacer", "store_variables::test::consecutive_push_values", "store_variables::test::push_values_temp_not_on_top", "store_variables::test::push_values_optimization", "store...
[]
[]
auto_2025-06-10
starkware-libs/cairo
4,391
starkware-libs__cairo-4391
[ "4375" ]
45f9bc8ad931e1568ad3704efa49419a99572e2a
diff --git a/Cargo.lock b/Cargo.lock --- a/Cargo.lock +++ b/Cargo.lock @@ -1065,7 +1066,7 @@ dependencies = [ "serde_json", "sha2", "sha3", - "starknet-crypto", + "starknet-crypto 0.5.2", "thiserror-no-std", ] diff --git a/Cargo.lock b/Cargo.lock --- a/Cargo.lock +++ b/Cargo.lock @@ -2884,6 +2885,26 @@ depen...
diff --git a/Cargo.lock b/Cargo.lock --- a/Cargo.lock +++ b/Cargo.lock @@ -708,6 +708,7 @@ dependencies = [ "num-bigint", "num-integer", "num-traits 0.2.17", + "starknet-crypto 0.6.1", "test-case", "thiserror", ] diff --git a/Cargo.toml b/Cargo.toml --- a/Cargo.toml +++ b/Cargo.toml @@ -105,6 +105,7 @@ serde...
bug: CASM runner assigns arbitrary contract addresses instead of using correct address computation # Bug Report **Cairo version:** 2.3.1 <!-- Please specify commit or tag version. --> **Current behavior:** Currently, the casm runner assigns arbitrary addresses to contracts deployed using `deploy_syscall`, incr...
If these are the specifications - feel free to open a PR. Make sure to include a test. @orizi am I allowed to use the `calculate_contract_address` function from the `starknet_api` crate? Or do you not want dependencies external to the compiler? In any case, I need access to pedersen hash which is available in `starkne...
2023-11-10T08:51:39Z
2.3
2023-11-19T18:53:57Z
02b6ce71cf1d0ca226ba615ce363d71eb2340df4
[ "casm_run::test::test_as_cairo_short_string_ex", "casm_run::test::test_as_cairo_short_string", "casm_run::test::test_runner::jumps", "casm_run::test::test_format_for_debug", "casm_run::test::test_allocate_segment", "casm_run::test::test_runner::divmod_hint", "casm_run::test::test_runner::fib_1_1_13_", ...
[]
[]
[]
auto_2025-06-10
starkware-libs/cairo
6,317
starkware-libs__cairo-6317
[ "6080" ]
d22835b5494e976dbff7b967f3027cc04a7a04a6
diff --git a/crates/cairo-lang-defs/src/db.rs b/crates/cairo-lang-defs/src/db.rs --- a/crates/cairo-lang-defs/src/db.rs +++ b/crates/cairo-lang-defs/src/db.rs @@ -114,6 +114,9 @@ pub trait DefsGroup: /// i.e. a type marked with this attribute is considered a phantom type. fn declared_phantom_type_attributes(&...
diff --git a/Cargo.lock b/Cargo.lock --- a/Cargo.lock +++ b/Cargo.lock @@ -580,14 +580,19 @@ dependencies = [ name = "cairo-lang-doc" version = "2.8.2" dependencies = [ + "anyhow", "cairo-lang-defs", + "cairo-lang-filesystem", "cairo-lang-formatter", "cairo-lang-parser", + "cairo-lang-semantic", "cairo-lang-...
Implement `//!` comments Add support for `//!` comments that are handled analogously to Rust ones. Follow implementation of `///` comments.
Hey @mkaput I'll like to take up this issue. Can you provide more context to this issue? like where can I find the implementation of `///` this is trivially greppable https://github.com/starkware-libs/cairo/blob/e60c298fd7a10c4e40a63a066f25e972417a6847/crates/cairo-lang-doc/src/db.rs#L25 you will need to test...
2024-08-30T08:46:14Z
2.8
2024-09-09T12:47:54Z
47fe5bf462ab3a388f2c03535846a8c3a7873337
[ "markdown::test::fenced_code_blocks" ]
[]
[]
[]
auto_2025-06-10
starkware-libs/cairo
4,909
starkware-libs__cairo-4909
[ "4897" ]
7e0dceb788114a0f7e201801a03c034b52c19679
diff --git a/crates/cairo-lang-plugins/src/plugins/config.rs b/crates/cairo-lang-plugins/src/plugins/config.rs --- a/crates/cairo-lang-plugins/src/plugins/config.rs +++ b/crates/cairo-lang-plugins/src/plugins/config.rs @@ -9,7 +9,7 @@ use cairo_lang_syntax::attribute::structured::{ Attribute, AttributeArg, Attribu...
diff --git a/crates/cairo-lang-starknet/src/plugin/starknet_module/contract.rs b/crates/cairo-lang-starknet/src/plugin/starknet_module/contract.rs --- a/crates/cairo-lang-starknet/src/plugin/starknet_module/contract.rs +++ b/crates/cairo-lang-starknet/src/plugin/starknet_module/contract.rs @@ -302,12 +310,13 @@ pub(sup...
bug: code annotated with cfg(test) included in build # Bug Report **Cairo version:** 2.5.0 (was fine in 2.2.0) **Current behavior:** Contract that includes implementation annotated with `#[cfg(test)]` doesn't compile. Works fine when running `scarb test` **Related code:** Code example: ``` #[cfg...
2024-01-24T18:05:48Z
2.5
2024-02-04T08:34:08Z
600553d34a1af93ff7fb038ac677efdd3fd07010
[ "contract::test::test_starknet_keccak", "allowed_libfuncs::test::all_list_includes_all_supported", "allowed_libfuncs::test::libfunc_lists_include_only_supported_libfuncs", "contract_class::test::test_serialization", "felt252_serde::test::test_long_ids", "felt252_serde::test::test_libfunc_serde", "casm_c...
[]
[]
[]
auto_2025-06-10
starkware-libs/cairo
6,649
starkware-libs__cairo-6649
[ "6540" ]
47fe5bf462ab3a388f2c03535846a8c3a7873337
diff --git a/crates/cairo-lang-language-server/src/ide/hover/render/definition.rs b/crates/cairo-lang-language-server/src/ide/hover/render/definition.rs --- a/crates/cairo-lang-language-server/src/ide/hover/render/definition.rs +++ b/crates/cairo-lang-language-server/src/ide/hover/render/definition.rs @@ -32,6 +32,17 @...
diff --git a/crates/cairo-lang-language-server/tests/e2e/hover.rs b/crates/cairo-lang-language-server/tests/e2e/hover.rs --- a/crates/cairo-lang-language-server/tests/e2e/hover.rs +++ b/crates/cairo-lang-language-server/tests/e2e/hover.rs @@ -17,7 +17,8 @@ cairo_lang_test_utils::test_file_test!( partial: "part...
LS: Incorrect hovers for path segments Path segments in import statements don't have hovers by themselves ![Image](https://github.com/user-attachments/assets/f0cdd5ff-380b-42f6-b882-1efc7200ed04) However, when they appear in e.g. function call context, they inherit hover of the called function: ![Image](https://github...
2024-11-13T11:29:13Z
2.8
2024-11-18T11:15:41Z
47fe5bf462ab3a388f2c03535846a8c3a7873337
[ "hover::hover::basic", "hover::hover::paths" ]
[ "lang::diagnostics::trigger::test::test_drop_receiver", "lang::diagnostics::trigger::test::test_sync", "project::project_manifest_path::project_manifest_path_test::discover_cairo_project_toml", "project::project_manifest_path::project_manifest_path_test::discover_no_manifest", "lang::lsp::ls_proto_group::te...
[]
[]
auto_2025-06-10
starkware-libs/cairo
6,632
starkware-libs__cairo-6632
[ "6537" ]
893838229215c21471d2e9deacab7a37bc13f02b
diff --git a/crates/cairo-lang-language-server/src/lang/inspect/defs.rs b/crates/cairo-lang-language-server/src/lang/inspect/defs.rs --- a/crates/cairo-lang-language-server/src/lang/inspect/defs.rs +++ b/crates/cairo-lang-language-server/src/lang/inspect/defs.rs @@ -3,7 +3,7 @@ use std::iter; use cairo_lang_defs::db::...
diff --git a/crates/cairo-lang-language-server/tests/e2e/hover.rs b/crates/cairo-lang-language-server/tests/e2e/hover.rs --- a/crates/cairo-lang-language-server/tests/e2e/hover.rs +++ b/crates/cairo-lang-language-server/tests/e2e/hover.rs @@ -17,6 +17,7 @@ cairo_lang_test_utils::test_file_test!( partial: "part...
LS: Incorrect hover when used on member of struct llteral ![image](https://github.com/user-attachments/assets/1bac8b92-2c3e-4604-836d-89e37dc5bd75) ![image](https://github.com/user-attachments/assets/cafb3270-80ce-46bf-bfcc-968cd4b0851a) But not always ![image](https://github.com/user-attachments/assets/ddc3e628...
2024-11-12T10:49:03Z
2.8
2024-11-18T09:44:11Z
47fe5bf462ab3a388f2c03535846a8c3a7873337
[ "hover::hover::structs", "hover::hover::basic" ]
[ "lang::diagnostics::trigger::test::test_drop_receiver", "lang::diagnostics::trigger::test::test_sync", "lang::lsp::ls_proto_group::test::file_url", "project::project_manifest_path::project_manifest_path_test::discover_no_manifest", "project::project_manifest_path::project_manifest_path_test::discover_cairo_...
[]
[]
auto_2025-06-10
starkware-libs/cairo
2,289
starkware-libs__cairo-2289
[ "1672" ]
8f433e752a78afc017d0f08c9e21b966acfe1c11
diff --git a/crates/cairo-lang-parser/src/colored_printer.rs b/crates/cairo-lang-parser/src/colored_printer.rs --- a/crates/cairo-lang-parser/src/colored_printer.rs +++ b/crates/cairo-lang-parser/src/colored_printer.rs @@ -50,6 +50,7 @@ pub fn is_empty_kind(kind: SyntaxKind) -> bool { | SyntaxKind::OptionT...
diff --git a/crates/cairo-lang-parser/src/parser_test.rs b/crates/cairo-lang-parser/src/parser_test.rs --- a/crates/cairo-lang-parser/src/parser_test.rs +++ b/crates/cairo-lang-parser/src/parser_test.rs @@ -62,14 +62,30 @@ const TEST_test2_tree_with_trivia: ParserTreeTestParams = ParserTreeTestParams { print_color...
dev: generics type syntax contains turbofish ``` fn main() -> Option::<felt> { fib(1, 1, 13) } /// Calculates fib... fn fib(a: felt, b: felt, n: felt) -> Option::<felt> { get_gas()?; match n { 0 => Option::<felt>::Some(a), _ => fib(b, a + b, n - 1), } } ``` I hate to bik...
If anyone wants to contribute in this matter, it would be helpful:) Would love to contribute to this, if no one picked it up yet. Am a bit new to this so will be a bit slow when working on this, so if its urgent then I'll leave it to someone else. Sure, you are more than welcome. Not urgent at all. The main issue r...
2023-02-26T20:22:22Z
1.3
2023-02-28T15:48:46Z
2dca6e26696859c0e70910023110500d6bc2671b
[ "parser::test::partial_parser_tree_with_trivia::path", "parser::test::parse_and_compare_tree::test3_tree_no_trivia", "parser::test::parse_and_compare_tree::test3_tree_with_trivia", "parser::test::parse_and_compare_tree::test1_tree_no_trivia", "parser::test::parse_and_compare_tree::test1_tree_with_trivia" ]
[ "lexer::test::test_bad_character", "lexer::test::test_cases", "lexer::test::test_lex_single_token", "db::db_test::test_parser", "parser::test::diagnostic::fn_", "parser::test::diagnostic::pattern", "parser::test::diagnostic::semicolon", "parser::test::diagnostic::module_diagnostics", "parser::test::...
[]
[]
auto_2025-06-10
starkware-libs/cairo
3,264
starkware-libs__cairo-3264
[ "3211" ]
fecc9dc533ba78bb333d8f444d86ad9dd9b61e82
diff --git a/crates/cairo-lang-lowering/src/optimizations/match_optimizer.rs b/crates/cairo-lang-lowering/src/optimizations/match_optimizer.rs --- a/crates/cairo-lang-lowering/src/optimizations/match_optimizer.rs +++ b/crates/cairo-lang-lowering/src/optimizations/match_optimizer.rs @@ -22,6 +23,7 @@ pub fn optimize_mat...
diff --git a/crates/cairo-lang-lowering/src/optimizations/match_optimizer.rs b/crates/cairo-lang-lowering/src/optimizations/match_optimizer.rs --- a/crates/cairo-lang-lowering/src/optimizations/match_optimizer.rs +++ b/crates/cairo-lang-lowering/src/optimizations/match_optimizer.rs @@ -2,13 +2,14 @@ #[path = "match_op...
bug: Multiple jumps to arm blocks are not allowed. # Bug Report **Cairo version:** bcebb2e3 <!-- Please specify commit or tag version. --> **Current behavior:** The compiler panics when trying to compile and run this test: ```rust impl U256TryIntoU64 of TryInto<u256, u64> { #[inline(always)] ...
this is definitely a bug - it also happens when we inline the code "by hand" .
2023-05-30T08:30:01Z
1.3
2023-06-28T05:25:25Z
2dca6e26696859c0e70910023110500d6bc2671b
[ "optimizations::match_optimizer::test::match_optimizer::arm_pattern_destructure", "test::lowering::implicits", "optimizations::match_optimizer::test::match_optimizer::option" ]
[ "test::lowering_phases::tests", "test::lowering::rebindings", "test::lowering::assignment", "test::lowering::tuple", "test::lowering::enums", "test::lowering::error_propagate", "test::lowering::constant", "optimizations::delay_var_def::test::delay_var_def::move_literals", "lower::usage::test::inlini...
[]
[]
auto_2025-06-10
AmbientRun/Ambient
212
AmbientRun__Ambient-212
[ "108" ]
dd846a3eeea496450dbeb66727fcaa4fb7723261
diff --git a/crates/project/src/lib.rs b/crates/project/src/lib.rs --- a/crates/project/src/lib.rs +++ b/crates/project/src/lib.rs @@ -21,7 +21,7 @@ pub struct Manifest { #[serde(default)] pub components: HashMap<IdentifierPathBuf, NamespaceOrComponent>, #[serde(default)] - pub concepts: HashMap<Ident...
diff --git a/crates/project/src/tests.rs b/crates/project/src/tests.rs --- a/crates/project/src/tests.rs +++ b/crates/project/src/tests.rs @@ -44,13 +44,14 @@ fn can_parse_tictactoe_toml() { .into() )]), concepts: HashMap::from_iter([( - Identifier::new("cell")....
Allow the use of namespaces in concept definitions At present, concepts are restricted to single identifiers. This means that there's no way to organise a group of related concepts together, other than putting them in another project. This should be relatively simple to do (switch to using `IdentifierPathBuf` instea...
Hi, can I work on it? Just found this extremely cool project today, and I think this issue would be a good start for me to learn more of the codebase. :) Hi! Yeah, go for it - note that this only really touches our Rust API macro right now (concepts are purely a guest-side feature at present), so I'm not sure if y...
2023-03-05T01:05:58Z
0.1
2023-03-06T16:03:23Z
dd846a3eeea496450dbeb66727fcaa4fb7723261
[ "tests::can_parse_versions", "tests::can_validate_identifiers", "tests::can_convert_component_types", "tests::can_parse_manifest_with_namespaces", "tests::can_parse_tictactoe_toml", "ambient_project::tests::will_error_on_undocumented_namespace", "ambient_project::tests::can_accept_no_components", "amb...
[]
[]
[]
auto_2025-05-29
AmbientRun/Ambient
211
AmbientRun__Ambient-211
[ "200" ]
f94fd3d7b00c89d591f73449c28a41b68a82c0e3
diff --git a/crates/ecs/src/entity.rs b/crates/ecs/src/entity.rs --- a/crates/ecs/src/entity.rs +++ b/crates/ecs/src/entity.rs @@ -1,19 +1,15 @@ use std::{ - self, - fmt::{self, Debug}, - iter::Flatten, + self, fmt::{self, Debug}, iter::Flatten }; use ambient_std::sparse_vec::SparseVec; use itertools:...
diff --git a/crates/ecs/src/entity.rs b/crates/ecs/src/entity.rs --- a/crates/ecs/src/entity.rs +++ b/crates/ecs/src/entity.rs @@ -172,6 +168,29 @@ impl Entity { pub fn is_empty(&self) -> bool { self.len() == 0 } + + /// Asserts that all components in this Entity have the provided attribute. + ...
Add Entity attribute assertions It would be useful to assert that all components in an `Entity` have a specific attribute, for example `Networked` to ensure that all components you are adding to the entity will also be mirrored on the client. Currently, non-networked components are silently ignored, and can lead to ...
I can do this one
2023-03-04T20:25:07Z
0.1
2023-03-06T08:38:49Z
dd846a3eeea496450dbeb66727fcaa4fb7723261
[ "serialization::test::test_serialize_world_without_resources", "component::test::manual_component", "component::test::leak_test", "events::test_events", "component_ser::test::test_serialize_component", "component::test::component_macro", "serialization::test::test_deserialize_bad_world", "location::te...
[]
[]
[]
auto_2025-05-29
AmbientRun/Ambient
210
AmbientRun__Ambient-210
[ "207" ]
7adbe0527127f26f17805add118a3d0b089d54ec
diff --git a/Cargo.lock b/Cargo.lock --- a/Cargo.lock +++ b/Cargo.lock @@ -984,6 +984,7 @@ dependencies = [ "ambient_ecs", "paste", "serde", + "serde_json", "thiserror", "toml 0.7.2", ] diff --git a/crates/project/Cargo.toml b/crates/project/Cargo.toml --- a/crates/project/Cargo.toml +++ b/crates/project/Car...
diff --git a/crates/project/src/tests.rs b/crates/project/src/tests.rs --- a/crates/project/src/tests.rs +++ b/crates/project/src/tests.rs @@ -1,9 +1,10 @@ -use std::collections::HashMap; +use std::{collections::HashMap, num::NonZeroUsize}; use ambient_ecs::primitive_component_definitions; use crate::{ - Build...
Support version suffixes in Ambient project version parser In the `ambient_project` crate, we parse the `version` field in project manifests. However, I purposely kept it simple and only implemented `major.minor.patch` versioning, which means you can't add suffixes to the version like `-dev` or `-rc`. It would be nice ...
2023-03-04T12:51:55Z
0.1
2023-03-15T16:06:58Z
dd846a3eeea496450dbeb66727fcaa4fb7723261
[ "tests::can_convert_component_types", "tests::can_parse_rust_build_settings", "tests::can_parse_versions", "tests::can_parse_concepts_with_documented_namespace_from_manifest", "tests::can_validate_identifiers", "tests::can_parse_manifest_with_namespaces", "tests::can_parse_tictactoe_toml" ]
[]
[]
[]
auto_2025-05-29
HigherOrderCO/Bend
618
HigherOrderCO__Bend-618
[ "617" ]
978162739f3b0b839ae230960b4eab1ad50759d3
diff --git a/CHANGELOG.md b/CHANGELOG.md --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -5,6 +5,12 @@ All notable changes to this project will be documented in this file. The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.1.0/), and this project does not currently adhere to a particular versioning sc...
diff --git a/tests/golden_tests.rs b/tests/golden_tests.rs --- a/tests/golden_tests.rs +++ b/tests/golden_tests.rs @@ -221,7 +221,10 @@ fn readback_hvm() { #[test] fn simplify_matches() { run_golden_test_dir(function_name!(), &|code, path| { - let diagnostics_cfg = DiagnosticsConfig::new(Severity::Error, true);...
Irrefutable match optimization binding issues ### Reproducing the behavior The irrefutable match optimization breaks any match expression not inside of a lambda. For example: ```python l = 1001 v1 = match l { x: x } v2 = match l { x: l } v3 = match [] { x: 2002 } v4 = match l = 3003 { x: x...
2024-07-04T19:28:38Z
0.2
2024-07-05T13:20:03Z
dc14ed2e30cddeef83930a1ac062ab376fa1fc51
[ "simplify_matches" ]
[ "fun::num_to_from_bits", "readback_hvm", "compile_entrypoint", "scott_triggers_unused", "parse_file", "compile_file_o_no_all", "mutual_recursion", "desugar_file", "encode_pattern_match", "compile_file", "compile_file_o_all", "compile_long" ]
[ "examples", "linear_readback", "run_file", "cli" ]
[]
auto_2025-05-29
FyroxEngine/Fyrox
278
FyroxEngine__Fyrox-278
[ "277" ]
105845eb9917cd4893699c29f0254a5ac963e634
diff --git a/fyrox-core-derive/src/inspect/args.rs b/fyrox-core-derive/src/inspect/args.rs --- a/fyrox-core-derive/src/inspect/args.rs +++ b/fyrox-core-derive/src/inspect/args.rs @@ -56,6 +56,12 @@ pub struct FieldArgs { #[darling(default)] pub expand_subtree: bool, + /// `#[inspect(getter = "<path>")]` ...
diff --git a/fyrox-core-derive/tests/it/inspect.rs b/fyrox-core-derive/tests/it/inspect.rs --- a/fyrox-core-derive/tests/it/inspect.rs +++ b/fyrox-core-derive/tests/it/inspect.rs @@ -4,6 +4,21 @@ use std::any::TypeId; use fyrox_core::inspect::{Inspect, PropertyInfo}; +fn default_prop() -> PropertyInfo<'static> { +...
Add a `getter` attribute for `Inspect` proc macro Sometimes there is a need for custom getter for a property. For example - https://github.com/FyroxEngine/Fyrox/blob/master/src/scene/transform.rs#L99. Currently there is no way to specify a getter function for `Inspect` proc macro. I think something like this should wo...
@toyboot4e you're the master of proc macros, your help would be invaluable. Thank you for calling me! And sorry for the absense. I suggest allowing any path in scope: ```rust use std::ops::Deref; #[derive(Inspect)] struct Foo { #[inspect(getter = Self::get_bar)] bar: u32 #[inspect(getter = Deref::de...
2022-01-18T12:33:33Z
0.24
2022-01-18T22:50:20Z
105845eb9917cd4893699c29f0254a5ac963e634
[ "visit::basic::skip_attr", "inspect::inspect_attributes", "inspect::inspect_struct", "inspect::inspect_default", "inspect::inspect_prop_key_constants", "visit::basic::named_fields", "visit::basic::generic_enum", "inspect::inspect_enum", "visit::basic::complex_enum", "visit::basic::generics", "vi...
[]
[]
[]
auto_2025-05-29
FyroxEngine/Fyrox
195
FyroxEngine__Fyrox-195
[ "193" ]
f8b81ac1601727a09b002c06ff887ec418fd3547
diff --git a/rg3d-core-derive/src/inspect.rs b/rg3d-core-derive/src/inspect.rs --- a/rg3d-core-derive/src/inspect.rs +++ b/rg3d-core-derive/src/inspect.rs @@ -5,7 +5,7 @@ mod utils; use darling::{ast, FromDeriveInput}; use proc_macro2::TokenStream as TokenStream2; -use quote::{format_ident, quote}; +use quote::quot...
diff --git a/rg3d-core-derive/tests/it/inspect.rs b/rg3d-core-derive/tests/it/inspect.rs --- a/rg3d-core-derive/tests/it/inspect.rs +++ b/rg3d-core-derive/tests/it/inspect.rs @@ -46,14 +46,16 @@ fn inspect_attributes() { #[derive(Debug, Default, Inspect)] pub struct Data { + // NOTE: Even though this...
`Inspect` proc macro should also generate constants with field names When using `Inspector` you forced to use string literals to distinguish `PropertyChanged` messages, using raw string literals is very bug prone and this could be improved by using generated string literals which then could be used as `TypeName::FIELD_...
Let me try :)
2021-10-03T15:26:44Z
0.23
2021-10-04T09:40:14Z
92987bc6c4ed61fe64090c124830eafe46308b56
[ "inspect::inspect_attributes", "inspect::inspect_default", "inspect::inspect_struct", "visit::basic::named_fields", "visit::basic::complex_enum", "inspect::inspect_enum", "visit::basic::generic_enum", "visit::basic::generics", "visit::basic::tuple_struct", "visit::basic::unit_struct", "visit::ba...
[]
[]
[]
auto_2025-05-29
GraphiteEditor/Graphite
2,121
GraphiteEditor__Graphite-2121
[ "2115" ]
79b4f4df7bdfe41d68dc98be21b6f1730366f48b
diff --git a/Cargo.lock b/Cargo.lock --- a/Cargo.lock +++ b/Cargo.lock @@ -2386,6 +2386,7 @@ dependencies = [ "js-sys", "kurbo", "log", + "math-parser", "node-macro", "num-derive", "num-traits", diff --git a/editor/src/messages/portfolio/document/node_graph/document_node_definitions.rs b/editor/src/messages...
diff --git a/libraries/math-parser/src/lib.rs b/libraries/math-parser/src/lib.rs --- a/libraries/math-parser/src/lib.rs +++ b/libraries/math-parser/src/lib.rs @@ -27,7 +27,7 @@ mod tests { use super::*; - const EPSILON: f64 = 1e10_f64; + const EPSILON: f64 = 1e-10_f64; macro_rules! test_end_to_end{ ($($nam...
Math node for running custom expressions with A and B The new maths parser introduced in #2033 is currently only utilised to immediately evaluate expressions in number inputs. To expand its utility, a new node should be introduced to run an expression during the runtime of the graph. In future, this node could take ...
hi @Keavon , I'm interested to picking it up , could you please assign it to me . @rajiknows thanks for your interest! We do issue assignments near the end of the PR lifecycle now, so we'll assign it once you have a working PR that's looking like it has progress towards being merged. Good luck and thanks! Hi @Keavon...
2024-11-28T23:53:40Z
0.11
2024-12-17T07:08:15Z
79b4f4df7bdfe41d68dc98be21b6f1730366f48b
[ "graphic_element::renderer::quad::intersect_lines", "graphic_element::renderer::quad::intersect_quad", "graphic_element::renderer::quad::offset_quad", "graphic_element::renderer::quad::quad_contains", "ops::test::dot_product_function", "ops::test::foo", "ops::test::identity_node", "raster::adjustments...
[ "executer::tests::test_addition", "executer::tests::test_division", "executer::tests::test_multiplication", "executer::tests::test_negation", "executer::tests::test_power", "executer::tests::test_sqrt", "executer::tests::test_subtraction", "parser::tests::test_parse_binary_add", "parser::tests::test...
[]
[]
auto_2025-05-29
autozimu/LanguageClient-neovim
961
autozimu__LanguageClient-neovim-961
[ "914" ]
51fa22f21d993455a974414116f92eff45ac5f01
diff --git a/src/language_server_protocol.rs b/src/language_server_protocol.rs --- a/src/language_server_protocol.rs +++ b/src/language_server_protocol.rs @@ -279,14 +279,22 @@ impl LanguageClient { match changes { DocumentChanges::Edits(ref changes) => { for e in chan...
diff --git a/src/utils.rs b/src/utils.rs --- a/src/utils.rs +++ b/src/utils.rs @@ -130,7 +130,89 @@ impl<P: AsRef<Path> + std::fmt::Debug> ToUrl for P { } } -pub fn apply_TextEdits(lines: &[String], edits: &[TextEdit]) -> Fallible<Vec<String>> { +fn position_to_offset(lines: &[String], position: &Position) -> u...
Cursor jumps when clangd automatically inserts headers - Did you upgrade to latest plugin version? Yes - Did you upgrade to/compile latest binary? Run shell command `bin/languageclient --version` to get its version number. I compiled the latest master - (Neovim users only) Did you check output of `:checkheal...
Yes, I can confirm this behavior. In fact, the cursor does not jump but when the header file is inserted, the cursor is not adjusted properly. This is very annoying. Correct me if I am wrong.
2020-01-23T21:40:16Z
0.1
2020-02-27T19:47:25Z
a20a7201f91f1a67f42c8720d21b7bbce61bd498
[ "utils::test_apply_TextEdit_overlong_end", "utils::test_apply_TextEdit", "utils::test_escape_single_quote", "utils::test_diff_value", "utils::test_expand_json_path", "utils::test_vim_cmd_args_to_value", "viewport::test_overlaps", "viewport::test_new" ]
[]
[]
[]
auto_2025-05-29
autozimu/LanguageClient-neovim
1,194
autozimu__LanguageClient-neovim-1194
[ "1193" ]
a20a7201f91f1a67f42c8720d21b7bbce61bd498
diff --git a/autoload/LanguageClient.vim b/autoload/LanguageClient.vim --- a/autoload/LanguageClient.vim +++ b/autoload/LanguageClient.vim @@ -896,6 +896,22 @@ function! LanguageClient#Notify(method, params) abort \ })) endfunction +function! LanguageClient#textDocument_semanticTokensFull(...) abort...
diff --git a/src/language_server_protocol.rs b/src/language_server_protocol.rs --- a/src/language_server_protocol.rs +++ b/src/language_server_protocol.rs @@ -4031,16 +3739,223 @@ fn merged_initialization_options( .combine(workspace_initialization_options); if initialization_options.is_null() { - ...
Preset LanguageClient_semanticHighlightMaps for known servers ## Is your feature request related to a problem? Please describe. clangd and rust-analyzer (and maybe others) have semantic highlighting, would be nice if it worked out of the box. ## Describe the solution you'd like As far as I understand, vim has ...
That is a great idea. We probably need to adjust the semantic highlighting implementation first though, as I believe that was a proposal in 3.16 when 3.15 was the current protocol version and it eventually got replaced/renamed by `semantic tokens`, which changes a few detail implementations. So probably a good place to...
2021-02-08T21:06:06Z
0.1
2021-02-24T20:07:17Z
a20a7201f91f1a67f42c8720d21b7bbce61bd498
[ "extensions::gopls::test::test_parse_package_path", "config::server_command::test::test_name_from_command_handles_binary_name", "config::server_command::test::test_name_from_command_handles_binary_path", "extensions::rust_analyzer::test::test_deserialize_generic_runnable", "extensions::rust_analyzer::test::...
[]
[]
[]
auto_2025-05-29
biomejs/biome
2,324
biomejs__biome-2324
[ "2303" ]
75af8016b50476ae32193ec87c475e182925e9e0
diff --git a/CHANGELOG.md b/CHANGELOG.md --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -273,6 +273,8 @@ our [guidelines for writing a good changelog entry](https://github.com/biomejs/b - Implement [#2043](https://github.com/biomejs/biome/issues/2043): The React rule [`useExhaustiveDependencies`](https://biomejs.dev/linte...
diff --git a/crates/biome_configuration/src/linter/rules.rs b/crates/biome_configuration/src/linter/rules.rs --- a/crates/biome_configuration/src/linter/rules.rs +++ b/crates/biome_configuration/src/linter/rules.rs @@ -2620,6 +2620,9 @@ pub struct Nursery { #[doc = "Disallow using export or module.exports in files...
πŸ“Ž Implement `lint/noFlatMapIdentity` - `clippy/flat_map_identity` ### Description Implement [flat_map_identity](https://rust-lang.github.io/rust-clippy/master/#/flat_map_identity). **Want to contribute?** Lets you know you are interested! We will assign you to the issue to prevent several people to work on the sam...
i'm interested
2024-04-06T05:05:24Z
0.5
2024-04-14T14:31:41Z
2425ce767fc6a93bbd091a5a9ec18beb5476e204
[ "diagnostics::test::diagnostic_size", "diagnostics::test::deserialization_quick_check", "diagnostics::test::deserialization_error", "diagnostics::test::config_already_exists" ]
[]
[]
[]
auto_2025-06-09
biomejs/biome
2,317
biomejs__biome-2317
[ "2245" ]
2b1919494d8eb62221db1742552fea20698d585d
diff --git a/CHANGELOG.md b/CHANGELOG.md --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -13,6 +13,10 @@ our [guidelines for writing a good changelog entry](https://github.com/biomejs/b ### Analyzer +#### Bug fixes + +- Now Biome can detect the script language in Svelte and Vue script blocks more reliably ([#2245](https:...
diff --git a/crates/biome_cli/tests/cases/handle_svelte_files.rs b/crates/biome_cli/tests/cases/handle_svelte_files.rs --- a/crates/biome_cli/tests/cases/handle_svelte_files.rs +++ b/crates/biome_cli/tests/cases/handle_svelte_files.rs @@ -6,26 +6,38 @@ use biome_service::DynRef; use bpaf::Args; use std::path::Path; ...
πŸ› In Svelte context=module Scripts error "import { type x ident }' are a TypeScript only feature." ### Environment information ```block CLI: Version: 1.6.3 Color support: true Platform: CPU Architecture: aarch64 OS: macos Envi...
MouseEvent also fails with code below, interestingly only that part, interface itself does not produce any errors. "Type annotations are a TypeScript only feature. Convert your file to a TypeScript file or remove the syntax." ```svelte <script context="module" lang="ts"> export interface ButtonProps { onclick...
2024-04-05T08:58:51Z
0.5
2024-04-05T11:40:48Z
2425ce767fc6a93bbd091a5a9ec18beb5476e204
[ "diagnostics::test::termination_diagnostic_size", "execute::migrate::prettier::test::ok", "metrics::tests::test_timing", "execute::migrate::prettier::test::some_properties", "metrics::tests::test_layer", "commands::check_options" ]
[]
[]
[]
auto_2025-06-09
biomejs/biome
2,300
biomejs__biome-2300
[ "2296" ]
60671ec3a4c59421583d5d1ec8cfe30d45b27cd7
diff --git a/CHANGELOG.md b/CHANGELOG.md --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -167,6 +167,12 @@ our [guidelines for writing a good changelog entry](https://github.com/biomejs/b ``` </details> +- Added new `--staged` flag to the `check`, `format` and `lint` subcommands. + + This new option allows users to a...
diff --git a/crates/biome_cli/src/commands/mod.rs b/crates/biome_cli/src/commands/mod.rs --- a/crates/biome_cli/src/commands/mod.rs +++ b/crates/biome_cli/src/commands/mod.rs @@ -510,6 +525,34 @@ pub(crate) fn get_stdin( Ok(stdin) } +fn get_files_to_process( + since: Option<String>, + changed: bool, + ...
πŸ“Ž Feature: --staged option to simplify the creation of git hook scripts ### Description ## Problem Statement As of today, `biome` does not provide a direct mechanism to select (for linting, formatting or checking) only the files that are staged for a commit. We have a "similar" flag, `--changed`, but its main...
2024-04-04T10:25:43Z
0.5
2024-04-12T14:21:49Z
2425ce767fc6a93bbd091a5a9ec18beb5476e204
[ "diagnostics::test::termination_diagnostic_size", "execute::migrate::ignorefile::tests::comments_and_empty_lines", "execute::migrate::ignorefile::tests::negated_pattern", "execute::migrate::ignorefile::tests::empty", "execute::migrate::eslint_to_biome::tests::flat_config_single_config_object", "execute::m...
[]
[]
[]
auto_2025-06-09
biomejs/biome
2,292
biomejs__biome-2292
[ "2288" ]
cc04271f337cdd5a8af583aed09a44cb72b17a82
diff --git a/CHANGELOG.md b/CHANGELOG.md --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -15,6 +15,10 @@ our [guidelines for writing a good changelog entry](https://github.com/biomejs/b ### CLI +#### Bug fixes + +- Biome now tags the diagnostics emitted by `organizeImports` and `formatter` with correct severity levels, s...
diff --git a/crates/biome_cli/tests/cases/diagnostics.rs b/crates/biome_cli/tests/cases/diagnostics.rs --- a/crates/biome_cli/tests/cases/diagnostics.rs +++ b/crates/biome_cli/tests/cases/diagnostics.rs @@ -137,3 +137,60 @@ fn max_diagnostics_verbose() { result, )); } + +#[test] +fn diagnostic_level() { ...
πŸ› `organizeImports` causes check to fail but does not print errors with `--diagnostic-level=error` ### Environment information ```block > biome-sandbox@1.0.0 rage > biome rage CLI: Version: 1.6.4 Color support: true Platform: CPU Architecture: x86_64 ...
2024-04-04T03:40:59Z
0.5
2024-04-07T04:36:07Z
2425ce767fc6a93bbd091a5a9ec18beb5476e204
[ "cases::protected_files::not_process_file_from_stdin_verbose_lint", "cases::config_extends::extends_should_raise_an_error_for_unresolved_configuration", "cases::overrides_formatter::does_handle_included_file_and_disable_formatter", "cases::config_extends::extends_should_raise_an_error_for_unresolved_configura...
[ "diagnostics::test::termination_diagnostic_size", "execute::migrate::prettier::test::ok", "execute::migrate::prettier::test::some_properties", "metrics::tests::test_timing", "metrics::tests::test_layer", "commands::check_options" ]
[ "commands::explain::explain_help" ]
[]
auto_2025-06-09
biomejs/biome
2,250
biomejs__biome-2250
[ "2243" ]
cad1cfd1e8fc7440960213ce49130670dc90491d
diff --git a/CHANGELOG.md b/CHANGELOG.md --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -13,6 +13,10 @@ our [guidelines for writing a good changelog entry](https://github.com/biomejs/b ### Analyzer +#### Bug fixes + +- An operator with no spaces around in a binary expression no longer breaks the js analyzer ([#2243](htt...
diff --git a/crates/biome_js_analyze/src/utils.rs b/crates/biome_js_analyze/src/utils.rs --- a/crates/biome_js_analyze/src/utils.rs +++ b/crates/biome_js_analyze/src/utils.rs @@ -186,4 +186,27 @@ mod test { assert_eq!(position, None); } + + #[test] + fn find_variable_position_when_the_operator_has...
πŸ“ biom crashed ### Environment information ```bash ❯ pnpm biome check . --apply Biome encountered an unexpected error This is a bug in Biome, not an error in your code, and we would appreciate it if you could report it to https://github.com/biomejs/biome/issues/ along with the following information to help us fix...
This error is thrown from this function. Would you please help us narrow down the source code file which triggers this error? https://github.com/biomejs/biome/blob/edacd6e6e2df813be67beec18fa84e0b7c0c5be9/crates/biome_js_analyze/src/utils.rs#L79-L112 ### New information: This is caused by a minified file If I f...
2024-03-31T14:34:47Z
0.5
2024-03-31T16:09:30Z
2425ce767fc6a93bbd091a5a9ec18beb5476e204
[ "utils::test::find_variable_position_when_the_operator_has_no_spaces_around" ]
[ "assists::correctness::organize_imports::test_order", "globals::javascript::node::test_order", "globals::javascript::language::test_order", "globals::module::node::test_order", "globals::javascript::web::test_order", "globals::typescript::node::test_order", "globals::typescript::language::test_order", ...
[]
[]
auto_2025-06-09
biomejs/biome
2,220
biomejs__biome-2220
[ "2217" ]
b6d4c6e8108c69882d76863a1340080fd2c1fbdc
diff --git a/CHANGELOG.md b/CHANGELOG.md --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -73,6 +73,10 @@ our [guidelines for writing a good changelog entry](https://github.com/biomejs/b - Add rule [noEvolvingAny](https://biomejs.dev/linter/rules/no-evolving-any) to disallow variables from evolving into `any` type through r...
diff --git a/crates/biome_diagnostics_categories/src/categories.rs b/crates/biome_diagnostics_categories/src/categories.rs --- a/crates/biome_diagnostics_categories/src/categories.rs +++ b/crates/biome_diagnostics_categories/src/categories.rs @@ -124,8 +124,8 @@ define_categories! { "lint/nursery/noNodejsModules":...
πŸ’… Rename `noSemicolonInJsx` rule? ### Environment information ```bash irrelevant ``` ### Rule name noSemicolonInJsx ### Playground link https://biomejs.dev/playground/?code=LwAvACAAaABhAGQAIAB0AG8AIABmAGkAbABsACAAdABoAGUAIAAiAFAAbABhAHkAZwByAG8AdQBuAGQAIABsAGkAbgBrACIAIABmAGkAZQBsAGQAIAB3AGkAdABoACAAcwBvAG0AZQB0...
@fujiyamaorange would you like to help? Unfortunately we didn't catch the name of the name early. Thankfully it's still in nursery πŸ™‚ @nstepien Thank you for the comment. As you mentioned, >I do realize that it'll end up under the suspicious group though, so maybe that's why it was named noSemicolonInJsx? this...
2024-03-27T00:48:19Z
0.5
2024-03-28T03:06:24Z
2425ce767fc6a93bbd091a5a9ec18beb5476e204
[ "assists::correctness::organize_imports::test_order", "globals::javascript::language::test_order", "globals::javascript::node::test_order", "globals::module::node::test_order", "globals::javascript::web::test_order", "globals::typescript::node::test_order", "globals::typescript::language::test_order", ...
[ "target/debug/build/biome_diagnostics_categories-50cc392058e367b8/out/categories.rs - category (line 6)" ]
[]
[]
auto_2025-06-09
biomejs/biome
2,204
biomejs__biome-2204
[ "2191" ]
62fbec86467946e8d71dcd0098e3d90443208f78
diff --git a/CHANGELOG.md b/CHANGELOG.md --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -9,6 +9,28 @@ New entries must be placed in a section entitled `Unreleased`. Read our [guidelines for writing a good changelog entry](https://github.com/biomejs/biome/blob/main/CONTRIBUTING.md#changelog). +## Unreleased + +### Analyze...
diff --git a/crates/biome_cli/tests/commands/lint.rs b/crates/biome_cli/tests/commands/lint.rs --- a/crates/biome_cli/tests/commands/lint.rs +++ b/crates/biome_cli/tests/commands/lint.rs @@ -1918,6 +1918,52 @@ fn top_level_all_down_level_empty() { )); } +#[test] +fn group_level_disable_recommended_enable_specif...
πŸ’… recommended: false disables all nested rules ### Environment information ```bash CLI: Version: 1.6.2 Color support: true Platform: CPU Architecture: x86_64 OS: linux Environment: BIOME_LOG_DIR: unset NO_...
~~Sorry, I think this is a regression introduced in #2072, I'll fix it ASAP.~~ It's not a regression, it's a long-existing bug.
2024-03-25T17:24:38Z
0.5
2024-03-26T02:48:16Z
2425ce767fc6a93bbd091a5a9ec18beb5476e204
[ "commands::check::check_help", "commands::ci::ci_help", "commands::format::format_help", "commands::format::with_invalid_semicolons_option", "commands::lint::group_level_disable_recommended_enable_specific", "commands::lint::lint_help", "commands::lsp_proxy::lsp_proxy_help", "commands::rage::rage_help...
[ "diagnostics::test::termination_diagnostic_size", "metrics::tests::test_timing", "execute::migrate::prettier::test::ok", "execute::migrate::prettier::test::some_properties", "metrics::tests::test_layer", "commands::check_options", "cases::protected_files::not_process_file_from_stdin_format", "cases::c...
[ "commands::explain::explain_help" ]
[]
auto_2025-06-09
biomejs/biome
2,169
biomejs__biome-2169
[ "2164" ]
95974a106067083c32066eee28ff95cbc3db9a31
diff --git a/CHANGELOG.md b/CHANGELOG.md --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -9,6 +9,30 @@ New entries must be placed in a section entitled `Unreleased`. Read our [guidelines for writing a good changelog entry](https://github.com/biomejs/biome/blob/main/CONTRIBUTING.md#changelog). +## Unreleased + +### Analyze...
diff --git /dev/null b/crates/biome_cli/tests/cases/config_path.rs new file mode 100644 --- /dev/null +++ b/crates/biome_cli/tests/cases/config_path.rs @@ -0,0 +1,55 @@ +use crate::run_cli; +use crate::snap_test::{assert_cli_snapshot, SnapshotPayload}; +use biome_console::BufferConsole; +use biome_fs::MemoryFileSystem;...
--config-path fails with JSONC ### Environment information ```block I am using pre-commit hook, where I've overridden the entry, to benefit from `--config-path` argument, as my config file is in a subdirectory. CLI: Version: 1.6.2 Color support: true Platform: CPU Arc...
Could you please tell us how you use the argument via CLI? I point it to the containing directory of the config file, in this example that would be `biome check --config-path=./src` I'll work on this.
2024-03-23T06:22:32Z
0.5
2024-03-23T14:42:31Z
2425ce767fc6a93bbd091a5a9ec18beb5476e204
[ "cases::config_path::set_config_path", "commands::check::check_help", "commands::ci::ci_help", "commands::format::format_help", "commands::format::with_invalid_semicolons_option", "commands::lint::lint_help", "commands::lsp_proxy::lsp_proxy_help", "commands::migrate::migrate_help", "commands::rage::...
[ "diagnostics::test::termination_diagnostic_size", "execute::migrate::prettier::test::ok", "metrics::tests::test_timing", "execute::migrate::prettier::test::some_properties", "metrics::tests::test_layer", "cases::biome_json_support::ci_biome_json", "cases::biome_json_support::check_biome_json", "cases:...
[ "commands::explain::explain_help" ]
[]
auto_2025-06-09
biomejs/biome
2,116
biomejs__biome-2116
[ "2114" ]
984626de115e4b8f64dec97d3f66ba353ebf1b65
diff --git a/CHANGELOG.md b/CHANGELOG.md --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -9,7 +9,7 @@ New entries must be placed in a section entitled `Unreleased`. Read our [guidelines for writing a good changelog entry](https://github.com/biomejs/biome/blob/main/CONTRIBUTING.md#changelog). -## Ureleased +## Unreleased ...
diff --git /dev/null b/crates/biome_cli/tests/cases/cts_files.rs new file mode 100644 --- /dev/null +++ b/crates/biome_cli/tests/cases/cts_files.rs @@ -0,0 +1,35 @@ +use crate::run_cli; +use crate::snap_test::{assert_cli_snapshot, SnapshotPayload}; +use biome_console::BufferConsole; +use biome_fs::MemoryFileSystem; +us...
πŸ› Typescripts "Module" syntax is invalid for typescript-enabled common js ### Environment information ```block CLI: Version: 1.6.1 Color support: true Platform: CPU Architecture: aarch64 OS: linux Environment: BIOME_LOG_DIR...
2024-03-17T08:06:29Z
0.5
2024-03-18T12:40:11Z
2425ce767fc6a93bbd091a5a9ec18beb5476e204
[ "cases::cts_files::should_allow_using_export_statements" ]
[ "diagnostics::test::termination_diagnostic_size", "metrics::tests::test_timing", "execute::migrate::prettier::test::ok", "execute::migrate::prettier::test::some_properties", "metrics::tests::test_layer", "cases::protected_files::not_process_file_from_stdin_lint", "cases::protected_files::not_process_fil...
[ "commands::explain::explain_help" ]
[]
auto_2025-06-09
biomejs/biome
2,072
biomejs__biome-2072
[ "2028" ]
409eb1083ede5b887e35f4dfa80f860490823b8c
diff --git a/CHANGELOG.md b/CHANGELOG.md --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -9,6 +9,28 @@ New entries must be placed in a section entitled `Unreleased`. Read our [guidelines for writing a good changelog entry](https://github.com/biomejs/biome/blob/main/CONTRIBUTING.md#changelog). +## Ureleased + +### Analyzer...
diff --git a/crates/biome_cli/tests/commands/lint.rs b/crates/biome_cli/tests/commands/lint.rs --- a/crates/biome_cli/tests/commands/lint.rs +++ b/crates/biome_cli/tests/commands/lint.rs @@ -1866,6 +1866,58 @@ fn top_level_not_all_down_level_all() { )); } +#[test] +fn top_level_all_down_level_empty() { + let...
πŸ’… Regression: Disabling one nursery rule disables all nursery rules ### Environment information ```bash CLI: Version: 1.6.0 Color support: true Platform: CPU Architecture: aarch64 OS: macos Environment: BIOME_LOG_DIR: ...
I don't think this is a bug because as the schema says the `lint.rules.all` won't enable nursery rules: ![image](https://github.com/biomejs/biome/assets/10386119/56de79aa-3364-4694-9cb8-4f95bfce493d) If you want to enable all the rules in the nursery group, you should use `lint.rules.nursery.all`. And you can dis...
2024-03-13T03:42:02Z
0.5
2024-03-13T12:17:28Z
2425ce767fc6a93bbd091a5a9ec18beb5476e204
[ "commands::lint::top_level_all_down_level_empty", "commands::version::ok" ]
[ "diagnostics::test::termination_diagnostic_size", "execute::migrate::prettier::test::ok", "metrics::tests::test_timing", "execute::migrate::prettier::test::some_properties", "metrics::tests::test_layer", "commands::check::apply_suggested_error", "cases::protected_files::not_process_file_from_stdin_verbo...
[ "commands::explain::explain_help" ]
[]
auto_2025-06-09
biomejs/biome
2,044
biomejs__biome-2044
[ "1941" ]
57fa9366d1a8635fda6faef7970c0d53c6538399
diff --git a/CHANGELOG.md b/CHANGELOG.md --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -56,6 +56,11 @@ our [guidelines for writing a good changelog entry](https://github.com/biomejs/b ### Parser +#### Bug fixes + +- JavaScript lexer is now able to lex regular expression literals with escaped non-ascii chars ([#1941](ht...
diff --git a/crates/biome_js_parser/src/syntax/expr.rs b/crates/biome_js_parser/src/syntax/expr.rs --- a/crates/biome_js_parser/src/syntax/expr.rs +++ b/crates/biome_js_parser/src/syntax/expr.rs @@ -156,6 +156,7 @@ pub(crate) fn parse_expression_or_recover_to_next_statement( // new-line"; // /^[ΩŠΩΩ…Ψ¦Ψ§Ω…Ψ¦β€Ψ¦Ψ§Ψ³Ϋ†Ω†Ψ―]/i; //r...
πŸ› Including smart-quote `β€˜` with escape `\` confuses the JS lexer ### Environment information ```block CLI: Version: 1.5.3 Color support: true Platform: CPU Architecture: x86_64 OS: macos Environment: BIOME_LOG_DIR: ...
An observation: the crash of the playground seems to be the result of an out of range position acquired from the diagnostics. So it should be automatically fixed if the root cause is fixed. And apart from smart quotes, Chinese characters will also trigger the similar problem. Just type (or copy paste) `δΈ€'` into the p...
2024-03-11T11:40:02Z
0.5
2024-03-11T15:33:56Z
2425ce767fc6a93bbd091a5a9ec18beb5476e204
[ "tests::parser::ok::literals_js" ]
[ "lexer::tests::bang", "lexer::tests::are_we_jsx", "lexer::tests::bigint_literals", "lexer::tests::at_token", "lexer::tests::binary_literals", "lexer::tests::all_whitespace", "lexer::tests::consecutive_punctuators", "lexer::tests::complex_string_1", "lexer::tests::division", "lexer::tests::block_co...
[]
[]
auto_2025-06-09
biomejs/biome
2,030
biomejs__biome-2030
[ "2008" ]
870989d3675ff58707b3a801a407f03a2e790f04
diff --git a/crates/biome_fs/src/fs.rs b/crates/biome_fs/src/fs.rs --- a/crates/biome_fs/src/fs.rs +++ b/crates/biome_fs/src/fs.rs @@ -81,81 +81,83 @@ pub trait FileSystem: Send + Sync + RefUnwindSafe { should_error_if_file_not_found: bool, ) -> AutoSearchResultAlias { let mut from_parent = false...
diff --git a/crates/biome_cli/tests/commands/rage.rs b/crates/biome_cli/tests/commands/rage.rs --- a/crates/biome_cli/tests/commands/rage.rs +++ b/crates/biome_cli/tests/commands/rage.rs @@ -83,6 +83,37 @@ fn with_configuration() { )); } +#[test] +fn with_jsonc_configuration() { + let mut fs = MemoryFileSyst...
πŸ› biome.jsonc is not being used. ### Environment information ```block CLI: Version: 1.6.0 Color support: true Platform: CPU Architecture: aarch64 OS: macos Environment: BIOME_LOG_DIR: unset NO_COLOR: ...
Yeah I can see from the biome rage output that the configuration is unset I have the same problem, the `biome.jsonc` is simply ignored. macOS 14.1 (arm). The problem is in `auto_search` loops. I want to give this a try :)
2024-03-10T10:31:42Z
0.5
2024-03-11T20:36:34Z
2425ce767fc6a93bbd091a5a9ec18beb5476e204
[ "commands::version::ok" ]
[ "diagnostics::test::termination_diagnostic_size", "metrics::tests::test_timing", "execute::migrate::prettier::test::ok", "execute::migrate::prettier::test::some_properties", "metrics::tests::test_layer", "cases::protected_files::not_process_file_from_stdin_verbose_lint", "commands::check::apply_suggeste...
[ "commands::explain::explain_help" ]
[]
auto_2025-06-09
biomejs/biome
1,935
biomejs__biome-1935
[ "1848" ]
ad0a0b57a1a16b62536619ccf8093a131311f00f
diff --git a/crates/biome_js_analyze/src/lint/a11y/use_valid_aria_role.rs b/crates/biome_js_analyze/src/lint/a11y/use_valid_aria_role.rs --- a/crates/biome_js_analyze/src/lint/a11y/use_valid_aria_role.rs +++ b/crates/biome_js_analyze/src/lint/a11y/use_valid_aria_role.rs @@ -42,7 +42,7 @@ declare_rule! { /// </> ...
diff --git a/crates/biome_diagnostics_categories/src/categories.rs b/crates/biome_diagnostics_categories/src/categories.rs --- a/crates/biome_diagnostics_categories/src/categories.rs +++ b/crates/biome_diagnostics_categories/src/categories.rs @@ -119,6 +119,7 @@ define_categories! { "lint/nursery/noExcessiveNested...
β˜‚οΈ Lint rules for testing frameworks ### Description We want to implement some lint rules to help people with their tests. I baked this list from the `eslint-plugin-jest` and evaluated only those rules that **aren't** pedantic and can be enabled for multiple test runners: `mocha`, `jest`, `node:test`, etc. Feel f...
I am picking `noDuplicateTestHooks`. Can I work on `noExportsInTest`? I am working on `noNestedTestSuites`. I will work on `noMisplacedAssertion` I am working on `noDoneCallback`.
2024-02-28T09:22:02Z
0.5
2024-04-15T13:13:42Z
2425ce767fc6a93bbd091a5a9ec18beb5476e204
[ "assists::correctness::organize_imports::test_order", "globals::javascript::node::test_order", "globals::javascript::language::test_order", "globals::javascript::web::test_order", "globals::typescript::node::test_order", "globals::module::node::test_order", "globals::typescript::language::test_order", ...
[ "directive_ext::tests::js_directive_inner_string_text", "expr_ext::test::doesnt_static_member_expression_deep", "expr_ext::test::matches_simple_call", "expr_ext::test::matches_static_member_expression", "expr_ext::test::matches_static_member_expression_deep", "numbers::tests::base_10_float", "numbers::t...
[]
[]
auto_2025-06-09
biomejs/biome
1,912
biomejs__biome-1912
[ "1750" ]
2a841396834f030946f469143b1b6c632a744f85
diff --git a/CHANGELOG.md b/CHANGELOG.md --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -378,6 +378,12 @@ our [guidelines for writing a good changelog entry](https://github.com/biomejs/b ``` Contributed by @fujiyamaorange +- Add rule [noBarrelFile](https://biomejs.dev/linter/rules/no-barrel-file), to report the usage...
diff --git a/crates/biome_diagnostics_categories/src/categories.rs b/crates/biome_diagnostics_categories/src/categories.rs --- a/crates/biome_diagnostics_categories/src/categories.rs +++ b/crates/biome_diagnostics_categories/src/categories.rs @@ -102,6 +102,7 @@ define_categories! { "lint/correctness/useValidForDi...
πŸ“Ž Create lint rules for barrel files ### Description We would want to implement the rules that belong to: https://github.com/thepassle/eslint-plugin-barrel-files - [x] `noBarrelFile` -> [barrel-files/avoid-barrel-files](https://github.com/thepassle/eslint-plugin-barrel-files/blob/main/docs/rules/avoid-barrel-fil...
Can I work on "noReExportAll"?? Sure go ahead! I made a pr for `noNamespaceImport`. I'll try `noBarrelFile`:)
2024-02-25T16:24:35Z
0.4
2024-02-28T14:27:09Z
b8cf046560376b8b19042b95a518e45bdcbbac22
[ "analyzers::correctness::no_nonoctal_decimal_escape::tests::test_is_octal_escape_sequence", "analyzers::correctness::no_nonoctal_decimal_escape::tests::test_get_unicode_escape", "analyzers::correctness::no_nonoctal_decimal_escape::tests::test_parse_escape_sequences", "globals::browser::test_order", "globals...
[ "target/debug/build/biome_diagnostics_categories-d35c1acfd32ea72c/out/categories.rs - category (line 6)" ]
[]
[]
auto_2025-06-09
biomejs/biome
1,881
biomejs__biome-1881
[ "927" ]
c3a05f78293fe8153b713922a54069da0214d1fb
diff --git a/crates/biome_js_analyze/src/options.rs b/crates/biome_js_analyze/src/options.rs --- a/crates/biome_js_analyze/src/options.rs +++ b/crates/biome_js_analyze/src/options.rs @@ -142,6 +142,7 @@ pub type NoSelfAssign = <analyzers::correctness::no_self_assign::NoSelfAssign as biome_analyze::Rule>::Options; ...
diff --git a/crates/biome_diagnostics_categories/src/categories.rs b/crates/biome_diagnostics_categories/src/categories.rs --- a/crates/biome_diagnostics_categories/src/categories.rs +++ b/crates/biome_diagnostics_categories/src/categories.rs @@ -117,6 +117,7 @@ define_categories! { "lint/nursery/noNodejsModules":...
πŸ“Ž `lint/noSuspiciousSemicolonInJSX`: disallow suspicious `;` in JSX ### Description I don't know if such a lint rule exists in other tools, but this is an issue I've ran into a few times before. Basically, I'd like to have a rule to catch semicolons that may have been introduced in the JSX after a copy/paste or...
Have you some nameΒ·s to suggest? `noSuspiciousSemicolonInJSX` maybe? @Conaclos May I try this issue? All yours @fujiyamaorange
2024-02-21T13:20:33Z
0.4
2024-02-26T11:22:20Z
b8cf046560376b8b19042b95a518e45bdcbbac22
[ "configuration::diagnostics::test::diagnostic_size", "diagnostics::test::diagnostic_size", "configuration::diagnostics::test::deserialization_quick_check", "file_handlers::test_order", "matcher::pattern::test::test_matches_path", "matcher::pattern::test::test_path_join", "configuration::test::resolver_t...
[ "target/debug/build/biome_diagnostics_categories-d35c1acfd32ea72c/out/categories.rs - category (line 6)" ]
[]
[]
auto_2025-06-09
biomejs/biome
1,806
biomejs__biome-1806
[ "1786" ]
dca6a7a8a7db39789cfb0fa8164d8b7a47e9becd
diff --git a/CHANGELOG.md b/CHANGELOG.md --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -199,6 +199,27 @@ Read our [guidelines for writing a good changelog entry](https://github.com/biom Contributed by @Conaclos +- [useNamingConvention](https://biomejs.dev/linter/rules/use-naming-convention) now supports [unicase](htt...
diff --git a/crates/biome_js_analyze/src/utils/case.rs b/crates/biome_js_analyze/src/utils/case.rs --- a/crates/biome_js_analyze/src/utils/case.rs +++ b/crates/biome_js_analyze/src/utils/case.rs @@ -297,6 +299,159 @@ impl std::fmt::Display for Case { mod tests { use super::*; + #[test] + fn test_case_iden...
πŸ’… `useNamingConvention` can suggest useless fix ### Environment information Used [`biome-linux-x64` binary from the release](https://github.com/biomejs/biome/releases/tag/cli%2Fv1.5.3) (sha256sum: `adf8a6029f43ac6eb07c86519f7ff08875915acec082d0be9393888044806243`) ``` CLI: Version: 1....
I suppose we should ignore identifiers that aren't UTF-8 > I suppose we should ignore identifiers that aren't UTF-8 AFAIK, Korean characters can be represented as UTF-8. Not 100% sure, but most likely concepts such as camel casing and such only apply to _latin_ scripts. Note that Koreans mostly do not prefer to w...
2024-02-13T12:13:06Z
0.4
2024-02-13T16:07:03Z
b8cf046560376b8b19042b95a518e45bdcbbac22
[ "analyzers::correctness::no_nonoctal_decimal_escape::tests::test_get_unicode_escape", "analyzers::correctness::no_nonoctal_decimal_escape::tests::test_is_octal_escape_sequence", "assists::correctness::organize_imports::test_order", "analyzers::suspicious::no_control_characters_in_regex::tests::test_collect_co...
[]
[]
[]
auto_2025-06-09
biomejs/biome
1,800
biomejs__biome-1800
[ "1652" ]
dca6a7a8a7db39789cfb0fa8164d8b7a47e9becd
diff --git a/CHANGELOG.md b/CHANGELOG.md --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -201,6 +201,27 @@ Read our [guidelines for writing a good changelog entry](https://github.com/biom #### Bug fixes +- [noInvalidUseBeforeDeclaration](https://biomejs.dev/linter/rules/no-invalid-use-before-declaration) no longer report...
diff --git a/crates/biome_js_analyze/src/react/hooks.rs b/crates/biome_js_analyze/src/react/hooks.rs --- a/crates/biome_js_analyze/src/react/hooks.rs +++ b/crates/biome_js_analyze/src/react/hooks.rs @@ -239,45 +239,26 @@ pub fn is_binding_react_stable( model: &SemanticModel, stable_config: &FxHashSet<StableRe...
πŸ’… `noUnusedVariables` - false-positive for param destructuring if it's used as a default value for another destructured param ### Environment information ```bash CLI: Version: 1.5.2 Color support: true Platform: CPU Architecture: x86_64 OS: ...
Related to https://github.com/biomejs/biome/issues/1648
2024-02-12T21:24:49Z
0.4
2024-02-13T14:04:45Z
b8cf046560376b8b19042b95a518e45bdcbbac22
[ "analyzers::correctness::no_nonoctal_decimal_escape::tests::test_get_unicode_escape", "analyzers::correctness::no_nonoctal_decimal_escape::tests::test_is_octal_escape_sequence", "analyzers::correctness::no_nonoctal_decimal_escape::tests::test_parse_escape_sequences", "assists::correctness::organize_imports::t...
[]
[]
[]
auto_2025-06-09
biomejs/biome
1,747
biomejs__biome-1747
[ "1697" ]
ee9b3ac6c7338f7718bf685159daf90e4396b583
diff --git a/CHANGELOG.md b/CHANGELOG.md --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -129,6 +129,8 @@ Read our [guidelines for writing a good changelog entry](https://github.com/biom - Fix [#1704](https://github.com/biomejs/biome/issues/1704). Convert `/` to escaped slash `\/` to avoid parsing error in the result of au...
diff --git a/crates/biome_js_analyze/tests/spec_tests.rs b/crates/biome_js_analyze/tests/spec_tests.rs --- a/crates/biome_js_analyze/tests/spec_tests.rs +++ b/crates/biome_js_analyze/tests/spec_tests.rs @@ -2,7 +2,7 @@ use biome_analyze::{AnalysisFilter, AnalyzerAction, ControlFlow, Never, RuleFilt use biome_diagnosti...
"Suppress rule" quickfix removes indentation Biome version `1.5.3` VSCode version `1.85.2` Extension version `2.1.2` Steps: 1. Enable `lint/suspicious/noAssignInExpressions` and `lint/suspicious/noConsoleLog`. 2. Code ```typescript // file.ts export function foo() { let x: number; ...
For anyone who wants to help with this issue, the code to fix the issue should be here: https://github.com/biomejs/biome/blob/f7d4683f1027c8f5d046c130069141141e8aab6f/crates/biome_js_analyze/src/suppression_action.rs#L117-L154
2024-02-04T12:09:35Z
0.4
2024-02-04T19:29:58Z
b8cf046560376b8b19042b95a518e45bdcbbac22
[ "no_assign_in_expressions_ts", "no_double_equals_jsx", "specs::correctness::no_unused_variables::valid_class_ts", "no_array_index_key_jsx" ]
[ "specs::complexity::no_excessive_cognitive_complexity::boolean_operators2_options_json", "specs::complexity::no_excessive_cognitive_complexity::boolean_operators_options_json", "specs::a11y::no_autofocus::valid_jsx", "specs::a11y::no_aria_unsupported_elements::valid_jsx", "specs::a11y::no_redundant_roles::v...
[]
[]
auto_2025-06-09
biomejs/biome
1,614
biomejs__biome-1614
[ "1607" ]
a03bf8580bc688747a1f17bc6b31951768494cec
diff --git a/CHANGELOG.md b/CHANGELOG.md --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -36,6 +36,12 @@ Read our [guidelines for writing a good changelog entry](https://github.com/biom Contributed by @Conaclos +- Don't format **ignored** files that are well-known JSONC files when `files.ignoreUnknown` is enabled ([#16...
diff --git a/crates/biome_cli/tests/commands/format.rs b/crates/biome_cli/tests/commands/format.rs --- a/crates/biome_cli/tests/commands/format.rs +++ b/crates/biome_cli/tests/commands/format.rs @@ -2730,3 +2730,47 @@ fn format_with_configured_line_ending() { "const b = {\r\n\tname: \"mike\",\r\n\tsurname: \"r...
πŸ› IgnoreUnknown resulting in additional file being formatted ### Environment information ```block Biome 1.5.2 ``` ### What happened? When using `ignoreUnknown`, special files like `.eslintrc` seem to be formatted, even if they're not in the include list Reproduction here: https://github.com/anthonyhayesres/biome-...
2024-01-20T13:33:20Z
0.4
2024-01-20T13:48:31Z
b8cf046560376b8b19042b95a518e45bdcbbac22
[ "commands::format::don_t_format_ignored_known_jsonc_files", "commands::version::ok", "file_handlers::test_order" ]
[ "diagnostics::test::termination_diagnostic_size", "execute::migrate::prettier::test::ok", "metrics::tests::test_timing", "execute::migrate::prettier::test::some_properties", "metrics::tests::test_layer", "commands::check::fs_error_infinite_symlink_expansion_to_files", "cases::config_extends::extends_sho...
[ "commands::explain::explain_help" ]
[]
auto_2025-06-09
biomejs/biome
1,606
biomejs__biome-1606
[ "1349" ]
2dfb1420e208f0a11516c016f0055ecc67353a44
diff --git a/CHANGELOG.md b/CHANGELOG.md --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -24,6 +24,18 @@ Read our [guidelines for writing a good changelog entry](https://github.com/biom ### Configuration +#### Bug fixes + +- Override correctly the recommended preset ([#1349](https://github.com/biomejs/biome/issues/1349))...
diff --git a/crates/biome_cli/tests/cases/overrides_linter.rs b/crates/biome_cli/tests/cases/overrides_linter.rs --- a/crates/biome_cli/tests/cases/overrides_linter.rs +++ b/crates/biome_cli/tests/cases/overrides_linter.rs @@ -385,3 +385,284 @@ fn does_not_change_linting_settings() { result, )); } + +#[t...
πŸ’… Biome encountered an unexpected error when setting noExplicitAny=off in an override in CLI ### Environment information ```bash CLI: Version: 1.4.1 Color support: true Platform: CPU Architecture: aarch64 OS: macos Environm...
This should be fixed in the next release. Still getting this error in 1.5.1. Other disables work, `noExplicitAny` errors. ``` βœ– processing panicked: internal error: entered unreachable code: the rule is turned off, it should not step in here ⚠ This diagnostic was derived from an internal Biome error. Poten...
2024-01-19T14:33:57Z
0.4
2024-01-20T13:25:00Z
b8cf046560376b8b19042b95a518e45bdcbbac22
[ "cases::overrides_linter::does_preserve_group_recommended_when_override_global_recommened", "cases::overrides_linter::does_preserve_individually_diabled_rules_in_overrides", "cases::overrides_linter::does_override_recommended", "cases::overrides_linter::does_override_groupe_recommended", "commands::version:...
[ "diagnostics::test::termination_diagnostic_size", "execute::migrate::prettier::test::ok", "metrics::tests::test_timing", "execute::migrate::prettier::test::some_properties", "metrics::tests::test_layer", "commands::check::fs_error_infinite_symlink_expansion_to_files", "cases::config_extends::extends_sho...
[ "commands::explain::explain_help" ]
[]
auto_2025-06-09
biomejs/biome
1,542
biomejs__biome-1542
[ "1541" ]
e7fe085fe89859dcfdb944a0e0bc67345fdf3b28
diff --git a/CHANGELOG.md b/CHANGELOG.md --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -17,6 +17,7 @@ Read our [guidelines for writing a good changelog entry](https://github.com/biom - Fix [#1512](https://github.com/biomejs/biome/issues/1512) by skipping verbose diagnostics from the count. Contributed by @ematipico - Don'...
diff --git a/crates/biome_cli/tests/cases/protected_files.rs b/crates/biome_cli/tests/cases/protected_files.rs --- a/crates/biome_cli/tests/cases/protected_files.rs +++ b/crates/biome_cli/tests/cases/protected_files.rs @@ -1,6 +1,6 @@ use crate::run_cli; -use crate::snap_test::{assert_cli_snapshot, SnapshotPayload}; -...
πŸ› Webstorm plugin clears package.json since 1.5.0 ### Environment information ```block CLI: Version: 1.4.1 Color support: true Platform: CPU Architecture: x86_64 OS:...
2024-01-12T10:53:03Z
0.4
2024-01-12T11:34:23Z
b8cf046560376b8b19042b95a518e45bdcbbac22
[ "cases::protected_files::should_return_the_content_of_protected_files_via_stdin", "cases::protected_files::not_process_file_from_stdin_verbose_lint", "cases::protected_files::not_process_file_from_stdin_format", "cases::protected_files::not_process_file_from_stdin_verbose_format", "cases::protected_files::n...
[ "diagnostics::test::termination_diagnostic_size", "metrics::tests::test_timing", "metrics::tests::test_layer", "cases::biome_json_support::biome_json_is_not_ignored", "cases::included_files::does_lint_included_files", "cases::diagnostics::max_diagnostics_verbose", "cases::config_extends::extends_config_...
[ "commands::explain::explain_help" ]
[]
auto_2025-06-09
biomejs/biome
1,527
biomejs__biome-1527
[ "1524" ]
57f454976a02d34581291e6f06a10caa34953745
diff --git a/CHANGELOG.md b/CHANGELOG.md --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -39,8 +39,35 @@ Read our [guidelines for writing a good changelog entry](https://github.com/biom - Add an unsafe code fix for [noConsoleLog](https://biomejs.dev/linter/rules/no-console-log/). Contributed by @vasucp1207 +- [useArrowFu...
diff --git a/crates/biome_js_analyze/src/analyzers/complexity/use_arrow_function.rs b/crates/biome_js_analyze/src/analyzers/complexity/use_arrow_function.rs --- a/crates/biome_js_analyze/src/analyzers/complexity/use_arrow_function.rs +++ b/crates/biome_js_analyze/src/analyzers/complexity/use_arrow_function.rs @@ -165,2...
πŸ› useArrowFunction exception in operator expression ? ### Environment information ```block CLI: Version: 1.5.1 Color support: true Platform: CPU Architecture: x86_64 OS: macos Environment: BIOME_LOG_DIR: u...
2024-01-11T12:29:29Z
0.4
2024-01-11T17:23:34Z
b8cf046560376b8b19042b95a518e45bdcbbac22
[ "analyzers::correctness::no_nonoctal_decimal_escape::tests::test_get_unicode_escape", "analyzers::correctness::no_nonoctal_decimal_escape::tests::test_is_octal_escape_sequence", "analyzers::correctness::no_nonoctal_decimal_escape::tests::test_parse_escape_sequences", "analyzers::suspicious::no_control_charact...
[]
[]
[]
auto_2025-06-09
biomejs/biome
1,441
biomejs__biome-1441
[ "610" ]
ec6f13b3c9dfc3b211f4df2d49418db366ef7953
diff --git a/crates/biome_js_analyze/src/semantic_analyzers/correctness/use_hook_at_top_level.rs b/crates/biome_js_analyze/src/semantic_analyzers/correctness/use_hook_at_top_level.rs --- a/crates/biome_js_analyze/src/semantic_analyzers/correctness/use_hook_at_top_level.rs +++ b/crates/biome_js_analyze/src/semantic_anal...
diff --git a/crates/biome_js_analyze/src/semantic_analyzers/correctness/use_hook_at_top_level.rs b/crates/biome_js_analyze/src/semantic_analyzers/correctness/use_hook_at_top_level.rs --- a/crates/biome_js_analyze/src/semantic_analyzers/correctness/use_hook_at_top_level.rs +++ b/crates/biome_js_analyze/src/semantic_anal...
πŸ› `useHookAtTopLevel`: unconditional hook usage flagged as conditionally called ### Environment information ```block https://biomejs.dev/playground/?indentStyle=space&quoteStyle=single&trailingComma=none&lintRules=all&code=aQBtAHAAbwByAHQAIAB7ACAAYwByAGUAYQB0AGUAQwBvAG4AdABlAHgAdAAsACAAdQBzAGUAQwBhAGwAbABiAGEAYwBr...
https://stackblitz.com/edit/node-74lxwb?file=src%2Findex.js,package.json Links replicated with ESLint: execute `npm run lint` This also happens when using function components in objects: ```jsx const obj = { Component() { useState(0); return ...; } } ``` I have included fixes for the edge case...
2024-01-05T14:26:19Z
0.3
2024-01-06T23:25:20Z
8dc2b1e4734c7992bf26c26ea37acd9df6e89f1d
[ "analyzers::correctness::no_nonoctal_decimal_escape::tests::test_get_unicode_escape", "analyzers::correctness::no_nonoctal_decimal_escape::tests::test_is_octal_escape_sequence", "assists::correctness::organize_imports::test_order", "analyzers::correctness::no_nonoctal_decimal_escape::tests::test_parse_escape_...
[]
[]
[]
auto_2025-06-09
biomejs/biome
1,393
biomejs__biome-1393
[ "610" ]
ff41788bc80146752c8aa73b72ec15b8e6d06ee7
diff --git a/CHANGELOG.md b/CHANGELOG.md --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -495,9 +495,7 @@ The following rules are now deprecated: #### New features -- Add [noUnusedPrivateClassMembers](https://biomejs.dev/linter/rules/no-unused-private-class-members) rule. - The rule disallow unused private class members...
diff --git a/crates/biome_js_analyze/src/react/hooks.rs b/crates/biome_js_analyze/src/react/hooks.rs --- a/crates/biome_js_analyze/src/react/hooks.rs +++ b/crates/biome_js_analyze/src/react/hooks.rs @@ -256,10 +266,46 @@ pub fn is_binding_react_stable( #[cfg(test)] mod test { use super::*; + use crate::react:...
πŸ› `useHookAtTopLevel`: unconditional hook usage flagged as conditionally called ### Environment information ```block https://biomejs.dev/playground/?indentStyle=space&quoteStyle=single&trailingComma=none&lintRules=all&code=aQBtAHAAbwByAHQAIAB7ACAAYwByAGUAYQB0AGUAQwBvAG4AdABlAHgAdAAsACAAdQBzAGUAQwBhAGwAbABiAGEAYwBr...
https://stackblitz.com/edit/node-74lxwb?file=src%2Findex.js,package.json Links replicated with ESLint: execute `npm run lint` This also happens when using function components in objects: ```jsx const obj = { Component() { useState(0); return ...; } } ```
2023-12-31T17:05:12Z
0.3
2024-01-04T19:19:40Z
8dc2b1e4734c7992bf26c26ea37acd9df6e89f1d
[ "globals::browser::test_order", "react::hooks::test::ok_react_stable_captures_with_default_import", "analyzers::correctness::no_nonoctal_decimal_escape::tests::test_get_unicode_escape", "utils::batch::tests::ok_remove_last_member", "utils::batch::tests::ok_remove_formal_parameter_from_class_constructor_seco...
[]
[]
[]
auto_2025-06-09
biomejs/biome
1,327
biomejs__biome-1327
[ "1012" ]
cd9623d6184f5a91192bd301184d2c84c0135895
diff --git a/crates/biome_html_syntax/src/generated/nodes.rs b/crates/biome_html_syntax/src/generated/nodes.rs --- a/crates/biome_html_syntax/src/generated/nodes.rs +++ b/crates/biome_html_syntax/src/generated/nodes.rs @@ -12,7 +12,8 @@ use crate::{ use biome_rowan::{support, AstNode, RawSyntaxKind, SyntaxKindSet, Syn...
diff --git a/crates/biome_js_analyze/src/lib.rs b/crates/biome_js_analyze/src/lib.rs --- a/crates/biome_js_analyze/src/lib.rs +++ b/crates/biome_js_analyze/src/lib.rs @@ -243,7 +243,17 @@ mod tests { String::from_utf8(buffer).unwrap() } - const SOURCE: &str = r#"require("fs") + con...
πŸ’… useExhaustiveDependencies nested access check relies on the source format ### Environment information ```block CLI: Version: 1.4.1 Color support: true Platform: CPU Architecture: x86_64 OS: linux Environment: BIOME_LOG_DI...
It's because of using raw source strings to determine the object access overlap: [source](https://github.com/biomejs/biome/blob/02747d76ebfc8775e700a7fa5517edcb24fcabeb/crates/biome_js_analyze/src/semantic_analyzers/correctness/use_exhaustive_dependencies.rs#L585-L592) I'd like to contribute on this one.
2023-12-24T18:40:09Z
0.4
2024-01-17T01:01:47Z
b8cf046560376b8b19042b95a518e45bdcbbac22
[ "specs::correctness::use_exhaustive_dependencies::valid_js" ]
[ "analyzers::correctness::no_nonoctal_decimal_escape::tests::test_get_unicode_escape", "analyzers::correctness::no_nonoctal_decimal_escape::tests::test_is_octal_escape_sequence", "analyzers::correctness::no_nonoctal_decimal_escape::tests::test_parse_escape_sequences", "assists::correctness::organize_imports::t...
[]
[]
auto_2025-06-09
biomejs/biome
1,249
biomejs__biome-1249
[ "1247" ]
6832256865e51b4358d5b49b1c98a58dd15a66aa
diff --git a/CHANGELOG.md b/CHANGELOG.md --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -17,7 +17,6 @@ Read our [guidelines for writing a good changelog entry](https://github.com/biom #### New features - The command `biome migrate` now updates the `$schema` if there's an outdated version. -- The CLI now supports nested `...
diff --git a/crates/biome_cli/tests/cases/mod.rs b/crates/biome_cli/tests/cases/mod.rs --- a/crates/biome_cli/tests/cases/mod.rs +++ b/crates/biome_cli/tests/cases/mod.rs @@ -8,3 +8,4 @@ mod included_files; mod overrides_formatter; mod overrides_linter; mod overrides_organize_imports; +mod unknown_files; diff --git ...
πŸ› Biome doesn't throw errors for files that can't handle ### Environment information ```block main ``` ### What happened? Try to handle a file that Biome doesn't know how to handle. I should print a diagnostic saying that it doesn't know how to handle a file. This is a regression that was introduced way back, a...
2023-12-18T17:16:46Z
0.3
2023-12-18T21:56:38Z
8dc2b1e4734c7992bf26c26ea37acd9df6e89f1d
[ "cases::unknown_files::should_print_a_diagnostic_unknown_file", "commands::check::fs_files_ignore_symlink", "commands::check::unsupported_file", "commands::lint::fs_files_ignore_symlink", "commands::version::ok", "commands::lint::unsupported_file" ]
[ "diagnostics::test::termination_diagnostic_size", "metrics::tests::test_timing", "metrics::tests::test_layer", "cases::biome_json_support::ci_biome_json", "cases::config_extends::applies_extended_values_in_current_config", "cases::included_files::does_handle_only_included_files", "cases::biome_json_supp...
[]
[]
auto_2025-06-09
biomejs/biome
3,674
biomejs__biome-3674
[ "1674" ]
ffb66d962bfc1056e40dd1fd5c3196fb6d804a78
diff --git a/CHANGELOG.md b/CHANGELOG.md --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -282,6 +282,18 @@ our [guidelines for writing a good changelog entry](https://github.com/biomejs/b Contributed by @Jayllyz +- [noNodejsModules](https://biomejs.dev/linter/rules/no-nodejs-modules/) now ignores type-only imports ([#1...
diff --git a/crates/biome_js_analyze/tests/specs/correctness/noNodejsModules/valid.ts b/crates/biome_js_analyze/tests/specs/correctness/noNodejsModules/valid.ts --- a/crates/biome_js_analyze/tests/specs/correctness/noNodejsModules/valid.ts +++ b/crates/biome_js_analyze/tests/specs/correctness/noNodejsModules/valid.ts @...
πŸ’… Improve `nursery/noNodejsModules` detection (ignore type only imports and apply it only on `use-client` directives) ### Environment information ```bash CLI: Version: 1.5.3 Color support: true Platform: CPU Architecture: aarch64 OS: ...
Makes sense to me. I'll update the implementation.
2024-08-18T12:55:19Z
0.5
2024-08-18T13:29:20Z
2425ce767fc6a93bbd091a5a9ec18beb5476e204
[ "expr_ext::test::matches_simple_call", "expr_ext::test::matches_failing_each", "expr_ext::test::matches_concurrent_each", "numbers::tests::base_16_float", "numbers::tests::base_8_legacy_float", "numbers::tests::split_binary", "expr_ext::test::matches_only_each", "numbers::tests::base_8_float", "expr...
[]
[]
[]
auto_2025-06-09
biomejs/biome
3,671
biomejs__biome-3671
[ "3544", "3544" ]
ffb66d962bfc1056e40dd1fd5c3196fb6d804a78
diff --git a/CHANGELOG.md b/CHANGELOG.md --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -86,13 +86,19 @@ our [guidelines for writing a good changelog entry](https://github.com/biomejs/b #### Bug fixes - `biome lint --write` now takes `--only` and `--skip` into account ([#3470](https://github.com/biomejs/biome/issues/3470...
diff --git a/crates/biome_cli/tests/cases/config_extends.rs b/crates/biome_cli/tests/cases/config_extends.rs --- a/crates/biome_cli/tests/cases/config_extends.rs +++ b/crates/biome_cli/tests/cases/config_extends.rs @@ -358,3 +358,49 @@ fn allows_reverting_fields_in_extended_config_to_default() { result, )...
πŸ› Overwriting the "overrides" section after migrate ### Environment information ```block CLI: Version: 1.8.3 Color support: true Platform: CPU Architecture: x86_64 OS: windows Environment: BIOME_LOG_DIR: u...
2024-08-17T19:13:36Z
0.5
2024-08-18T13:18:57Z
2425ce767fc6a93bbd091a5a9ec18beb5476e204
[ "cases::config_extends::extends_config_merge_overrides", "commands::lsp_proxy::lsp_proxy_help", "commands::migrate_eslint::migrate_merge_with_overrides" ]
[ "commands::tests::incompatible_arguments", "execute::migrate::eslint_to_biome::tests::flat_config_single_config_object", "commands::tests::no_fix", "execute::migrate::ignorefile::tests::empty", "commands::tests::safe_fixes", "execute::migrate::ignorefile::tests::comments_and_empty_lines", "execute::migr...
[ "commands::explain::explain_help" ]
[ "cases::diagnostics::max_diagnostics_are_lifted", "commands::check::file_too_large", "commands::ci::file_too_large" ]
auto_2025-06-09
biomejs/biome
3,496
biomejs__biome-3496
[ "3470" ]
6f8eade22aaf0f46e49d92f17b7e9ffb121dc450
diff --git a/crates/biome_cli/src/execute/process_file/lint.rs b/crates/biome_cli/src/execute/process_file/lint.rs --- a/crates/biome_cli/src/execute/process_file/lint.rs +++ b/crates/biome_cli/src/execute/process_file/lint.rs @@ -22,10 +22,16 @@ pub(crate) fn lint_with_guard<'ctx>( move || { let ...
diff --git a/crates/biome_cli/tests/commands/lint.rs b/crates/biome_cli/tests/commands/lint.rs --- a/crates/biome_cli/tests/commands/lint.rs +++ b/crates/biome_cli/tests/commands/lint.rs @@ -3806,6 +3806,46 @@ fn lint_only_group_with_disabled_rule() { )); } +#[test] +fn lint_only_write() { + let mut fs = Mem...
πŸ› `--write` applies fixes to all rules ignoring `--only` ### Environment information ```block CLI: Version: 1.8.3 Color support: true Platform: CPU Architecture: x86_64 OS: linux Environment: BIOME_LOG_DIR: u...
This doesn't fix the issue, however note that you can also skip an entire group `--skip=correctness`. This could make easier your life in the meantime.
2024-07-22T14:49:08Z
0.5
2024-07-23T15:55:08Z
2425ce767fc6a93bbd091a5a9ec18beb5476e204
[ "commands::check::check_help", "commands::ci::ci_help", "commands::format::format_help", "commands::format::with_invalid_semicolons_option", "commands::lint::lint_help", "commands::lint::lint_only_missing_group", "commands::lint::lint_only_nursery_group", "commands::lint::lint_only_write", "commands...
[ "commands::tests::incompatible_arguments", "commands::tests::no_fix", "diagnostics::test::termination_diagnostic_size", "commands::tests::safe_and_unsafe_fixes", "commands::tests::safe_fixes", "execute::migrate::ignorefile::tests::comments_and_empty_lines", "execute::migrate::ignorefile::tests::empty", ...
[ "commands::explain::explain_help" ]
[]
auto_2025-06-09
biomejs/biome
3,451
biomejs__biome-3451
[ "3419" ]
46ab996cc0f49bdba00f5e7c61f4122ab6ff717c
diff --git a/CHANGELOG.md b/CHANGELOG.md --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -40,6 +40,10 @@ our [guidelines for writing a good changelog entry](https://github.com/biomejs/b ### Formatter +#### Bug fixes + +- Keep the parentheses around `infer` declarations in type unions and type intersections ([#3419](https...
diff --git a/crates/biome_js_formatter/src/ts/types/infer_type.rs b/crates/biome_js_formatter/src/ts/types/infer_type.rs --- a/crates/biome_js_formatter/src/ts/types/infer_type.rs +++ b/crates/biome_js_formatter/src/ts/types/infer_type.rs @@ -64,6 +70,10 @@ mod tests { "type A = T extends [(infer string)?]...
Removal of necessary parentheses when formatting union of types which include an `infer` ... `extends` Reproduction is simple, see playground link. ### Environment information ```bash CLI: Version: 1.8.3 Color support: true Platform: CPU Architecture: a...
2024-07-16T16:26:41Z
0.5
2024-07-16T17:52:59Z
2425ce767fc6a93bbd091a5a9ec18beb5476e204
[ "ts::types::infer_type::tests::needs_parentheses", "formatter::ts_module::specs::ts::type_::injfer_in_union_ts", "formatter::ts_module::specs::ts::type_::injfer_in_intersection_ts" ]
[ "js::assignments::identifier_assignment::tests::needs_parentheses", "js::expressions::number_literal_expression::tests::needs_parentheses", "syntax_rewriter::tests::adjacent_nodes", "js::expressions::call_expression::tests::needs_parentheses", "js::expressions::computed_member_expression::tests::needs_paren...
[]
[]
auto_2025-06-09
biomejs/biome
3,304
biomejs__biome-3304
[ "3278" ]
c28d5978c1440b3ae184d1cc354233711abf8a8e
diff --git a/CHANGELOG.md b/CHANGELOG.md --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -9,6 +9,10 @@ New entries must be placed in a section entitled `Unreleased`. Read our [guidelines for writing a good changelog entry](https://github.com/biomejs/biome/blob/main/CONTRIBUTING.md#changelog). +## Unreleased + +- Implement...
diff --git a/crates/biome_css_analyze/tests/spec_tests.rs b/crates/biome_css_analyze/tests/spec_tests.rs --- a/crates/biome_css_analyze/tests/spec_tests.rs +++ b/crates/biome_css_analyze/tests/spec_tests.rs @@ -197,7 +197,7 @@ fn check_code_action( assert_errors_are_absent(re_parse.tree().syntax(), re_parse.diagno...
πŸ“Ž Implement suppression action for the CSS analyzer ### Description At the moment, there's no way to suppress a CSS lint rule via editor because we don't expose an action that creates the suppression comment. We should create one here: https://github.com/biomejs/biome/blob/bb5faa052cc9b0596aec30a9627ea94a93af...
2024-06-27T15:43:55Z
0.5
2024-06-28T01:59:11Z
2425ce767fc6a93bbd091a5a9ec18beb5476e204
[ "no_duplicate_font_names_css", "no_empty_block_css" ]
[ "specs::nursery::no_duplicate_at_import_rules::valid_css", "specs::nursery::no_duplicate_selectors_keyframe_block::valid_css", "specs::nursery::no_duplicate_at_import_rules::invalid_urls_css", "specs::nursery::no_important_in_keyframe::invalid_css", "specs::nursery::no_duplicate_at_import_rules::invalid_mul...
[]
[]
auto_2025-06-09
biomejs/biome
2,794
biomejs__biome-2794
[ "2148" ]
9c920a1898960ac866c78ee727fc8b408f98c968
diff --git a/CHANGELOG.md b/CHANGELOG.md --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -85,6 +85,7 @@ our [guidelines for writing a good changelog entry](https://github.com/biomejs/b - Add [nursery/useThrowNewError](https://biomejs.dev/linter/rules/use-throw-new-error/). Contributed by @minht11 +- Add [nursery/useTopL...
diff --git /dev/null b/crates/biome_js_analyze/src/lint/nursery/use_top_level_regex.rs new file mode 100644 --- /dev/null +++ b/crates/biome_js_analyze/src/lint/nursery/use_top_level_regex.rs @@ -0,0 +1,90 @@ +use biome_analyze::{context::RuleContext, declare_rule, Ast, Rule, RuleDiagnostic}; +use biome_console::markup...
πŸ“Ž Implement rule `useTopLevelRegex` ### Description I *don't* know if there's a similar rule out there, we can add a reference later. I came up with this rule while looking at many JS PRs out there, and I was surprised that there are many developers that don't adopt the following practice. Given the following code...
I like the suggestion :+1: Of course there is an obvious downside to it: Placing all regular expressions in the top-level scope will cause startup performance of the bundle to suffer. Usually this is negligible, and if the regexes are used inside a hot loop, it's absolutely the trade-off you want to make. But forcin...
2024-05-09T17:27:07Z
0.5
2024-05-15T14:35:46Z
2425ce767fc6a93bbd091a5a9ec18beb5476e204
[ "specs::nursery::use_top_level_regex::valid_js", "specs::nursery::use_top_level_regex::invalid_js" ]
[ "assists::correctness::organize_imports::test_order", "globals::javascript::node::test_order", "globals::javascript::language::test_order", "globals::javascript::web::test_order", "globals::module::node::test_order", "globals::typescript::node::test_order", "globals::typescript::language::test_order", ...
[]
[]
auto_2025-06-09
biomejs/biome
2,788
biomejs__biome-2788
[ "2765" ]
49cace81ce65ab7ab3bccb7b4b404778630f153d
diff --git a/CHANGELOG.md b/CHANGELOG.md --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -23,7 +23,7 @@ our [guidelines for writing a good changelog entry](https://github.com/biomejs/b - biome check . + biome check # You can run the command without the path ``` - + ### Configuration ### Editors diff --git a/...
diff --git a/crates/biome_service/src/file_handlers/mod.rs b/crates/biome_service/src/file_handlers/mod.rs --- a/crates/biome_service/src/file_handlers/mod.rs +++ b/crates/biome_service/src/file_handlers/mod.rs @@ -580,11 +579,13 @@ fn test_svelte_script_lang() { fn test_vue_script_lang() { const VUE_JS_SCRIPT_OP...
πŸ› vue sfc `lang="tsx"` support ### Environment information ```block CLI: Version: 1.7.3 Color support: true Platform: CPU Architecture: aarch64 OS: macos Environment: BIOME_LOG_DIR: unset NO_COLOR: ...
I didn't know JSX was supported inside templating. Does anyone want to add support for that? https://github.com/biomejs/biome/blob/67888a864fab60d467094d4870811a99ded2e82f/crates/biome_service/src/file_handlers/mod.rs#L547-L553 I had no idea this was a thing either, but [apparently it is](https://github.com/vitejs/...
2024-05-09T11:35:05Z
0.5
2024-05-10T11:43:26Z
2425ce767fc6a93bbd091a5a9ec18beb5476e204
[ "file_handlers::test_vue_script_lang" ]
[ "diagnostics::test::diagnostic_size", "matcher::pattern::test::test_pattern_absolute", "matcher::pattern::test::test_pattern_from_str", "matcher::pattern::test::test_pattern_glob", "matcher::pattern::test::test_pattern_matches_case_insensitive_range", "matcher::pattern::test::test_pattern_escape", "matc...
[]
[]
auto_2025-06-09
biomejs/biome
2,726
biomejs__biome-2726
[ "2266" ]
5f2b80e9db52a13d8b256c917d3991ec130db0b1
diff --git a/CHANGELOG.md b/CHANGELOG.md --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -15,6 +15,15 @@ our [guidelines for writing a good changelog entry](https://github.com/biomejs/b ### CLI +#### Enhancements + +- Biome now executes commands (lint, format, check and ci) on the working directory by default. [#2266](ht...
diff --git a/crates/biome_cli/tests/commands/check.rs b/crates/biome_cli/tests/commands/check.rs --- a/crates/biome_cli/tests/commands/check.rs +++ b/crates/biome_cli/tests/commands/check.rs @@ -2897,3 +2897,28 @@ fn print_json_pretty() { result, )); } + +#[test] +fn lint_error_without_file_paths() { + ...
πŸ“Ž Execute Biome command on the working directory by default ### Description See #2240 for more context. For now, The main Biome commands require passing at least one file (possibly a directory). For instance, to format all files in the working directory, a user has to run `biome format ./`. Running a Biome com...
2024-05-05T20:50:05Z
0.5
2024-06-05T09:10:01Z
2425ce767fc6a93bbd091a5a9ec18beb5476e204
[ "commands::check::check_help", "commands::ci::ci_help", "commands::format::format_help", "commands::format::with_invalid_semicolons_option", "commands::lint::lint_help", "commands::migrate::migrate_help", "commands::lsp_proxy::lsp_proxy_help", "commands::rage::rage_help" ]
[ "diagnostics::test::termination_diagnostic_size", "execute::migrate::eslint_to_biome::tests::flat_config_single_config_object", "execute::migrate::ignorefile::tests::empty", "execute::migrate::ignorefile::tests::comments_and_empty_lines", "execute::migrate::ignorefile::tests::negated_pattern", "execute::m...
[ "commands::explain::explain_help" ]
[]
auto_2025-06-09
biomejs/biome
2,692
biomejs__biome-2692
[ "2571" ]
43525a35c4e2777b4d5874851ad849fa31552538
diff --git a/CHANGELOG.md b/CHANGELOG.md --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -44,6 +44,18 @@ our [guidelines for writing a good changelog entry](https://github.com/biomejs/b Contributed by @Conaclos +- [noUnusedLabels](https://biomejs.dev/linter/rules/no-unused-labels/) and [noConfusingLabels](https://biome...
diff --git a/crates/biome_js_analyze/tests/spec_tests.rs b/crates/biome_js_analyze/tests/spec_tests.rs --- a/crates/biome_js_analyze/tests/spec_tests.rs +++ b/crates/biome_js_analyze/tests/spec_tests.rs @@ -11,8 +11,8 @@ use biome_test_utils::{ }; use std::{ffi::OsStr, fs::read_to_string, path::Path, slice}; -tests...
πŸ’… Svelte Reactive Blocks marked as Unexpected/Unused ### Environment information ```bash CLI: Version: 1.7.1 Color support: true Platform: CPU Architecture: aarch64 OS: macos Environment: BIOME_LOG_DIR: un...
We have two options here: - Document the caveat on the website, and tell people to disable the rules themselves; - We start disabling rules based on file extension. For example, we would need to disable other rules for other files, such as `noUnusedVariables` for Astro files. And `noUnusedImports` for all vue/astro/s...
2024-05-03T10:12:40Z
0.5
2024-05-04T20:54:36Z
2425ce767fc6a93bbd091a5a9ec18beb5476e204
[ "specs::correctness::no_unused_labels::valid_svelte", "specs::suspicious::no_confusing_labels::valid_svelte" ]
[ "specs::a11y::no_aria_unsupported_elements::valid_jsx", "specs::a11y::no_aria_hidden_on_focusable::valid_jsx", "specs::a11y::no_header_scope::valid_jsx", "specs::a11y::no_autofocus::valid_jsx", "specs::a11y::no_redundant_roles::valid_jsx", "simple_js", "specs::a11y::use_button_type::with_binding_valid_j...
[]
[]
auto_2025-06-09
biomejs/biome
2,658
biomejs__biome-2658
[ "2627" ]
5fda633add27d3605fff43cee76d66a5ef15c98c
diff --git a/crates/biome_configuration/src/linter/rules.rs b/crates/biome_configuration/src/linter/rules.rs --- a/crates/biome_configuration/src/linter/rules.rs +++ b/crates/biome_configuration/src/linter/rules.rs @@ -2751,6 +2754,7 @@ impl Nursery { "noConstantMathMinMaxClamp", "noCssEmptyBlock", ...
diff --git a/crates/biome_configuration/src/linter/rules.rs b/crates/biome_configuration/src/linter/rules.rs --- a/crates/biome_configuration/src/linter/rules.rs +++ b/crates/biome_configuration/src/linter/rules.rs @@ -2662,6 +2662,9 @@ pub struct Nursery { #[doc = "Disallow using a callback in asynchronous tests ...
πŸ“Ž Implement no-duplicate-at-import-rules ## Description Implement [no-duplicate-at-import-rules](https://stylelint.io/user-guide/rules/no-duplicate-at-import-rules) > [!IMPORTANT] > - Please skip implementing options for now since we will evaluate users actually want them later. > - Please ignore handling ext...
I'd like to help out with this one πŸ™‚
2024-04-30T12:07:05Z
0.5
2024-05-02T05:41:07Z
2425ce767fc6a93bbd091a5a9ec18beb5476e204
[ "diagnostics::test::diagnostic_size", "diagnostics::test::deserialization_quick_check", "diagnostics::test::deserialization_error", "diagnostics::test::config_already_exists" ]
[]
[]
[]
auto_2025-06-09
biomejs/biome
2,655
biomejs__biome-2655
[ "2624" ]
150dd0e622494792c857a1e9235fd1e2b63bfb12
diff --git a/crates/biome_configuration/src/linter/rules.rs b/crates/biome_configuration/src/linter/rules.rs --- a/crates/biome_configuration/src/linter/rules.rs +++ b/crates/biome_configuration/src/linter/rules.rs @@ -2705,6 +2705,10 @@ pub struct Nursery { #[doc = "Disallow unknown CSS value functions."] #[...
diff --git a/crates/biome_css_analyze/src/keywords.rs b/crates/biome_css_analyze/src/keywords.rs --- a/crates/biome_css_analyze/src/keywords.rs +++ b/crates/biome_css_analyze/src/keywords.rs @@ -759,6 +759,104 @@ pub const FUNCTION_KEYWORDS: [&str; 671] = [ "xywh", ]; +// These are the ones that can have single...
πŸ“Ž Implement selector-pseudo-element-no-unknown ## Description Implement [selector-pseudo-element-no-unknown](https://stylelint.io/user-guide/rules/selector-pseudo-element-no-unknown) > [!IMPORTANT] > - Please skip implementing options for now since we will evaluate users actually want them later. > - Please ...
Can I work on this issue?
2024-04-30T09:26:20Z
0.5
2024-05-02T06:11:02Z
2425ce767fc6a93bbd091a5a9ec18beb5476e204
[ "specs::nursery::no_unknown_selector_pseudo_element::valid_css", "specs::nursery::no_unknown_selector_pseudo_element::invalid_css" ]
[ "keywords::tests::test_function_keywords_sorted", "keywords::tests::test_function_keywords_unique", "specs::nursery::no_css_empty_block::disallow_comment_options_json", "specs::nursery::no_color_invalid_hex::invalid_css", "specs::nursery::no_important_in_keyframe::valid_css", "specs::nursery::no_color_inv...
[]
[]
auto_2025-06-09
biomejs/biome
2,621
biomejs__biome-2621
[ "2357", "2357" ]
1d525033b22f9fee682252197a6233a4222f28a6
diff --git a/CHANGELOG.md b/CHANGELOG.md --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -68,6 +68,9 @@ our [guidelines for writing a good changelog entry](https://github.com/biomejs/b #### Bug fixes +- [noDuplicateJsonKeys](https://biomejs.dev/linter/rules/no-duplicate-json-keys/) no longer crashes when a JSON file cont...
diff --git a/crates/biome_json_formatter/tests/specs/prettier/json/json/json5.json.snap b/crates/biome_json_formatter/tests/specs/prettier/json/json/json5.json.snap --- a/crates/biome_json_formatter/tests/specs/prettier/json/json/json5.json.snap +++ b/crates/biome_json_formatter/tests/specs/prettier/json/json/json5.jso...
πŸ› JSON Parser: Unterminated string literal can make `inner_string_text` panic ### Environment information ```block Unrelated, the issue is reproducible when nursery/noDuplicateJsonKeys is enabled. ``` ### What happened? Our JSON parser allows `JSON_STRING_LITERAL` to include an unterminated string literal...
Wow, that's surprising! Some ideas: - We could add a `JsonBogusMemberName` and `AnyJsonMemberName = JsonMemberName | JsonBogusMemberName`. - or, we could handle `{ "a }` like a value with a missing key and colon. This could avoid introducing a new node. Any opinion? > Some ideas: > > * We could add a `JsonBo...
2024-04-27T15:56:51Z
0.5
2024-04-28T15:49:05Z
2425ce767fc6a93bbd091a5a9ec18beb5476e204
[ "lexer::tests::unterminated_string", "err::number_0_e1_json", "err::array_spaces_vertical_tab_formfeed_json", "err::number_minus_infinity_json", "err::number_2_e_3_json", "err::number___inf_json", "err::number__1_0__json", "err::number_9_e__json", "err::number_0_1_2_json", "err::number_2_e3_json",...
[ "lexer::tests::array", "lexer::tests::basic_string", "lexer::tests::empty", "lexer::tests::exponent", "lexer::tests::float", "lexer::tests::float_invalid", "lexer::tests::block_comment", "lexer::tests::identifiers", "lexer::tests::int", "lexer::tests::keywords", "lexer::tests::invalid_unicode_es...
[]
[ "err::string_unescaped_ctrl_char_json", "err::string_backslash_00_json" ]
auto_2025-06-09
biomejs/biome
2,607
biomejs__biome-2607
[ "1573" ]
43525a35c4e2777b4d5874851ad849fa31552538
diff --git a/CHANGELOG.md b/CHANGELOG.md --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -19,6 +19,10 @@ our [guidelines for writing a good changelog entry](https://github.com/biomejs/b ### Editors +#### New features + +- Add support for LSP Workspaces + ### Formatter ### JavaScript APIs diff --git a/CHANGELOG.md b/C...
diff --git a/crates/biome_lsp/tests/server.rs b/crates/biome_lsp/tests/server.rs --- a/crates/biome_lsp/tests/server.rs +++ b/crates/biome_lsp/tests/server.rs @@ -28,7 +28,6 @@ use tower::{Service, ServiceExt}; use tower_lsp::jsonrpc; use tower_lsp::jsonrpc::Response; use tower_lsp::lsp_types as lsp; -use tower_lsp:...
πŸ“Ž LSP: support for Workspaces ### Description At the moment, our LSP doesn't support workspaces. To achieve that, the LSP needs to add a few features that it doesn't support at the moment: - register itself for other events: - [`workspace/workspaceFolders`](https://microsoft.github.io/language-server-protocol/s...
Adding my two cents here. The projects within a workspace (vscode workspace) can be owned by different teams and they have different configuration. Also the file/folder structure can be very different (thus the `files.include` and `files.ignore`). So switching setting on the fly before handing a file may not be ...
2024-04-26T10:05:32Z
0.5
2024-05-06T15:58:00Z
2425ce767fc6a93bbd091a5a9ec18beb5476e204
[ "does_not_format_ignored_files" ]
[]
[]
[]
auto_2025-06-09
biomejs/biome
2,600
biomejs__biome-2600
[ "2580" ]
b24b44c34b2912ed02653b43c96f807579e6a3aa
diff --git a/CHANGELOG.md b/CHANGELOG.md --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -79,6 +79,12 @@ our [guidelines for writing a good changelog entry](https://github.com/biomejs/b Contributed by @Conaclos +- Fix [useTemplate](https://biomejs.dev/linter/rules/use-template/) that wrongly escaped strings in some edg...
diff --git /dev/null b/crates/biome_js_analyze/tests/specs/style/useTemplate/invalidIssue2580.js new file mode 100644 --- /dev/null +++ b/crates/biome_js_analyze/tests/specs/style/useTemplate/invalidIssue2580.js @@ -0,0 +1,2 @@ +// Issue https://github.com/biomejs/biome/issues/2580 +'```ts\n' + x + '\n```'; \ No newlin...
πŸ’… useTemplate problem ### Environment information ```bash CLI: Version: 1.7.1 Color support: true Platform: CPU Architecture: aarch64 OS: macos Environment: BIOME_LOG_DIR: unset NO_COLOR: ...
Thank you, @Jack-Works for reporting the error; the readability is subjective, that's why this rule is part of the `style` group. However, the fix is indeed incorrect.
2024-04-25T14:38:05Z
0.5
2024-04-25T15:10:17Z
2425ce767fc6a93bbd091a5a9ec18beb5476e204
[ "utils::tests::ok_escape_dollar_signs_and_backticks" ]
[]
[]
[]
auto_2025-06-09
biomejs/biome
2,573
biomejs__biome-2573
[ "2572" ]
e96781a48b218b2480da5344124ab0c9b9c4c086
diff --git a/crates/biome_configuration/src/linter/rules.rs b/crates/biome_configuration/src/linter/rules.rs --- a/crates/biome_configuration/src/linter/rules.rs +++ b/crates/biome_configuration/src/linter/rules.rs @@ -2712,6 +2712,9 @@ pub struct Nursery { #[doc = "Enforce the use of new for all builtins, except ...
diff --git a/crates/biome_css_analyze/src/lib.rs b/crates/biome_css_analyze/src/lib.rs --- a/crates/biome_css_analyze/src/lib.rs +++ b/crates/biome_css_analyze/src/lib.rs @@ -122,13 +122,12 @@ mod tests { String::from_utf8(buffer).unwrap() } - const SOURCE: &str = r#".something {} -"#; + ...
πŸ“Ž Implement font-family-no-missing-generic-family-keyword Implement [font-family-no-missing-generic-family-keyword](https://stylelint.io/user-guide/rules/font-family-no-missing-generic-family-keyword)
2024-04-23T15:26:47Z
0.5
2024-04-26T14:23:49Z
2425ce767fc6a93bbd091a5a9ec18beb5476e204
[ "specs::nursery::use_generic_font_names::valid_css", "specs::nursery::use_generic_font_names::invalid_css" ]
[ "specs::nursery::no_css_empty_block::disallow_comment_options_json", "specs::nursery::no_duplicate_selectors_keyframe_block::valid_css", "specs::nursery::no_important_in_keyframe::valid_css", "specs::nursery::no_color_invalid_hex::invalid_css", "specs::nursery::no_important_in_keyframe::invalid_css", "spe...
[]
[]
auto_2025-06-09
biomejs/biome
2,563
biomejs__biome-2563
[ "817" ]
b150000f92a821ef0d36ff06ae568b55f0b6ab73
diff --git a/CHANGELOG.md b/CHANGELOG.md --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -9,8 +9,49 @@ New entries must be placed in a section entitled `Unreleased`. Read our [guidelines for writing a good changelog entry](https://github.com/biomejs/biome/blob/main/CONTRIBUTING.md#changelog). -## 1.7.1 (2024-04-22) +## Un...
diff --git a/crates/biome_cli/tests/commands/check.rs b/crates/biome_cli/tests/commands/check.rs --- a/crates/biome_cli/tests/commands/check.rs +++ b/crates/biome_cli/tests/commands/check.rs @@ -2204,7 +2204,7 @@ fn check_stdin_apply_unsafe_successfully() { let mut console = BufferConsole::default(); consol...
πŸ› Ignore side-effect imports when organising imports ### Environment information ```block CLI: Version: 1.3.3 Color support: true Platform: CPU Architecture: aarch64 OS: macos Environment: BIOME_LOG_DIR: unse...
I've been looking at the source code, and here are my initial thoughts. 1. The file extension `.css` is not relevant. 2. Side effects imports (imports without `from`) should not be organized 3. Side effects imports are identifiable in the AST as `JSImportBareClause` If this is correct, my approach would be to ...
2024-04-22T17:24:39Z
0.5
2024-04-22T21:40:19Z
2425ce767fc6a93bbd091a5a9ec18beb5476e204
[ "cases::config_extends::extends_should_raise_an_error_for_unresolved_configuration", "cases::biome_json_support::formatter_biome_json", "cases::biome_json_support::ci_biome_json", "cases::diagnostics::logs_the_appropriate_messages_according_to_set_diagnostics_level", "cases::config_extends::allows_reverting...
[ "diagnostics::test::termination_diagnostic_size", "execute::migrate::ignorefile::tests::negated_pattern", "execute::migrate::ignorefile::tests::comments_and_empty_lines", "execute::migrate::ignorefile::tests::empty", "execute::migrate::eslint_to_biome::tests::flat_config_single_config_object", "execute::m...
[ "commands::explain::explain_help" ]
[]
auto_2025-06-09
biomejs/biome
2,513
biomejs__biome-2513
[ "2512" ]
2c4d6e722e5bbd051b16f186735f142ed97930a0
diff --git a/crates/biome_configuration/Cargo.toml b/crates/biome_configuration/Cargo.toml --- a/crates/biome_configuration/Cargo.toml +++ b/crates/biome_configuration/Cargo.toml @@ -42,6 +42,7 @@ serde_json = { workspace = true, features = ["raw_value"] } schema = [ "dep:schemars", "biome_js_analy...
diff --git a/Cargo.lock b/Cargo.lock --- a/Cargo.lock +++ b/Cargo.lock @@ -257,11 +257,15 @@ dependencies = [ "biome_console", "biome_css_parser", "biome_css_syntax", + "biome_deserialize", + "biome_deserialize_macros", "biome_diagnostics", "biome_rowan", "biome_test_utils", "insta", "lazy_static", + "s...
πŸ“Ž Implement `block-no-empty` ### Description Implement [block-no-empty](https://stylelint.io/user-guide/rules/block-no-empty) **Want to contribute?** Lets you know you are interested! We will assign you to the issue to prevent several people to work on the same issue. Don't worry, we can unassign you later if yo...
2024-04-18T15:18:22Z
0.5
2024-04-19T07:58:07Z
2425ce767fc6a93bbd091a5a9ec18beb5476e204
[ "diagnostics::test::diagnostic_size", "diagnostics::test::deserialization_quick_check", "diagnostics::test::deserialization_error", "diagnostics::test::config_already_exists" ]
[]
[]
[]
auto_2025-06-09
biomejs/biome
2,510
biomejs__biome-2510
[ "2338" ]
416433146f2b8543a6dee674b425c51d41e4fd81
diff --git a/crates/biome_js_factory/src/generated/node_factory.rs b/crates/biome_js_factory/src/generated/node_factory.rs --- a/crates/biome_js_factory/src/generated/node_factory.rs +++ b/crates/biome_js_factory/src/generated/node_factory.rs @@ -5619,32 +5619,6 @@ pub fn ts_module_declaration( ], )) } -...
diff --git a/crates/biome_js_parser/src/syntax/typescript.rs b/crates/biome_js_parser/src/syntax/typescript.rs --- a/crates/biome_js_parser/src/syntax/typescript.rs +++ b/crates/biome_js_parser/src/syntax/typescript.rs @@ -110,7 +111,7 @@ fn expect_ts_type_list(p: &mut JsParser, clause_name: &str) -> CompletedMarker { ...
πŸ“Ž Investigate AST nodes `TsNameWithTypeArguments` vs `TsReferenceType` ### Description While reviewing #2092, I noticed that `TsNameWithTypeArguments` and `TsReferenceType` have the same shape and are always used together in a match condition in the semantic model. It seems that these two nodes have the same purpos...
2024-04-18T14:25:53Z
0.5
2024-04-18T18:14:00Z
2425ce767fc6a93bbd091a5a9ec18beb5476e204
[ "lexer::tests::bigint_literals", "lexer::tests::are_we_jsx", "lexer::tests::bang", "lexer::tests::at_token", "lexer::tests::all_whitespace", "lexer::tests::binary_literals", "lexer::tests::complex_string_1", "lexer::tests::consecutive_punctuators", "lexer::tests::division", "lexer::tests::block_co...
[]
[]
[]
auto_2025-06-09
biomejs/biome
2,457
biomejs__biome-2457
[ "2456" ]
23076b9e4898e2cbd20d8caa78a310ea17d57a3b
diff --git a/CHANGELOG.md b/CHANGELOG.md --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -27,6 +27,14 @@ our [guidelines for writing a good changelog entry](https://github.com/biomejs/b - Biome now can handle `.svelte` and `.vue` files with `CRLF` as the end-of-line sequence. Contributed by @Sec-ant +- Biome now can hand...
diff --git a/crates/biome_cli/tests/cases/handle_vue_files.rs b/crates/biome_cli/tests/cases/handle_vue_files.rs --- a/crates/biome_cli/tests/cases/handle_vue_files.rs +++ b/crates/biome_cli/tests/cases/handle_vue_files.rs @@ -73,6 +73,10 @@ import Button from "./components/Button.vue"; const VUE_CARRIAGE_RETURN_LINE_...
πŸ› parse error when using generic component in vue files ### Environment information ```block CLI: Version: 1.6.4 Color support: true Platform: CPU Architecture: x86_64 OS: windows Environment: BIOME_LOG_DIR: ...
That's a weird error This is the issue of the regexes we use πŸ˜“. I'll look into it.
2024-04-15T10:17:07Z
0.5
2024-04-15T12:18:27Z
2425ce767fc6a93bbd091a5a9ec18beb5476e204
[ "cases::config_extends::extends_should_raise_an_error_for_unresolved_configuration_and_show_verbose", "cases::protected_files::should_return_the_content_of_protected_files_via_stdin", "cases::config_extends::respects_unaffected_values_from_extended_config", "cases::biome_json_support::check_biome_json", "ca...
[ "diagnostics::test::termination_diagnostic_size", "execute::migrate::ignorefile::tests::empty", "execute::migrate::ignorefile::tests::comments_and_empty_lines", "execute::migrate::ignorefile::tests::negated_pattern", "execute::migrate::eslint_to_biome::tests::flat_config_single_config_object", "execute::m...
[ "commands::explain::explain_help" ]
[]
auto_2025-06-09
biomejs/biome
2,453
biomejs__biome-2453
[ "2443" ]
05e4796016268319ecbdc3caca318af00cbadff6
diff --git a/crates/biome_js_analyze/src/lint/nursery/no_misplaced_assertion.rs b/crates/biome_js_analyze/src/lint/nursery/no_misplaced_assertion.rs --- a/crates/biome_js_analyze/src/lint/nursery/no_misplaced_assertion.rs +++ b/crates/biome_js_analyze/src/lint/nursery/no_misplaced_assertion.rs @@ -113,6 +119,7 @@ impl ...
diff --git a/CHANGELOG.md b/CHANGELOG.md --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -27,6 +27,8 @@ our [guidelines for writing a good changelog entry](https://github.com/biomejs/b - Biome now can handle `.svelte` and `.vue` files with `CRLF` as the end-of-line sequence. Contributed by @Sec-ant +- `noMisplacedAsserti...
πŸ’… [noMisplacedAssertion] The rule does not support `it.each` in `vitest` ### Environment information ```bash ❯ ppm biome rage --linter CLI: Version: 1.6.4 Color support: true Platform: CPU Architecture: aarch64 OS: macos E...
2024-04-15T07:04:11Z
0.5
2024-04-15T17:06:18Z
2425ce767fc6a93bbd091a5a9ec18beb5476e204
[ "specs::nursery::no_misplaced_assertion::valid_method_calls_js" ]
[ "globals::javascript::node::test_order", "assists::correctness::organize_imports::test_order", "globals::javascript::language::test_order", "globals::module::node::test_order", "globals::javascript::web::test_order", "globals::typescript::node::test_order", "globals::typescript::language::test_order", ...
[]
[]
auto_2025-06-09
biomejs/biome
2,404
biomejs__biome-2404
[ "2304" ]
60671ec3a4c59421583d5d1ec8cfe30d45b27cd7
diff --git a/CHANGELOG.md b/CHANGELOG.md --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -267,6 +267,8 @@ our [guidelines for writing a good changelog entry](https://github.com/biomejs/b - Implement [#2043](https://github.com/biomejs/biome/issues/2043): The React rule [`useExhaustiveDependencies`](https://biomejs.dev/linte...
diff --git a/crates/biome_configuration/src/linter/rules.rs b/crates/biome_configuration/src/linter/rules.rs --- a/crates/biome_configuration/src/linter/rules.rs +++ b/crates/biome_configuration/src/linter/rules.rs @@ -2593,6 +2593,9 @@ pub struct Nursery { #[doc = "Disallow the use of console."] #[serde(skip...
πŸ“Ž Implement `lint/noConstantMinMax` - `clippy/min_max` ### Description Implement [clippy/min_max](https://rust-lang.github.io/rust-clippy/master/#/min_max) **Want to contribute?** Lets you know you are interested! We will assign you to the issue to prevent several people to work on the same issue. Don't worry, we ...
I'd like to give it a try
2024-04-10T20:38:47Z
0.5
2024-04-14T13:34:44Z
2425ce767fc6a93bbd091a5a9ec18beb5476e204
[ "diagnostics::test::diagnostic_size", "diagnostics::test::deserialization_quick_check", "diagnostics::test::deserialization_error", "diagnostics::test::config_already_exists" ]
[]
[]
[]
auto_2025-06-09
biomejs/biome
1,070
biomejs__biome-1070
[ "728" ]
c8aab475b131cced31d1711ab1e09adcec92c7ff
diff --git a/CHANGELOG.md b/CHANGELOG.md --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -70,6 +70,8 @@ Read our [guidelines for writing a good changelog entry](https://github.com/biom } ``` +- Fix [#728](https://github.com/biomejs/biome/issues/728). [useSingleVarDeclarator](https://biomejs.dev/linter/rules/use-single...
diff --git a/crates/biome_js_analyze/src/analyzers/style/use_single_var_declarator.rs b/crates/biome_js_analyze/src/analyzers/style/use_single_var_declarator.rs --- a/crates/biome_js_analyze/src/analyzers/style/use_single_var_declarator.rs +++ b/crates/biome_js_analyze/src/analyzers/style/use_single_var_declarator.rs @...
πŸ’… useSingleVarDeclarator suggests non-working code ### Environment information ```bash CLI: Version: 1.3.3 Color support: true Platform: CPU Architecture: aarch64 OS: macos Environment: BIOME_LOG_DIR: unset ...
2023-12-05T22:42:46Z
0.3
2023-12-06T11:18:26Z
8dc2b1e4734c7992bf26c26ea37acd9df6e89f1d
[ "analyzers::correctness::no_nonoctal_decimal_escape::tests::test_get_unicode_escape", "analyzers::correctness::no_nonoctal_decimal_escape::tests::test_is_octal_escape_sequence", "analyzers::suspicious::no_control_characters_in_regex::tests::test_collect_control_characters", "analyzers::correctness::no_nonocta...
[]
[]
[]
auto_2025-06-09
biomejs/biome
1,023
biomejs__biome-1023
[ "914" ]
8e326f51ea19e54181c0b0dd17a9ba8c6eadf80b
diff --git a/crates/biome_js_formatter/src/ts/expressions/as_expression.rs b/crates/biome_js_formatter/src/ts/expressions/as_expression.rs --- a/crates/biome_js_formatter/src/ts/expressions/as_expression.rs +++ b/crates/biome_js_formatter/src/ts/expressions/as_expression.rs @@ -91,6 +91,20 @@ impl NeedsParentheses for ...
diff --git a/crates/biome_js_formatter/src/ts/expressions/as_expression.rs b/crates/biome_js_formatter/src/ts/expressions/as_expression.rs --- a/crates/biome_js_formatter/src/ts/expressions/as_expression.rs +++ b/crates/biome_js_formatter/src/ts/expressions/as_expression.rs @@ -152,5 +166,14 @@ mod tests { ass...
πŸ“ formatting compat issues ### Environment information ```block Playground ``` ### What happened? Hey, it's me again with more formatting discrepancies I found in our codebases. - [x] https://biomejs.dev/playground/?lineWidth=100&indentStyle=space&quoteStyle=single&trailingComma=none&lintRules=all&enabledLintin...
The first bug here happens because the formatter uses a `BestFitting` set when laying out arguments to a call expression, and it somehow manages to pick the middle variant rather than falling back to the fully-broken-out layout. I've been trying to address that to solve a number of other prettier diffs (like `prettier/...
2023-12-02T23:39:24Z
0.3
2023-12-03T12:23:39Z
8dc2b1e4734c7992bf26c26ea37acd9df6e89f1d
[ "ts::expressions::as_expression::tests::needs_parentheses" ]
[ "js::assignments::identifier_assignment::tests::needs_parentheses", "js::expressions::class_expression::tests::needs_parentheses", "js::expressions::number_literal_expression::tests::needs_parentheses", "js::expressions::computed_member_expression::tests::needs_parentheses", "syntax_rewriter::tests::comment...
[]
[]
auto_2025-06-09
biomejs/biome
996
biomejs__biome-996
[ "578" ]
c890be77cd77fea7a970c638fca7405b8d56df41
diff --git a/crates/biome_js_analyze/src/react/hooks.rs b/crates/biome_js_analyze/src/react/hooks.rs --- a/crates/biome_js_analyze/src/react/hooks.rs +++ b/crates/biome_js_analyze/src/react/hooks.rs @@ -209,6 +209,7 @@ impl StableReactHookConfiguration { /// ``` pub fn is_binding_react_stable( binding: &AnyJsIde...
diff --git a/crates/biome_js_analyze/src/react/hooks.rs b/crates/biome_js_analyze/src/react/hooks.rs --- a/crates/biome_js_analyze/src/react/hooks.rs +++ b/crates/biome_js_analyze/src/react/hooks.rs @@ -260,12 +257,46 @@ pub fn is_binding_react_stable( mod test { use super::*; use biome_js_parser::JsParserOp...
πŸ› When using `React` hook prefix, exhaustive deps breaks ### Environment information ```block ↳ pnpm biome rage CLI: Version: 1.3.1 Color support: true Platform: CPU Architecture: x86_64 OS: windows Environment: BIOME_...
Can you provide an example with the Eslint rule, please? This rule should follow what the original rule does. Sure @ematipico, here you are: https://stackblitz.com/edit/node-hcjbcn?file=src%2Findex.js,.eslintrc.js This has ESLint setup and allows you to run `npm run lint` in the terminal to verify the ESLint func...
2023-12-01T15:47:29Z
0.3
2024-01-07T21:54:39Z
8dc2b1e4734c7992bf26c26ea37acd9df6e89f1d
[ "analyzers::correctness::no_nonoctal_decimal_escape::tests::test_is_octal_escape_sequence", "analyzers::correctness::no_nonoctal_decimal_escape::tests::test_get_unicode_escape", "analyzers::suspicious::no_control_characters_in_regex::tests::test_collect_control_characters", "assists::correctness::organize_imp...
[]
[]
[]
auto_2025-06-09
biomejs/biome
942
biomejs__biome-942
[ "933" ]
04e6319e5744b7f7b7e131db55e92b9b1e192124
diff --git a/CHANGELOG.md b/CHANGELOG.md --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -18,6 +18,8 @@ Read our [guidelines for writing a good changelog entry](https://github.com/biom ### Editors +- Fix [#933](https://github.com/biomejs/biome/issues/933). Some files are properly ignored in the LSP too. E.g. `package.jso...
diff --git a/crates/biome_cli/tests/commands/format.rs b/crates/biome_cli/tests/commands/format.rs --- a/crates/biome_cli/tests/commands/format.rs +++ b/crates/biome_cli/tests/commands/format.rs @@ -1825,7 +1825,7 @@ fn ignore_comments_error_when_allow_comments() { let code = r#" /*test*/ [1, 2, 3] "#; - let...
πŸ› tsconfig.json should be ignored, but it now reports problems ### Environment information ```block CLI: Version: 1.4.0 Color support: true Platform: CPU Architecture: aarch64 OS: macos Environment: BIOME_LOG_DIR: ...
Do you see these errors even when you run the CLI? > Do you see these errors even when you run the CLI? No, CLI didn't show these errors. Only in VS Code. > biome(parse) <img width="782" alt="image" src="https://github.com/biomejs/biome/assets/35226412/0ab9cd8b-c0cc-46e0-ac2f-e71d60cf7cf7"> I tried 1.3....
2023-11-28T15:03:12Z
0.3
2024-01-18T09:50:19Z
8dc2b1e4734c7992bf26c26ea37acd9df6e89f1d
[ "commands::version::ok" ]
[ "diagnostics::test::termination_diagnostic_size", "metrics::tests::test_timing", "metrics::tests::test_layer", "commands::check::ok", "cases::overrides_formatter::does_handle_included_file_and_disable_formatter", "commands::check::check_stdin_apply_unsafe_only_organize_imports", "cases::biome_json_suppo...
[]
[]
auto_2025-06-09
biomejs/biome
872
biomejs__biome-872
[ "832" ]
3a2af456d1dd9998f24aac8f55ac843044c05d24
diff --git a/CHANGELOG.md b/CHANGELOG.md --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -36,6 +36,8 @@ Read our [guidelines for writing a good changelog entry](https://github.com/biom #### Bug fixes +- Fix [#832](https://github.com/biomejs/biome/issues/832), the formatter no longer keeps an unnecessary trailing comma in...
diff --git a/crates/biome_js_formatter/tests/prettier_tests.rs b/crates/biome_js_formatter/tests/prettier_tests.rs --- a/crates/biome_js_formatter/tests/prettier_tests.rs +++ b/crates/biome_js_formatter/tests/prettier_tests.rs @@ -3,7 +3,7 @@ use std::{env, path::Path}; use biome_formatter::IndentStyle; use biome_for...
πŸ› unnecessary trailing comma in type parameter list ### Environment information ```block Plaground ``` ### What happened? Biome keeps the trailing comma of type parameter lists. The following example: ```ts class A<T,> { } ``` is formatted to: ```ts class A<T,> {} ``` [Playground link](h...
2023-11-24T22:25:20Z
0.2
2023-11-24T23:06:21Z
cf9a586d69b09437bf4b7f075df0aa627daa891d
[ "specs::prettier::js::array_spread::multiple_js", "specs::prettier::js::arrays::last_js", "specs::prettier::js::arrays::holes_in_args_js", "specs::prettier::js::arrows::block_like_js", "specs::prettier::js::arrays::empty_js", "specs::prettier::js::arrows::semi::semi_js", "specs::prettier::js::arrows::lo...
[]
[]
[]
auto_2025-06-09
biomejs/biome
867
biomejs__biome-867
[ "861" ]
a3e14daacce1425c6275995dbd34dfb906121d47
diff --git a/CHANGELOG.md b/CHANGELOG.md --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -109,6 +109,8 @@ Read our [guidelines for writing a good changelog entry](https://github.com/biom - Fix [#576](https://github.com/biomejs/biome/issues/576) by removing some erroneous logic in [noSelfAssign](https://biomejs.dev/linter/r...
diff --git a/crates/biome_js_analyze/src/semantic_analyzers/correctness/no_unused_variables.rs b/crates/biome_js_analyze/src/semantic_analyzers/correctness/no_unused_variables.rs --- a/crates/biome_js_analyze/src/semantic_analyzers/correctness/no_unused_variables.rs +++ b/crates/biome_js_analyze/src/semantic_analyzers/...
πŸ’… False positive `lint/correctness/noUnusedVariables` on bracketless arrow functions ### Environment information ```bash $ bun biome rage CLI: Version: 1.3.3-nightly.38797b7 Color support: true Platform: CPU Architecture: x86_64 OS: ...
2023-11-24T12:55:38Z
0.2
2023-11-24T22:15:58Z
cf9a586d69b09437bf4b7f075df0aa627daa891d
[ "specs::correctness::no_unused_variables::valid_issue861_js" ]
[ "analyzers::correctness::no_nonoctal_decimal_escape::tests::test_is_octal_escape_sequence", "analyzers::correctness::no_nonoctal_decimal_escape::tests::test_get_unicode_escape", "analyzers::suspicious::no_control_characters_in_regex::tests::test_collect_control_characters", "assists::correctness::organize_imp...
[]
[]
auto_2025-06-09
biomejs/biome
859
biomejs__biome-859
[ "856" ]
a69a094ae991d4f0d839be9a0c0bb9d8ce8a5e1e
diff --git a/crates/biome_service/src/matcher/mod.rs b/crates/biome_service/src/matcher/mod.rs --- a/crates/biome_service/src/matcher/mod.rs +++ b/crates/biome_service/src/matcher/mod.rs @@ -73,7 +73,15 @@ impl Matcher { // Here we cover cases where the user specifies single files inside the patter...
diff --git a/crates/biome_service/src/matcher/mod.rs b/crates/biome_service/src/matcher/mod.rs --- a/crates/biome_service/src/matcher/mod.rs +++ b/crates/biome_service/src/matcher/mod.rs @@ -132,6 +140,25 @@ mod test { assert!(result); } + #[test] + fn matches_path_for_single_file_or_directory_nam...
πŸ› File ignored when `.gitignore` partially matching characters are included ### Environment information ```block CLI: Version: 1.3.3 Color support: true Platform: CPU Architecture: aarch64 OS: macos Environment: BIOME_LOG_D...
2023-11-23T18:56:49Z
0.2
2023-11-23T20:00:51Z
cf9a586d69b09437bf4b7f075df0aa627daa891d
[ "matcher::test::matches_path_for_single_file_or_directory_name" ]
[ "configuration::diagnostics::test::diagnostic_size", "diagnostics::test::diagnostic_size", "configuration::diagnostics::test::deserialization_quick_check", "matcher::pattern::test::test_matches_path", "matcher::pattern::test::test_pattern_absolute", "matcher::pattern::test::test_path_join", "matcher::pa...
[]
[]
auto_2025-06-09
biomejs/biome
843
biomejs__biome-843
[ "353" ]
ca576c8a5388cdfb6c0257804e723f7a129876ac
diff --git a/crates/biome_diagnostics_categories/src/categories.rs b/crates/biome_diagnostics_categories/src/categories.rs --- a/crates/biome_diagnostics_categories/src/categories.rs +++ b/crates/biome_diagnostics_categories/src/categories.rs @@ -115,6 +115,7 @@ define_categories! { "lint/nursery/useBiomeSuppressi...
diff --git /dev/null b/crates/biome_js_analyze/src/analyzers/nursery/use_regex_literals.rs new file mode 100644 --- /dev/null +++ b/crates/biome_js_analyze/src/analyzers/nursery/use_regex_literals.rs @@ -0,0 +1,244 @@ +use biome_analyze::{ + context::RuleContext, declare_rule, ActionCategory, FixKind, Rule, RuleDiag...
πŸ“Ž Implement `lint/useRegexLiterals` - `eslint/prefer-regex-literals` ### Description [prefer-regex-literals](https://eslint.org/docs/latest/rules/prefer-regex-literals/) Want to contribute? Lets we know you are interested! We will assign you to the issue to prevent several people to work on the same issue. Don't...
I'm insterested in this issue. Can I work on this? @Yuiki Off course! πŸš€
2023-11-23T11:12:41Z
0.2
2023-11-25T14:07:07Z
cf9a586d69b09437bf4b7f075df0aa627daa891d
[ "specs::nursery::use_regex_literals::valid_jsonc", "specs::nursery::use_regex_literals::invalid_jsonc" ]
[ "analyzers::correctness::no_nonoctal_decimal_escape::tests::test_get_unicode_escape", "analyzers::correctness::no_nonoctal_decimal_escape::tests::test_is_octal_escape_sequence", "assists::correctness::organize_imports::test_order", "analyzers::suspicious::no_control_characters_in_regex::tests::test_collect_co...
[]
[]
auto_2025-06-09
biomejs/biome
693
biomejs__biome-693
[ "455" ]
8475169ddc89aab85859b08949e75d44979c8b99
diff --git a/CHANGELOG.md b/CHANGELOG.md --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -42,6 +42,8 @@ Read our [guidelines for writing a good changelog entry](https://github.com/biom - Fix [#676](https://github.com/biomejs/biome/issues/676), by using the correct node for the `"noreferrer"` when applying the code action. ...
diff --git a/crates/biome_console/src/write/termcolor.rs b/crates/biome_console/src/write/termcolor.rs --- a/crates/biome_console/src/write/termcolor.rs +++ b/crates/biome_console/src/write/termcolor.rs @@ -235,4 +272,30 @@ mod tests { assert_eq!(from_utf8(&buffer).unwrap(), OUTPUT); } + + #[test] + ...
πŸ› `biome format` breaks emojis when used via stdin ### Environment information ```block CLI: Version: 1.2.2 Color support: true Platform: CPU Architecture: aarch64 OS: macos Environment: BIOME_LOG_DIR: uns...
This was also flagged in the Rome repository, and it seems it wasn't fixed. Here's a possible reason of the bug: https://github.com/rome/tools/issues/3915#issuecomment-1339388916 I think that problem is the logic of converting strings to buffers. Sometimes a Unicode "character" is made up of multiple [Unicode sc...
2023-11-09T17:45:51Z
0.2
2023-11-10T16:47:33Z
cf9a586d69b09437bf4b7f075df0aa627daa891d
[ "write::termcolor::tests::test_printing_complex_emojis" ]
[ "fmt::tests::display_bytes", "write::termcolor::tests::test_hyperlink", "write::termcolor::tests::test_sanitize", "test_macro", "test_macro_attributes", "tests/markup/closing_element_mismatch.rs", "tests/markup/closing_element_standalone.rs", "tests/markup/element_non_ident_name.rs", "tests/markup/i...
[]
[]
auto_2025-06-09
biomejs/biome
619
biomejs__biome-619
[ "613" ]
3b22c30b7d375aee10ee0024ac434a3dbef4b679
diff --git a/CHANGELOG.md b/CHANGELOG.md --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -42,6 +42,8 @@ Read our [guidelines for writing a good changelog entry](https://github.com/biom ### Parser +- Support RegExp v flag. Contributed by @nissy-dev + ### VSCode ## 1.3.1 (2023-10-20) diff --git a/crates/biome_js_parser...
diff --git a/crates/biome_js_parser/src/syntax/expr.rs b/crates/biome_js_parser/src/syntax/expr.rs --- a/crates/biome_js_parser/src/syntax/expr.rs +++ b/crates/biome_js_parser/src/syntax/expr.rs @@ -155,6 +155,7 @@ pub(crate) fn parse_expression_or_recover_to_next_statement( // "test\ // new-line"; // /^[ΩŠΩΩ…Ψ¦Ψ§Ω…Ψ¦β€Ψ¦Ψ§Ψ³...
πŸ“Ž js_parser: support RegExp `v` flag ### Description Make the JavaScript parser to recognize the RegExp `v` flag (Unicode sets). The [tc39/proposal-regexp-v-flag](https://github.com/tc39/proposal-regexp-v-flag) has reached the stage 4 of the TC39 process and is [widely supported](https://developer.mozilla.org/en-US/d...
2023-10-28T07:13:48Z
0.2
2023-10-30T03:14:10Z
cf9a586d69b09437bf4b7f075df0aa627daa891d
[ "tests::parser::ok::literals_js" ]
[ "lexer::tests::binary_literals", "lexer::tests::at_token", "lexer::tests::are_we_jsx", "lexer::tests::bigint_literals", "lexer::tests::bang", "lexer::tests::all_whitespace", "lexer::tests::consecutive_punctuators", "lexer::tests::complex_string_1", "lexer::tests::block_comment", "lexer::tests::div...
[]
[]
auto_2025-06-09
biomejs/biome
521
biomejs__biome-521
[ "39" ]
57a3d9d721ab685c741f66b160a4adfe767ffa60
diff --git a/crates/biome_diagnostics_categories/src/categories.rs b/crates/biome_diagnostics_categories/src/categories.rs --- a/crates/biome_diagnostics_categories/src/categories.rs +++ b/crates/biome_diagnostics_categories/src/categories.rs @@ -92,6 +92,7 @@ define_categories! { "lint/nursery/noApproximativeNume...
diff --git /dev/null b/crates/biome_js_analyze/src/analyzers/nursery/no_empty_block_statements.rs new file mode 100644 --- /dev/null +++ b/crates/biome_js_analyze/src/analyzers/nursery/no_empty_block_statements.rs @@ -0,0 +1,107 @@ +use biome_analyze::{context::RuleContext, declare_rule, Ast, Rule, RuleDiagnostic}; +us...
πŸ“Ž Implement `lint/noEmptyBlockStatements` - `eslint/no-empty` `eslint/no-empty-static-block` ### Description This lint rule should integrate both [no-empty](https://eslint.org/docs/latest/rules/no-empty/) and [no-empty-static-block](https://eslint.org/docs/latest/rules/no-empty-static-block/) rules. **Want to co...
What's the difference between this rule and https://github.com/biomejs/biome/issues/42? It's worth an explanation in the description > What's the difference between this rule and #42? It's worth an explanation in the description In contrast to #42, the rule prohibits any empty block statements. Examples of incorrec...
2023-10-13T15:52:11Z
0.1
2023-10-16T15:24:52Z
57a3d9d721ab685c741f66b160a4adfe767ffa60
[ "specs::nursery::no_empty_block_statements::valid_cjs", "specs::nursery::no_empty_block_statements::valid_ts", "specs::nursery::no_empty_block_statements::valid_js", "specs::nursery::no_empty_block_statements::invalid_js", "specs::nursery::no_empty_block_statements::invalid_ts" ]
[ "globals::node::test_order", "analyzers::correctness::no_nonoctal_decimal_escape::tests::test_parse_escape_sequences", "assists::correctness::organize_imports::test_order", "aria_services::tests::test_extract_attributes", "analyzers::correctness::no_nonoctal_decimal_escape::tests::test_is_octal_escape_seque...
[]
[]
auto_2025-06-09
biomejs/biome
469
biomejs__biome-469
[ "456" ]
3dc932726905c33f7fc5e77275bd5736e3f12c35
diff --git a/CHANGELOG.md b/CHANGELOG.md --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -125,6 +125,10 @@ Read our [guidelines for writing a good changelog entry](https://github.com/biom The rule enforce use of `as const` assertion to infer literal types. Contributed by @unvalley +- Add [noMisrefactoredShorthandAssig...
diff --git a/crates/biome_js_analyze/src/utils.rs b/crates/biome_js_analyze/src/utils.rs --- a/crates/biome_js_analyze/src/utils.rs +++ b/crates/biome_js_analyze/src/utils.rs @@ -95,3 +95,121 @@ pub(crate) fn is_node_equal(a_node: &JsSyntaxNode, b_node: &JsSyntaxNode) -> boo } true } + +#[derive(Debug, Parti...
πŸ“Ž Implement `lint/noMisrefactoredShorthandAssign` - `clippy/misrefactored_assign_op` ### Description Clippy [misrefactored_assign_op](https://rust-lang.github.io/rust-clippy/master/#/misrefactored_assign_op). Want to contribute? Lets us know you are interested! We will assign you to the issue to prevent several pe...
@victor-teles You may be interested in this rule because you have recently implemented [useShorthandAssign](https://biomejs.dev/linter/rules/use-shorthand-assign). @Conaclos Sure! I'll assign it to me
2023-10-01T15:49:15Z
0.1
2023-10-10T20:34:46Z
57a3d9d721ab685c741f66b160a4adfe767ffa60
[ "analyzers::correctness::no_nonoctal_decimal_escape::tests::test_get_unicode_escape", "analyzers::correctness::no_nonoctal_decimal_escape::tests::test_is_octal_escape_sequence", "assists::correctness::organize_imports::test_order", "analyzers::suspicious::no_control_characters_in_regex::tests::test_collect_co...
[]
[]
[]
auto_2025-06-09
biomejs/biome
468
biomejs__biome-468
[ "313" ]
003899166dcff1fe322cf2316aa01c577f56536b
diff --git a/CHANGELOG.md b/CHANGELOG.md --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -109,6 +109,8 @@ Read our [guidelines for writing a good changelog entry](https://github.com/biom - Fix [#294](https://github.com/biomejs/biome/issues/294). [noConfusingVoidType](https://biomejs.dev/linter/rules/no-confusing-void-type/...
diff --git a/crates/biome_js_analyze/src/utils/batch.rs b/crates/biome_js_analyze/src/utils/batch.rs --- a/crates/biome_js_analyze/src/utils/batch.rs +++ b/crates/biome_js_analyze/src/utils/batch.rs @@ -288,6 +293,27 @@ impl JsBatchMutation for BatchMutation<JsLanguage> { false } } + + fn ...
πŸ› `noRedundantUseStrict`: Applying fixes also removes the comment above "use strict" directive ### Environment information ```block CLI: Version: 1.2.2 Color support: true Platform: CPU Architecture: x86_64 OS: windows Environ...
2023-10-01T12:44:52Z
0.0
2023-10-01T13:30:26Z
003899166dcff1fe322cf2316aa01c577f56536b
[ "analyzers::correctness::no_nonoctal_decimal_escape::tests::test_is_octal_escape_sequence", "analyzers::correctness::no_nonoctal_decimal_escape::tests::test_get_unicode_escape", "analyzers::correctness::no_nonoctal_decimal_escape::tests::test_parse_escape_sequences", "analyzers::suspicious::no_control_charact...
[]
[]
[]
auto_2025-06-09
biomejs/biome
457
biomejs__biome-457
[ "296" ]
240aa9a2a213680bb28a897dcccdd918e023c854
diff --git a/CHANGELOG.md b/CHANGELOG.md --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -31,6 +31,7 @@ Read our [guidelines for writing a good changelog entry](https://github.com/biom - Add option `--indent-width`, and deprecated the option `--indent-size`. Contributed by @ematipico - Add option `--javascript-formatter-ind...
diff --git a/crates/biome_cli/tests/commands/rage.rs b/crates/biome_cli/tests/commands/rage.rs --- a/crates/biome_cli/tests/commands/rage.rs +++ b/crates/biome_cli/tests/commands/rage.rs @@ -1,5 +1,5 @@ use crate::run_cli; -use crate::snap_test::{CliSnapshot, SnapshotPayload}; +use crate::snap_test::{assert_cli_snapsh...
πŸ“Ž change how `rome rage` collects data ### Description At the moment, when you run `biome rage`, the command reads a bunch of stuff from your machine and the configuration file. Then, if a Daemon is running that is hooked to the LSP of the user, it prints all the logs captured in the last hour. This can be over...
2023-09-30T13:58:05Z
0.0
2023-10-02T00:53:54Z
003899166dcff1fe322cf2316aa01c577f56536b
[ "commands::rage::rage_help", "commands::rage::with_server_logs" ]
[ "diagnostics::test::termination_diagnostic_size", "metrics::tests::test_timing", "metrics::tests::test_layer", "commands::ci::ci_errors_for_all_disabled_checks", "commands::check::check_help", "cases::config_extends::extends_should_raise_an_error_for_unresolved_configuration_and_show_verbose", "commands...
[]
[]
auto_2025-06-09
biomejs/biome
385
biomejs__biome-385
[ "322" ]
fdc3bc88c52624fdd5af6f9337c7d27099107437
diff --git a/CHANGELOG.md b/CHANGELOG.md --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -37,6 +37,8 @@ Read our [guidelines for writing a good changelog entry](https://github.com/biom #### Bug fixes - Fix [#243](https://github.com/biomejs/biome/issues/243) a false positive case where the incorrect scope was defined for t...
diff --git a/crates/biome_js_analyze/src/lib.rs b/crates/biome_js_analyze/src/lib.rs --- a/crates/biome_js_analyze/src/lib.rs +++ b/crates/biome_js_analyze/src/lib.rs @@ -239,8 +239,16 @@ mod tests { String::from_utf8(buffer).unwrap() } - const SOURCE: &str = r#"value['optimizelyService']...
πŸ› correctness/noSelfAssign false positive ### Environment information ```block biome v 1.2.2 ``` ### What happened? See code. ``` document .querySelector(`[data-field-id="customModel-container"]`) .querySelector('input').value = document .querySelector(`[data-field-id="${modelField.i...
2023-09-22T12:25:56Z
0.0
2023-09-22T13:15:10Z
003899166dcff1fe322cf2316aa01c577f56536b
[ "specs::correctness::no_self_assign::valid_js", "specs::style::use_naming_convention::invalid_class_static_getter_js" ]
[ "analyzers::correctness::no_nonoctal_decimal_escape::tests::test_get_unicode_escape", "analyzers::correctness::no_nonoctal_decimal_escape::tests::test_is_octal_escape_sequence", "analyzers::suspicious::no_control_characters_in_regex::tests::test_collect_control_characters", "analyzers::correctness::no_nonocta...
[ "specs::correctness::no_self_assign::invalid_js" ]
[]
auto_2025-06-09
biomejs/biome
384
biomejs__biome-384
[ "383" ]
1aa21df1e6c537b022c130e8d44351d4c244d331
diff --git a/CHANGELOG.md b/CHANGELOG.md --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -56,6 +56,8 @@ Read our [guidelines for writing a good changelog entry](https://github.com/biom - Fix [#294](https://github.com/biomejs/biome/issues/294). [noConfusingVoidType](https://biomejs.dev/linter/rules/no-confusing-void-type/) ...
diff --git a/crates/biome_js_analyze/src/analyzers/complexity/no_multiple_spaces_in_regular_expression_literals.rs b/crates/biome_js_analyze/src/analyzers/complexity/no_multiple_spaces_in_regular_expression_literals.rs --- a/crates/biome_js_analyze/src/analyzers/complexity/no_multiple_spaces_in_regular_expression_liter...
πŸ› `lint/noMultipleSpacesInRegularExpressionLiterals` code fix doesn't correctly handle consecutive spaces followed by a quantifier ### Environment information ```block Playground ``` ### What happened? The rule provides a wrong an incorrect suggestion when a quantifier follows multiple spaces. For instance, the...
2023-09-22T11:56:17Z
0.0
2023-09-22T21:59:24Z
003899166dcff1fe322cf2316aa01c577f56536b
[ "specs::complexity::no_multiple_spaces_in_regular_expression_literals::invalid_jsonc" ]
[ "analyzers::correctness::no_nonoctal_decimal_escape::tests::test_get_unicode_escape", "analyzers::correctness::no_nonoctal_decimal_escape::tests::test_is_octal_escape_sequence", "analyzers::correctness::no_nonoctal_decimal_escape::tests::test_parse_escape_sequences", "analyzers::suspicious::no_control_charact...
[]
[]
auto_2025-06-09
biomejs/biome
326
biomejs__biome-326
[ "129" ]
34ba257158f71388e993cb3972a5bfe3d04299be
diff --git a/CHANGELOG.md b/CHANGELOG.md --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -39,6 +39,19 @@ Read our [guidelines for writing a good changelog entry](https://github.com/biom ### Parser - Enhance diagnostic for infer type handling in the parser. The 'infer' keyword can only be utilized within the 'extends' clau...
diff --git a/crates/biome_cli/tests/commands/format.rs b/crates/biome_cli/tests/commands/format.rs --- a/crates/biome_cli/tests/commands/format.rs +++ b/crates/biome_cli/tests/commands/format.rs @@ -1856,13 +1856,13 @@ fn ignore_comments_error_when_allow_comments() { } "#; - let rome_config = "biome.json"; + ...
πŸ“Ž Implement `json.parser.allowTrailingCommas` ### Description As reported in #83, some config files support trailing comma. `json.parser.allowTrailingCommas: true` enables trailing commas in `json` and `jsonc` files, making the following example valid: ```jsonc { "prop1": [ 1, 2, ], "prop2":...
I'm working
2023-09-18T10:19:50Z
0.0
2023-09-22T13:46:46Z
003899166dcff1fe322cf2316aa01c577f56536b
[ "commands::format::format_json_when_allow_trailing_commas", "err::array_comma_after_close_json", "err::array_1_true_without_comma_json", "err::array_double_comma_json", "err::array_comma_and_number_json", "err::array_incomplete_json", "err::array_extra_close_json", "err::array_unclosed_trailing_comma_...
[ "diagnostics::test::termination_diagnostic_size", "metrics::tests::test_timing", "metrics::tests::test_layer", "cases::biome_json_support::ci_biome_json", "cases::biome_json_support::linter_biome_json", "commands::check::apply_suggested_error", "cases::config_extends::extends_should_raise_an_error_for_u...
[]
[]
auto_2025-06-09
biomejs/biome
256
biomejs__biome-256
[ "105" ]
b14349ff0fd655ba7c4a00525a6a650d79f58f36
diff --git a/CHANGELOG.md b/CHANGELOG.md --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -32,6 +32,31 @@ Read our [guidelines for writing a good changelog entry](https://github.com/biom - [useCollapsedElseIf](https://biomejs.dev/linter/rules/use-collapsed-else-if/) now only provides safe code fixes. Contributed by [@Conacl...
diff --git a/crates/biome_js_analyze/src/semantic_analyzers/correctness/no_unused_variables.rs b/crates/biome_js_analyze/src/semantic_analyzers/correctness/no_unused_variables.rs --- a/crates/biome_js_analyze/src/semantic_analyzers/correctness/no_unused_variables.rs +++ b/crates/biome_js_analyze/src/semantic_analyzers/...
πŸ› `noUnusedVariables` not looking at inner functions against a declared variable for a match ### Environment information ```block CLI: Version: 1.0.0 Color support: true Platform: CPU Architecture: aarch64 OS: macos Environ...
2023-09-12T16:10:43Z
0.0
2023-09-13T15:01:56Z
003899166dcff1fe322cf2316aa01c577f56536b
[ "analyzers::nursery::no_nonoctal_decimal_escape::tests::test_is_octal_escape_sequence", "analyzers::nursery::no_nonoctal_decimal_escape::tests::test_get_unicode_escape", "analyzers::nursery::no_control_characters_in_regex::tests::test_collect_control_characters", "globals::node::test_order", "globals::brows...
[]
[]
[]
auto_2025-06-09
biomejs/biome
3,207
biomejs__biome-3207
[ "3179" ]
b70f405b5f7c6f7afeb4bdb9272fcf2ab0b764cd
diff --git a/CHANGELOG.md b/CHANGELOG.md --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -23,6 +23,10 @@ our [guidelines for writing a good changelog entry](https://github.com/biomejs/b ### CLI +#### Bug fixes + +- Fix [#3179](https://github.com/biomejs/biome/issues/3179) where comma separators are not correctly removed ...
diff --git a/crates/biome_migrate/src/analyzers/nursery_rules.rs b/crates/biome_migrate/src/analyzers/nursery_rules.rs --- a/crates/biome_migrate/src/analyzers/nursery_rules.rs +++ b/crates/biome_migrate/src/analyzers/nursery_rules.rs @@ -69,7 +72,7 @@ fn find_group_by_name(root: &JsonRoot, group_name: &str) -> Option<...
πŸ› `npx @biomejs/biome migrate` command crashes ### Environment information ```block CLI: Version: 1.8.1 Color support: true Platform: CPU Architecture: x86_64 OS: linux Environment: BIOME_LOG_DIR: unset NO...
Is it possible that you have a leading comma in `biome.json` and that you enabled it in the configuration file? e.g. ```json { "json": { "parser": { "allowTrailingCommas": true } } } ``` I have it in the `javascript.formatter` property section, and it is `"trailingCommas": "es5"` Could you share your `biome.jso...
2024-06-13T18:29:28Z
0.5
2024-06-14T10:01:21Z
2425ce767fc6a93bbd091a5a9ec18beb5476e204
[ "specs::migrations::nursery_rules::middle_to_existing_group_json", "specs::migrations::nursery_rules::last_to_existing_group_json", "specs::migrations::nursery_rules::first_to_existing_group_json", "specs::migrations::nursery_rules::existing_group_with_existing_rule_json" ]
[ "specs::migrations::nursery_rules::renamed_rule_json", "specs::migrations::nursery_rules::no_new_group_json", "specs::migrations::schema::invalid_json", "specs::migrations::schema::valid_json", "specs::migrations::indent_size::invalid_json", "specs::migrations::nursery_rules::renamed_rule_and_new_rule_jso...
[ "specs::migrations::nursery_rules::single_to_existing_group_json" ]
[]
auto_2025-06-09
biomejs/biome
3,183
biomejs__biome-3183
[ "3176" ]
c9261d2a008462ba4a48d56e5a7a17c7c5186919
diff --git a/CHANGELOG.md b/CHANGELOG.md --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -36,6 +36,46 @@ our [guidelines for writing a good changelog entry](https://github.com/biomejs/b ### Configuration +#### Bug fixes + +- Don't conceal previous overrides ([#3176](https://github.com/biomejs/biome/issues/3176)). + + Pr...
diff --git a/crates/biome_cli/tests/cases/overrides_formatter.rs b/crates/biome_cli/tests/cases/overrides_formatter.rs --- a/crates/biome_cli/tests/cases/overrides_formatter.rs +++ b/crates/biome_cli/tests/cases/overrides_formatter.rs @@ -587,3 +587,87 @@ fn does_not_change_formatting_language_settings_2() { r...
πŸ› Override behavior with multiple matches ### Discussed in https://github.com/biomejs/biome/discussions/3166 <div type='discussions-op-text'> <sup>Originally posted by **redbmk** June 10, 2024</sup> I'm not sure if this is a bug so starting it out as a discussion. I expected to be able to add multiple blocks...
It seems that we propagate the base settings to every override item. Thus, the following config: ```json { "$schema": "https://biomejs.dev/schemas/1.7.1/schema.json", "linter": { "rules": { "suspicious": { "noConsoleLog": "warn" } } }, "overrides": [ { "include": ["index.js...
2024-06-11T22:14:06Z
0.5
2024-06-12T16:27:47Z
2425ce767fc6a93bbd091a5a9ec18beb5476e204
[ "cases::overrides_linter::does_merge_all_overrides", "cases::overrides_linter::takes_last_linter_enabled_into_account", "cases::overrides_formatter::takes_last_formatter_enabled_into_account", "cases::overrides_formatter::does_not_conceal_previous_overrides", "commands::check::check_help", "cases::overrid...
[ "commands::tests::incompatible_arguments", "commands::tests::no_fix", "diagnostics::test::termination_diagnostic_size", "commands::tests::safe_and_unsafe_fixes", "commands::tests::safe_fixes", "execute::migrate::ignorefile::tests::negated_pattern", "execute::migrate::ignorefile::tests::empty", "execut...
[ "commands::explain::explain_help" ]
[]
auto_2025-06-09
biomejs/biome
3,074
biomejs__biome-3074
[ "3069" ]
2d9f96cb28d570c759b75941bb9471592c48cea4
diff --git a/CHANGELOG.md b/CHANGELOG.md --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -9,6 +9,14 @@ New entries must be placed in a section entitled `Unreleased`. Read our [guidelines for writing a good changelog entry](https://github.com/biomejs/biome/blob/main/CONTRIBUTING.md#changelog). +## Unreleased + +### CLI + +...
diff --git a/crates/biome_cli/tests/commands/check.rs b/crates/biome_cli/tests/commands/check.rs --- a/crates/biome_cli/tests/commands/check.rs +++ b/crates/biome_cli/tests/commands/check.rs @@ -3293,3 +3293,52 @@ function f() {\n\targuments;\n} result, )); } + +#[test] +fn should_error_if_unstaged_files...
πŸ› --staged regression in v1.8.0 ### Environment information ```block CLI: Version: 1.8.0 Color support: true Platform: CPU Architecture: aarch64 OS: macos Environment: BIOME_LOG_DIR: unset NO_COLOR: ...
Thank you for reporting it! @unvalley are you able to take a look?
2024-06-05T17:07:15Z
0.5
2024-06-06T02:14:06Z
2425ce767fc6a93bbd091a5a9ec18beb5476e204
[ "commands::check::check_help", "commands::ci::ci_help", "commands::format::format_help", "commands::format::with_invalid_semicolons_option", "commands::lint::lint_help", "commands::lint::lint_only_missing_group", "commands::lint::lint_only_nursery_group", "commands::migrate::migrate_help", "commands...
[ "commands::tests::no_fix", "diagnostics::test::termination_diagnostic_size", "commands::tests::incompatible_arguments", "execute::migrate::ignorefile::tests::comments_and_empty_lines", "execute::migrate::eslint_to_biome::tests::flat_config_single_config_object", "execute::migrate::ignorefile::tests::empty...
[ "commands::explain::explain_help" ]
[]
auto_2025-06-09
biomejs/biome
3,036
biomejs__biome-3036
[ "1056" ]
e3e93cc52b9b5c3cb7e8dda1eb30030400788d9b
diff --git a/crates/biome_formatter/src/format_element/document.rs b/crates/biome_formatter/src/format_element/document.rs --- a/crates/biome_formatter/src/format_element/document.rs +++ b/crates/biome_formatter/src/format_element/document.rs @@ -250,7 +250,35 @@ impl Format<IrFormatContext> for &[FormatElement] { ...
diff --git a/crates/biome_formatter/src/format_element/document.rs b/crates/biome_formatter/src/format_element/document.rs --- a/crates/biome_formatter/src/format_element/document.rs +++ b/crates/biome_formatter/src/format_element/document.rs @@ -710,6 +738,10 @@ impl FormatElements for [FormatElement] { #[cfg(test)...
πŸ› Quotes within quotes of Formatter IR isn't escaped ### Environment information ```block This is running Biomejs playground with no special options enabled. ``` ### What happened? 1. Had a string in Biome.js playground: https://biomejs.dev/playground/?code=YQB3AGEAaQB0ACAAIgBhACIAIAA%3D ```ts await "a"...
@ematipico I would like to address this issue! @ematipico ~~Thanks for your hard work! I have a question about this issue! I'm looking at a lot of implementations right now, and the one that needs to be fixed is https://github.com/biomejs/biome/blob/main/crates/biome_js_formatter/src/js/expressions/await_ In the...
2024-06-01T13:35:19Z
0.5
2024-09-10T12:34:47Z
2425ce767fc6a93bbd091a5a9ec18beb5476e204
[ "format_element::document::tests::escapes_quotes" ]
[ "arguments::tests::test_nesting", "comments::map::tests::dangling_leading", "comments::map::tests::dangling_trailing", "comments::builder::tests::comment_only_program", "comments::builder::tests::dangling_arrow", "comments::map::tests::empty", "comments::map::tests::keys_out_of_order", "comments::buil...
[]
[]
auto_2025-06-09
biomejs/biome
3,034
biomejs__biome-3034
[ "2625" ]
4ce214462aa33da8213015fa98a6375665bdbe6e
diff --git a/crates/biome_configuration/src/linter/rules.rs b/crates/biome_configuration/src/linter/rules.rs --- a/crates/biome_configuration/src/linter/rules.rs +++ b/crates/biome_configuration/src/linter/rules.rs @@ -2869,6 +2869,9 @@ pub struct Nursery { #[doc = "Disallow unknown properties."] #[serde(skip...
diff --git a/crates/biome_css_analyze/src/lib.rs b/crates/biome_css_analyze/src/lib.rs --- a/crates/biome_css_analyze/src/lib.rs +++ b/crates/biome_css_analyze/src/lib.rs @@ -158,12 +158,30 @@ mod tests { String::from_utf8(buffer).unwrap() } - const SOURCE: &str = r#"@font-face { font-fam...
πŸ“Ž Implement selector-pseudo-class-no-unknown ## Description Implement [selector-pseudo-class-no-unknown](https://stylelint.io/user-guide/rules/selector-pseudo-class-no-unknown) > [!IMPORTANT] > - Please skip implementing options for now since we will evaluate users actually want them later. > - Please ignore ...
Hi can I work on this issue?
2024-06-01T07:26:32Z
0.5
2024-09-10T13:10:29Z
2425ce767fc6a93bbd091a5a9ec18beb5476e204
[ "specs::nursery::no_unknown_pseudo_class_selector::valid_css", "specs::nursery::no_unknown_pseudo_class_selector::invalid_css" ]
[ "keywords::tests::test_known_properties_order", "keywords::tests::test_function_keywords_sorted", "keywords::tests::test_kown_explorer_properties_order", "keywords::tests::test_kown_edge_properties_order", "keywords::tests::test_kown_firefox_properties_order", "keywords::tests::test_kown_safari_properties...
[]
[]
auto_2025-06-09
biomejs/biome
3,007
biomejs__biome-3007
[ "2990" ]
5e96827c40ccb31c831a09f3ad68700753e12905
diff --git a/crates/biome_service/src/file_handlers/json.rs b/crates/biome_service/src/file_handlers/json.rs --- a/crates/biome_service/src/file_handlers/json.rs +++ b/crates/biome_service/src/file_handlers/json.rs @@ -1,3 +1,5 @@ +use std::ffi::OsStr; + use super::{CodeActionsParams, DocumentFileSource, ExtensionHand...
diff --git a/crates/biome_cli/tests/cases/biome_json_support.rs b/crates/biome_cli/tests/cases/biome_json_support.rs --- a/crates/biome_cli/tests/cases/biome_json_support.rs +++ b/crates/biome_cli/tests/cases/biome_json_support.rs @@ -253,3 +253,41 @@ fn biome_json_is_not_ignored() { result, )); } + +#[t...
πŸ› Buggy side-effect caused by previous fix that made `biome.json(c)` un-ignore-able ### Environment information ```block Platform: CPU Architecture: x86_64 OS: linux Environment: BIOME_LOG_DIR: unset NO_COLOR: unset TERM: ...
For those come across here looking for a workaround, here's what you need to do: ```javascript "json": { "formatter": { "trailingCommas": "none" } }, ``` And keep the discussion going so our wonderful maintainers can see this issue. ❀️ I'd like to give this a shot. > I'd like to give this a...
2024-05-27T19:59:51Z
0.5
2024-05-28T13:08:20Z
2425ce767fc6a93bbd091a5a9ec18beb5476e204
[ "cases::biome_json_support::always_disable_trailing_commas_biome_json", "commands::check::check_help", "commands::format::format_help", "commands::ci::ci_help", "commands::format::with_invalid_semicolons_option", "commands::lint::lint_only_missing_group", "commands::lint::lint_only_nursery_group", "co...
[ "commands::tests::incompatible_arguments", "commands::tests::no_fix", "diagnostics::test::termination_diagnostic_size", "commands::tests::safe_fixes", "commands::tests::safe_and_unsafe_fixes", "execute::migrate::ignorefile::tests::comments_and_empty_lines", "execute::migrate::ignorefile::tests::empty", ...
[ "commands::explain::explain_help" ]
[]
auto_2025-06-09
biomejs/biome
2,989
biomejs__biome-2989
[ "2986" ]
5e96827c40ccb31c831a09f3ad68700753e12905
diff --git a/crates/biome_service/src/matcher/pattern.rs b/crates/biome_service/src/matcher/pattern.rs --- a/crates/biome_service/src/matcher/pattern.rs +++ b/crates/biome_service/src/matcher/pattern.rs @@ -3,7 +3,7 @@ use crate::matcher::pattern::MatchResult::{ EntirePatternDoesntMatch, Match, SubPatternDoesntMat...
diff --git a/crates/biome_service/src/matcher/pattern.rs b/crates/biome_service/src/matcher/pattern.rs --- a/crates/biome_service/src/matcher/pattern.rs +++ b/crates/biome_service/src/matcher/pattern.rs @@ -924,4 +1008,46 @@ mod test { .matches_path(Path::new("\\\\?\\C:\\a\\b\\c.js"))); } ...
πŸ“Ž Support `{a,b}` glob pattern syntax for includes/excludes # Summary We want to support `{a,b}` pattern matching syntax for includes and excludes. It will allow us to more comprehensively support all the patterns that the Editorconfig spec defines (although not completely). Specifically, this syntax is to indic...
2024-05-26T13:33:10Z
0.5
2024-05-28T12:47:16Z
2425ce767fc6a93bbd091a5a9ec18beb5476e204
[ "diagnostics::test::diagnostic_size", "matcher::pattern::test::test_matches_path", "matcher::pattern::test::test_path_join", "matcher::pattern::test::test_pattern_absolute", "matcher::pattern::test::test_pattern_escape", "matcher::pattern::test::test_pattern_from_str", "matcher::pattern::test::test_patt...
[]
[]
[]
auto_2025-06-09
biomejs/biome
2,958
biomejs__biome-2958
[ "2807" ]
04745f42096b9797c87f6913a178961f7053bb39
diff --git a/crates/biome_configuration/src/linter/rules.rs b/crates/biome_configuration/src/linter/rules.rs --- a/crates/biome_configuration/src/linter/rules.rs +++ b/crates/biome_configuration/src/linter/rules.rs @@ -2857,6 +2857,9 @@ pub struct Nursery { #[doc = "Disallow specified modules when loaded by import...
diff --git a/crates/biome_css_analyze/src/keywords.rs b/crates/biome_css_analyze/src/keywords.rs --- a/crates/biome_css_analyze/src/keywords.rs +++ b/crates/biome_css_analyze/src/keywords.rs @@ -5124,6 +5124,315 @@ pub const MEDIA_FEATURE_NAMES: [&str; 60] = [ "width", ]; +pub const SHORTHAND_PROPERTIES: [&str;...
πŸ“Ž Implement declaration-block-no-shorthand-property-overrides ## Description Implement [declaration-block-no-shorthand-property-overrides](https://stylelint.io/user-guide/rules/declaration-block-no-shorthand-property-overrides) > [!IMPORTANT] > - Please skip implementing options for now since we will evaluate ...
Hello! I'm interested in tackling this issue. We should come up with a better name. The current name is very long. What do you suggest @togami2864 ? How about `noShorthandPropertyOverrides`? I think it's fine not to include declaration-block since there's only one override rule.
2024-05-23T15:43:24Z
0.5
2024-06-10T19:56:07Z
2425ce767fc6a93bbd091a5a9ec18beb5476e204
[ "specs::nursery::no_shorthand_property_overrides::valid_css", "specs::nursery::no_shorthand_property_overrides::invalid_css" ]
[ "keywords::tests::test_kown_explorer_properties_order", "keywords::tests::test_function_keywords_sorted", "keywords::tests::test_kown_edge_properties_order", "keywords::tests::test_known_properties_order", "keywords::tests::test_kown_firefox_properties_order", "keywords::tests::test_kown_safari_properties...
[]
[]
auto_2025-06-09
biomejs/biome
2,957
biomejs__biome-2957
[ "2924" ]
a51ef9d771c526c5df42da0167a65813b7e80854
diff --git a/crates/biome_service/src/settings.rs b/crates/biome_service/src/settings.rs --- a/crates/biome_service/src/settings.rs +++ b/crates/biome_service/src/settings.rs @@ -1307,7 +1307,13 @@ pub(crate) fn to_override_format_settings( .unwrap_or(format_settings.format_with_errors); OverrideFormatS...
diff --git a/crates/biome_cli/tests/cases/overrides_formatter.rs b/crates/biome_cli/tests/cases/overrides_formatter.rs --- a/crates/biome_cli/tests/cases/overrides_formatter.rs +++ b/crates/biome_cli/tests/cases/overrides_formatter.rs @@ -234,6 +234,74 @@ fn does_include_file_with_different_overrides() { )); } ...
πŸ“ disabling formatter doesn't work ### Environment information ```bash ❯ yarn biome rage --formatter yarn run v1.22.22 $ /Users/yagiz/coding/sentry/node_modules/.bin/biome rage --formatter CLI: Version: 1.7.3 Color support: true Platform: CPU Architecture: ...
Disabling javascript formatter still proposes the following change: ``` ./static/app/utils/queryClient.tsx format ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ βœ– Formatter would have printed the following content: 290 290 β”‚ } 291 291 β”‚ 292 β”‚ - typeΒ·ApiMutationVariables< ...
2024-05-23T15:01:06Z
0.5
2024-05-24T12:49:01Z
2425ce767fc6a93bbd091a5a9ec18beb5476e204
[ "cases::overrides_formatter::complex_enable_disable_overrides", "commands::check::check_help", "commands::ci::ci_help", "commands::format::format_help", "commands::format::with_invalid_semicolons_option", "commands::lint::lint_rule_missing_group", "commands::lint::lint_help", "commands::lsp_proxy::lsp...
[ "commands::tests::incompatible_arguments", "commands::tests::no_fix", "diagnostics::test::termination_diagnostic_size", "execute::migrate::ignorefile::tests::comments_and_empty_lines", "commands::tests::safe_and_unsafe_fixes", "commands::tests::safe_fixes", "execute::migrate::ignorefile::tests::negated_...
[ "commands::explain::explain_help" ]
[]
auto_2025-06-09
biomejs/biome
2,892
biomejs__biome-2892
[ "2882" ]
32e422d0d63ec17c7eded814cdde0d26b158c110
diff --git a/CHANGELOG.md b/CHANGELOG.md --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -67,6 +67,47 @@ our [guidelines for writing a good changelog entry](https://github.com/biomejs/b ### Configuration +#### New features + +- Add an rule option `fix` to override the code fix kind of a rule ([#2882](https://github.com/b...
diff --git a/crates/biome_js_analyze/src/lib.rs b/crates/biome_js_analyze/src/lib.rs --- a/crates/biome_js_analyze/src/lib.rs +++ b/crates/biome_js_analyze/src/lib.rs @@ -268,7 +268,7 @@ mod tests { options.configuration.rules.push_rule( RuleKey::new("nursery", "useHookAtTopLevel"), - ...
πŸ“Ž Make code fix kind configurable ### Description Users have asked several times for a way to [disable a rule fix](https://github.com/biomejs/biome/discussions/2104) or to upgrade a rule fix from `unsafe` to `safe`. Some users would also like a way to downgrade a fix from `safe` to `unsafe`. Disabling a code fix...
2024-05-16T15:55:08Z
0.5
2024-05-16T17:47:21Z
2425ce767fc6a93bbd091a5a9ec18beb5476e204
[ "globals::javascript::node::test_order", "globals::module::node::test_order", "globals::javascript::language::test_order", "assists::correctness::organize_imports::test_order", "globals::javascript::web::test_order", "globals::typescript::node::test_order", "globals::typescript::language::test_order", ...
[]
[]
[]
auto_2025-06-09
biomejs/biome
2,868
biomejs__biome-2868
[ "2825" ]
d906941642cae0b3b3d0ac8f6de4365ce3aba8ac
diff --git a/CHANGELOG.md b/CHANGELOG.md --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -143,6 +143,21 @@ z.object({}) - `lang="tsx"` is now supported in Vue Single File Components. [#2765](https://github.com/biomejs/biome/issues/2765) Contributed by @dyc3 +#### Bug fixes + +- The `const` modifier for type parameters is...
diff --git a/crates/biome_js_parser/src/syntax/typescript/types.rs b/crates/biome_js_parser/src/syntax/typescript/types.rs --- a/crates/biome_js_parser/src/syntax/typescript/types.rs +++ b/crates/biome_js_parser/src/syntax/typescript/types.rs @@ -1294,6 +1294,7 @@ fn parse_ts_call_signature_type_member(p: &mut JsParser...
πŸ› parser chokes when `const` modifier describes a constructor function ### Environment information - [Biome playground](https://biomejs.dev/playground/?lineWidth=120&code=LwAvACAAVAB5AHAAZQBTAGMAcgBpAHAAdAAgAHAAbABhAHkAZwByAG8AdQBuAGQAOgAgAGgAdAB0AHAAcwA6AC8ALwB0AHMAcABsAGEAeQAuAGQAZQB2AC8ATgBWAFgAbABCAFcACgAvAC8AI...
2024-05-15T10:32:33Z
0.5
2024-05-15T11:11:43Z
2425ce767fc6a93bbd091a5a9ec18beb5476e204
[ "tests::parser::ok::ts_construct_signature_member_ts" ]
[ "lexer::tests::bigint_literals", "lexer::tests::are_we_jsx", "lexer::tests::bang", "lexer::tests::binary_literals", "lexer::tests::all_whitespace", "lexer::tests::at_token", "lexer::tests::division", "lexer::tests::consecutive_punctuators", "lexer::tests::complex_string_1", "lexer::tests::block_co...
[]
[]
auto_2025-06-09
biomejs/biome
2,823
biomejs__biome-2823
[ "2771" ]
671e1386c3bf894bafef3235e6a2d46c30c88601
diff --git a/CHANGELOG.md b/CHANGELOG.md --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -13,6 +13,10 @@ our [guidelines for writing a good changelog entry](https://github.com/biomejs/b ### Analyzer +#### Enhancements + +- Assume Vue compiler macros are globals when processing `.vue` files. ([#2771](https://github.com/bi...
diff --git a/crates/biome_cli/tests/cases/handle_vue_files.rs b/crates/biome_cli/tests/cases/handle_vue_files.rs --- a/crates/biome_cli/tests/cases/handle_vue_files.rs +++ b/crates/biome_cli/tests/cases/handle_vue_files.rs @@ -119,6 +119,28 @@ a.c = undefined; </script> <template></template>"#; +const VUE_TS_FILE_S...
πŸ› vue formatter does not recognize vue magic ### Environment information ```block CLI: Version: 1.7.3 Color support: true Platform: CPU Architecture: x86_64 OS: windows Environment: BIOME_LOG_DIR: unset NO...
Your solution is the correct approach. We suggest this caveat for other files too. Would like to send a PR to the website to document it? I dislike the workaround and don't love the idea of enshrining it. It's superficial (e.g. it shouldn't but does allow `x = defineEmits`) and can't provide many of even more semantic ...
2024-05-12T16:45:37Z
0.5
2024-05-16T14:35:56Z
2425ce767fc6a93bbd091a5a9ec18beb5476e204
[ "commands::check::check_help", "commands::ci::ci_help", "commands::format::format_help", "commands::format::with_invalid_semicolons_option", "commands::lint::lint_rule_missing_group", "commands::lint::lint_help", "commands::lsp_proxy::lsp_proxy_help", "commands::rage::rage_help", "commands::migrate:...
[ "diagnostics::test::termination_diagnostic_size", "execute::migrate::ignorefile::tests::comments_and_empty_lines", "execute::migrate::ignorefile::tests::negated_pattern", "execute::migrate::ignorefile::tests::empty", "execute::migrate::ignorefile::tests::relative_patterns", "execute::migrate::ignorefile::...
[ "commands::explain::explain_help" ]
[]
auto_2025-06-09