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
I've forked the repo and fixed it for us, but I noticed that you have tests for that behaviour. E.g.:
{
code: 'import a from "Legacy"',
parser: 'babel-eslint',
options: [{ name: 'path/to/Legacy', use: 'New' }],
errors: [{
message: 'Module path/to/Legacy is deprecated. Use New instead.'
}]
},
you consider Legacy module to be deprecated, even though in the rule only specific module is stated, namely the one located in /path/to/.
From my perspective this is not right and causes issues like ours (partly paths overlapping) or conflicting module names.
If you agree I can provide a PR to fix the behaviour.
The text was updated successfully, but these errors were encountered:
Hi and thanks for the plugin.
We've faced a following issue:
Say we have a rule:
But due to indexing, we've got many imports like this:
which also triggers an error.
This happens because of the line 69 in
import.js
:which should be vice versa,
I've forked the repo and fixed it for us, but I noticed that you have tests for that behaviour. E.g.:
you consider
Legacy
module to be deprecated, even though in the rule only specific module is stated, namely the one located in/path/to/
.From my perspective this is not right and causes issues like ours (partly paths overlapping) or conflicting module names.
If you agree I can provide a PR to fix the behaviour.
The text was updated successfully, but these errors were encountered: