Skip to content
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

eslint_d is getting confused about which .eslintrc to use? #2

Open
elijahsmith opened this issue Oct 1, 2015 · 2 comments
Open

eslint_d is getting confused about which .eslintrc to use? #2

elijahsmith opened this issue Oct 1, 2015 · 2 comments

Comments

@elijahsmith
Copy link

I have one sublime project which has a custom eslint rule (no-connect). I pass the rules directory to this linter via project file settings.

I have another project that just uses the built-in rules.

I just installed eslint_d and I'm getting this:

SublimeLinter: eslint_d: Chart.js ['/usr/local/bin/eslint_d', '--no-ignore', '--format', 'compact', '@', '--config', '/Users/esmith/regular_project/.eslintrc'] 
SublimeLinter: eslint_d output:
/private/var/folders/vb/9rl8lsgx2fz8k3hc3dr_jw_h0000gn/T/SublimeLinter3-esmith/Chart.js: line 1, col 1, Error - Definition for rule 'no-connect' was not found (no-connect)

... that is, the no-connect rule is somehow being referenced by the linter, even though that rule and any reference to it does not exist in this tree (in fact, the string 'no-connect' is nowhere in this project).

I do not have this issue with eslint, which I've used happily up until now.

Please let me know if there is any other information I can collect to diagnose this issue.

@roadhump
Copy link
Owner

roadhump commented Oct 4, 2015

Do you mean there is no no-connect rule in /Users/esmith/regular_project/.eslintrc ? Try to run eslint_d in console, like eslint_d Chart.js --config /Users/esmith/regular_project/.eslintrc, what is output?

@simonzack
Copy link

I'm having a similar problem, I think it's eslint_d's problem as it's reading the wrong config files even when running from the console. I've filed an issue there.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants