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

Adds no-useless-path-segments documentation. - #1068

Merged
ljharb merged 2 commits into
import-js:masterfrom
manovotny:no-useless-path-segments-documentation
Apr 10, 2018
Merged

ljharb merged 2 commits into
import-js:masterfrom
manovotny:no-useless-path-segments-documentation

Conversation

@manovotny

Copy link
Copy Markdown
Contributor

Fixes #1032

@ljharb ljharb added the docs label Apr 9, 2018

@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.

Thanks!

@ljharb

ljharb commented Apr 9, 2018

Copy link
Copy Markdown
Member

cc @graingert

@ljharb
ljharb merged commit 4d0c799 into import-js:master Apr 10, 2018
@manovotny
manovotny deleted the no-useless-path-segments-documentation branch April 10, 2018 01:44
import "../pages/about.js"; // should be "./pages/about.js"
import "../pages/about"; // should be "./pages/about"
import "./pages//about"; // should be "./pages/about"
import "./pages/"; // should be "./pages"

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

might be worth adding a note about:

import "../" -> import "./"

* in my-project/app.js
*/

import "./../pages/about.js"; // should be "./pages/about.js"

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

shouldn't this be "./../my-project/pages/about.js" // should be "./pages/about.js"

@ljharb

ljharb commented Apr 10, 2018

Copy link
Copy Markdown
Member

Indeed; a follow up would be appreciated.

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

Labels

Development

Successfully merging this pull request may close these issues.

3 participants