Sitelet https://github.com/import-js/eslint-plugin-import/pull/1658
Skip to content

[fix] order: recognize ".." as a "parent" path - #1658

Merged
ljharb merged 1 commit into
import-js:masterfrom
chiawendt:order-dot-dot
Feb 17, 2020
Merged

ljharb merged 1 commit into
import-js:masterfrom
chiawendt:order-dot-dot

Conversation

@chiawendt

Copy link
Copy Markdown
Contributor

fixes #1405

@coveralls

coveralls commented Feb 17, 2020 •

Copy link
Copy Markdown

Coverage Status

Coverage remained the same at 97.839% when pulling 12971f5 on golopot:order-dot-dot into 47f912e on benmosher:master.

@coveralls

Copy link
Copy Markdown

Coverage Status

Coverage remained the same at 97.838% when pulling 6aa3c2c on golopot:order-dot-dot into 2beec94 on benmosher:master.

3 similar comments
@coveralls

Copy link
Copy Markdown

Coverage Status

Coverage remained the same at 97.838% when pulling 6aa3c2c on golopot:order-dot-dot into 2beec94 on benmosher:master.

@coveralls

Copy link
Copy Markdown

Coverage Status

Coverage remained the same at 97.838% when pulling 6aa3c2c on golopot:order-dot-dot into 2beec94 on benmosher:master.

@coveralls

Copy link
Copy Markdown

Coverage Status

Coverage remained the same at 97.838% when pulling 6aa3c2c on golopot:order-dot-dot into 2beec94 on benmosher:master.

@ljharb ljharb left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Per #1405 (comment), should this go through the resolver to consider "parent"-ness?

Comment thread tests/src/rules/order.js Outdated
@chiawendt

Copy link
Copy Markdown
Contributor Author

Per #1405 (comment), should this go through the resolver to consider "parent"-ness?

I believe it is better to order the import statements by the apparent path rather the resolved path. What I wanted for this rule is a consistent ordering that looks nice. Ordering by resolved path does not provide a consistent ordering that looks nice.

@ljharb

ljharb commented Feb 17, 2020

Copy link
Copy Markdown
Member

True, that makes sense.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Development

Successfully merging this pull request may close these issues.

order: '..' is not recognized

3 participants