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

typesVersions parent isn't external dependency #314

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

jablko
Copy link
Contributor

@jablko jablko commented Nov 5, 2020

If e.g. in types/boring/ts1.0 you reference ../boring-tests.ts, then without this change when linting types/boring/ts1.0 dtslint ignores $ExpectError and $ExpectType assertions in types/boring/boring-tests.ts and instead the expected errors cause it to fail.

Currently isExternalDependency() checks whether files (types/boring/boring-tests.ts) are inside the dirPath (types/boring/ts1.0). This change updates it to check whether they're inside dirname(dirPath) (types/boring) if dirPath is a typesVersions directory (e.g. ts1.0).

@jablko jablko requested a review from sandersn as a code owner November 5, 2020 22:48
@jablko jablko changed the title typesVersions parent isn't external typesVersions parent isn't external dependency Nov 5, 2020
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant