Skip to content
This repository has been archived by the owner on Jul 15, 2023. It is now read-only.

misnamed-import warning for import A from '../..' #594

Closed
JoshuaKGoldberg opened this issue Oct 27, 2018 · 1 comment
Closed

misnamed-import warning for import A from '../..' #594

JoshuaKGoldberg opened this issue Oct 27, 2018 · 1 comment
Labels
Difficulty: Easy Someone with little to no experience in TSLint should be able to send a pull request for this issue. Good First Issue 🙌 Howdy, neighbor! Status: Accepting PRs Type: Bug
Milestone

Comments

@JoshuaKGoldberg
Copy link

JoshuaKGoldberg commented Oct 27, 2018

Similar to #378 - the fix in #591 works for '.' and similar, but not large paths such as ../../...

Perhaps we should just check if the path consists only of . and /?

As noted by @sindresorhus - thanks!

@JoshuaKGoldberg JoshuaKGoldberg added Type: Bug Status: Accepting PRs Good First Issue 🙌 Howdy, neighbor! Difficulty: Easy Someone with little to no experience in TSLint should be able to send a pull request for this issue. Hacktoberfest labels Oct 27, 2018
@Igorbek
Copy link
Contributor

Igorbek commented Oct 27, 2018

It should be working with this path too.

Igorbek added a commit to Igorbek/tslint-microsoft-contrib that referenced this issue Oct 27, 2018
JoshuaKGoldberg pushed a commit that referenced this issue Oct 27, 2018
* [import-name] Fix #378
- ignore dotted paths `.`, `..`

* Add more test cases for #378 (fixes #594)

* more tests
@JoshuaKGoldberg JoshuaKGoldberg added this to the 6.0.0-beta0 milestone Nov 6, 2018
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Difficulty: Easy Someone with little to no experience in TSLint should be able to send a pull request for this issue. Good First Issue 🙌 Howdy, neighbor! Status: Accepting PRs Type: Bug
Projects
None yet
Development

No branches or pull requests

2 participants