-
Notifications
You must be signed in to change notification settings - Fork 20
CLI and Sublime Text integration #49
Comments
Thanks for the report!
This is intended behavior. As The reason it throws for you is because running
It should work just fine in ST. That was my previous editor. Make sure to configure it to use the local versions of ESLint if it finds them. Here's some details. Let me know if something is unclear still 😊 |
The actual Sublime Text linter error is:
|
Oh, looks like SublimeLinter does not pass the filename to ESLint (of the file being linted). ESLint-plugin-Meteor relies on it to determine where a file is going to run. When they add that, then it should work. I'll file an issue there. |
Actually SublimeLinter passes the relative filename instead of the absolute one (which is expected by ESLint-plugin-Meteor). Maybe ESLint-plugin-Meteor can be extended to accept relative paths as well. |
Yes that fixed the issue :) |
I guess that would be good to document — both here and on Wekan contributor guide. |
As I understand it, setting this option breaks support of This way it just works out-of-the-box for everybody hopefully. By the way, you should enable greenkeeper for wekan. It's an amazing tool that sends you a PR every time a new version of one of the dependencies in |
SublimeLinter passes relative paths through context.getFilename(). Support that as well. closes #49
Yep, it works! I’m far more happy with this solution :-) |
About Greenkeeper, I didn’t now it until I saw it in your project. I guess the first step to make it valuable would be to add some tests to wekan :-) I also like to read the changelog (and not only the commit history before merging). And anyway almost all Wekan dependencies are actually meteor packages so Greenkeeper wouldn’t help — but a Greenkeeper for Meteor packages would be great! |
There's nothing stopping you from doing it. It just sends a PR, so you know there's been a new version. It doesn't auto-merge or anything :) |
Yes of course :-) (but sending the changelog directly in the PR would be a great improvement!) |
I recently merged your PR wekan/wekan#370. Even if I like Atom, my editor of choice is still Sublime Text and I was unable to get the new linting plugins work in there. It might be related to the fact that
eslint ./
doesn’t work either on the CLI:Maybe it’s a problem with Eslint or with one of the plugin used, but I wanted to ask you @dferber90 first before reporting an issue elsewhere. I’m on Ubuntu 15.04, I have installed the
devDependencies
locally and I have also the following versions installed globally:The text was updated successfully, but these errors were encountered: