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

[no-relative-parent-imports] Resolve paths #1135

Merged
merged 1 commit into from
Jul 16, 2018
Merged

[no-relative-parent-imports] Resolve paths #1135

merged 1 commit into from
Jul 16, 2018

Conversation

chrislloyd
Copy link
Contributor

This changes the rule to resolve paths before emitting an error. While this means the error will trigger less often (before we could report an error even if the file didn't exist on disk yet) I think it's a fine tradeoff so that it can be useful in more situations.

Fixes #1123.

This changes the rule to resolve paths before emitting an error. While this means the error will trigger less often (before we could report an error even if the file didn't exist on disk yet) I think it's a fine tradeoff so that it can be useful in more situations.
@coveralls
Copy link

coveralls commented Jul 11, 2018

Coverage Status

Coverage increased (+0.01%) to 97.284% when pulling 81bf977 on chrislloyd:issue-1123 into 37554fe on benmosher:master.

1 similar comment
@coveralls
Copy link

Coverage Status

Coverage increased (+0.01%) to 97.284% when pulling 81bf977 on chrislloyd:issue-1123 into 37554fe on benmosher:master.

@chrislloyd
Copy link
Contributor Author

I only have intermittent time to check this out - just letting any 👀 know that I haven't forgotten about this fix - just busy.

Copy link
Member

@ljharb ljharb left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thank you!

@ljharb ljharb merged commit a162af4 into import-js:master Jul 16, 2018
@chrislloyd chrislloyd deleted the issue-1123 branch August 22, 2018 03:53
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

Successfully merging this pull request may close these issues.

no-relative-parent-imports didn't check if path start with './'
3 participants