You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
test(extensions): add failing tests to expose broken autofix behavior
Follow-up to #391
These tests demonstrate that the `import-x/extensions` rule only applies autofixes when
both `fix: true` and a `pattern` object are set—even if the pattern is empty. This behavior
is unintuitive, undocumented, and inconsistent with how autofix typically works in ESLint.
The tests assert on the `output` field to document the current (broken) behavior and provide
a basis for resolving the issue.
In addition to fixing the logic, I recommend removing the `fix` option entirely, as it is
undocumented and not used in any other rule in the plugin.
0 commit comments