SublimeLinter-contrib-eslint_d
SublimeLinter-contrib-eslint_d copied to clipboard
eslint_d is getting confused about which .eslintrc to use?
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.
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?
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.