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
Needs to handle meteor/ packages as well #1
Comments
Used airbnb and meteor recommended eslint Removed '/imports/' ignore The custom resolver allows the use of '/' for the linter now. So it works with more than just '/imports' Still kept 'meteor/` ignore until clayne11/eslint-import-resolver-meteor#1 gets resolved.
Used airbnb and meteor recommended eslint Removed '/imports/' ignore The custom resolver allows the use of '/' for the linter now. So it works with more than just '/imports' Still kept 'meteor/` ignore until clayne11/eslint-import-resolver-meteor#1 gets resolved.
It's not so simple as just resolving that a certain package exists. The job of the resolver is to find the file that Additionally, there's no central location to look for the Unfortunately, neither of these locations exist before a project is built for the first time, meaning we would have issues trying to run the resolver in a CI build process, and it wouldn't be reliable anyways since many Meteor packages, both internal and from Atmosphere, don't take advantage of ES6 modules. I don't see a good way of solving this issue, but if you have any suggestions I'm happy to hear them and try to come up with a solution for this. |
I am not sure about the exports at least I didn't see it in the resolver spec. It states only needs to return |
Used airbnb and meteor recommended eslint Removed '/imports/' ignore The custom resolver allows the use of '/' for the linter now. So it works with more than just '/imports' Still kept 'meteor/` ignore until clayne11/eslint-import-resolver-meteor#1 gets resolved.
I think you're right. We can resolve that a file was found, but we will have to add |
Pass on the PR for now. RL taking effect :) |
thanks for this, I needed it --- I too would like the meteor paths, but will happily settle for ignoring them for now... might be worth a paragraph on the README w/ a "how to ignore meteor imports" |
Good idea - I'll do one better. I'll set it to automatically ignore them so no config is required. |
I took the second option of looking in Essentially using Which do you guys think is a better option, false negatives or false positives? This is published under |
I prefer the the logic I wrote in my OP where it will only do |
Oh I see - I mis-read your original post. I thought you were suggesting using That makes sense though. I will change the logic to do that. |
OK, I have made the change in |
Confirmed fix on https://github.com/trajano/meteor-boilerplate/tree/meteor-skeleton-1.0.3 it even found one I missed myself :) |
clayne11/eslint-import-resolver-meteor#1 fixes the `meteor/` issue.
This solves the
/imports/
folder nicely, butmeteor/
packages need to be handled as well. From what I can tell there are two options..meteor/packages
.meteor/versions
I would opt for the following logic. If import has
:
check.meteor/packages
(since it is something a user would've added, else check.meteor/versions
so we do not have tometeor add
the many implicit packages such asmeteor
,mongo
, etc.The text was updated successfully, but these errors were encountered: