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
default to .eslintignore, allow overrides #145
Conversation
Actually this doesn't fix the relative path issue completely. Closing to find better fix. |
Going to re-open because it fixes the issue for people who have ESLint 2.5.0 and under. Need a separate fix for the issue introduced by eslint/eslint#5694 |
@ratherblue : do you happen to know if there is a fix for this with ESLint 2.5.0 +? (I'm running ESLint 3.1.1) |
@peterkrieg No... unfortunately it's an issue (feature?) with ESLint. Basically if you have As far as I can tell, unless ESLint adds a command line option for |
@ratherblue Thanks a lot for explanation, that's what I was afraid of. I wish I knew where to even start to try to fix the ESLint problem and submit a PR.. I'd really love this fixed hahah! |
@peterkrieg I opened an issue with ESLint (eslint/eslint#6759). Hopefully they add a way for us to fix it. |
@peterkrieg it looks like the ESLint contributors are going to look into the |
@ratherblue thanks a lot for update! I've been following along and your issue sure has created a lot of discussion. Great news! |
This plugin has new maintainers. What's the status here? Is it correct that this has been fixed generally with Eslint 4.x? Would it help if we set the cwd/chdir to the project root path before starting eslint? 👋 |
This is not compatible with SL4 anymore. In SL4 we set the working dir to the project folder, so generally this should work better by default, right now. Otherwise, anybody can set this using the |
This fixes #144 and #127 .
It defaults to the first
.eslintignore
it finds, but also allows the path overridden to be set with--ignore-path
in theargs
array (See Inline Overrides documentationSee also SublimeLinter's
config_file
documentationTested it locally and seems to be working nicely.