-
-
Notifications
You must be signed in to change notification settings - Fork 1.6k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Change packageDir for import/no-unresolved rule #1246
Comments
I believe you can/should configure ALE to always run from the project root - ie, where |
You've already had this same exact conversation in #1061 but somehow reached a different conclusion on this one? In the other issue you guys discuss how this is not only a problem with ALE but also with just plain terminal usage and other linters (SublimeLinter was brought up). If I contributed a PR analogous to the one where it was fixed for import/no-extraneous-dependencies, would you accept it? |
I'm a bit confused; all commands should only be run from the project root. Did i come to a different conclusion somewhere? |
I meant that the |
I believe packageDir was added for monorepos; not for "being able to run a command anywhere". |
Would |
It seems reasonable - although if it's going to be in more than one rule, is there a reason it shouldn't be in the plugin settings, so that all relevant rules can read from the same setting? |
I'm already using And now I'm in a situation where I would need that option for I believe a setting would be great. |
It looks like I'm facing the same problems as described here #1061 but for the
import/no-unresolved
rule.I'm using ALE (vim linter) and I'm getting false positives because eslint can't figure out where it should be running from. If I could set
packageDir
to__dirname
(as it seems to be possible for `import/no-extraneous-dependencies), I think my problems would go away.The text was updated successfully, but these errors were encountered: