Initial checklist
Affected package
remark-lint-no-undefined-references@5.0.2
Steps to reproduce
A minimal and reproducible repository is available here:
https://github.com/r4ai/remark-lint-no-undefined-references-broken-auto-fix
Detailed reproduction steps are provided in the project’s README.md.
Actual behavior
When the allow option is used with remark-lint-no-undefined-references, warnings are correctly suppressed for the allowed references, but the auto-fix still runs.
For example, with the option { allow: ["hoge"] }, [hoge] no longer triggers a warning, yet the automatic fixer still rewrites it to \[hoge].
Expected behavior
References specified in the allow list should be excluded from auto-fixing.
Continuing the example above, with { allow: ["hoge"] }, [hoge] should remain unchanged and not be rewritten to \[hoge].
Runtime
node@22.15.0
Package manager
10.9.2
Operating system
Ubuntu 24.04.2 LTS
Build and bundle tools
No response
Initial checklist
Affected package
remark-lint-no-undefined-references@5.0.2
Steps to reproduce
A minimal and reproducible repository is available here:
https://github.com/r4ai/remark-lint-no-undefined-references-broken-auto-fix
Detailed reproduction steps are provided in the project’s
README.md.Actual behavior
When the
allowoption is used withremark-lint-no-undefined-references, warnings are correctly suppressed for the allowed references, but the auto-fix still runs.For example, with the option
{ allow: ["hoge"] },[hoge]no longer triggers a warning, yet the automatic fixer still rewrites it to\[hoge].Expected behavior
References specified in the
allowlist should be excluded from auto-fixing.Continuing the example above, with
{ allow: ["hoge"] },[hoge]should remain unchanged and not be rewritten to\[hoge].Runtime
node@22.15.0
Package manager
10.9.2
Operating system
Ubuntu 24.04.2 LTS
Build and bundle tools
No response