CLI:
Version: 1.9.3
Color support: true
Platform:
CPU Architecture: aarch64
OS: macos
Environment:
BIOME_LOG_PATH: unset
BIOME_LOG_PREFIX_NAME: unset
BIOME_CONFIG_PATH: unset
NO_COLOR: unset
TERM: "xterm-256color"
JS_RUNTIME_VERSION: "v22.8.0"
JS_RUNTIME_NAME: "node"
NODE_PACKAGE_MANAGER: "yarn/1.22.22"
Biome Configuration:
Status: Loaded successfully
Formatter disabled: false
Linter disabled: false
Organize imports disabled: false
VCS disabled: true
Workspace:
Open Documents: 0
Steps:
<A b=<></> />;
noUselessFragments
lintbiome check --write --unsafe
Repro repo: https://github.com/simon-paris/biome-infinite-loop-test
Doesn't reproduce on playground.
Without --write --unsafe
, it prints this. Note the fix diff is empty.
/Users/simonparis/biome-infinite-loop-test/index.tsx:1:6 lint/complexity/noUselessFragments FIXABLE ββββββββββ
β Avoid using unnecessary Fragment.
> 1 β <A b=<></> />;
β ^^^^^
2 β
βΉ A fragment is redundant if it contains only one child, or if it is the child of a html element, and is not a keyed fragment.
βΉ Unsafe fix: Remove the Fragment
Checked 2 files in 1186Β΅s. No fixes applied.
Found 1 error.
check ββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ
β Some errors were emitted while running checks.
The debug log prints this repeatedly:
2024-10-08T08:58:08.940477Z DEBUG pushing change...
at crates/biome_rowan/src/ast/batch.rs:301 on biome::worker_0
in Processes linting with path: "/Users/simonparis/biome-infinite-loop-test/index.tsx"
in Process check with path: "/Users/simonparis/biome-infinite-loop-test/index.tsx"
Pay now to fund the work behind this issue.
Get updates on progress being made.
Maintainer is rewarded once the issue is completed.
You're funding impactful open source efforts
You want to contribute to this effort
You want to get funding like this too