ITADN

Fix Biome Ignore Magic Comments

#581Pull Requestnikolas-sturm 创建于 2025-08-03
N
nikolas-sturmcommented
<!-- DO NOT IGNORE THE TEMPLATE! Thank you for contributing! Before submitting the PR, please make sure you do the following: - Read the [Contributing Guide](https://github.com/antfu/contribute). - Check that there isn't already a PR that solves the problem the same way to avoid creating a duplicate. - Provide a description in this PR that addresses **what** the PR is solving, or reference the issue that it solves (e.g. `fixes #123`). - Ideally, include relevant tests that fail without this PR but pass with it. --> ### Description Fixes the single line only magic comments to instead suppress biome across the whole file as expected. Before: ``` > biome check src/auto-imports.d.ts:6:1 suppressions/unused ⚠ Suppression comment has no effect. Remove the suppression or make sure you are suppressing the correct rule. 4 │ // noinspection JSUnusedGlobalSymbols 5 │ // Generated by unplugin-auto-import > 6 │ // biome-ignore lint: disable │ ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 7 │ export {} 8 │ declare global { Checked 73 files in 15ms. Fixed 1 file. Found 1 warning. ``` After: ``` > biome check Checked 73 files in 18ms. No fixes applied. ```
合并状态:未合并 2 条评论