Skip to content
This repository has been archived by the owner on Mar 25, 2021. It is now read-only.

False negative of no-unnecessary-qualifier #4195

Closed
KSXGitHub opened this issue Sep 29, 2018 · 1 comment
Closed

False negative of no-unnecessary-qualifier #4195

KSXGitHub opened this issue Sep 29, 2018 · 1 comment

Comments

@KSXGitHub
Copy link

KSXGitHub commented Sep 29, 2018

Bug Report

  • TSLint version:
  • TypeScript version: 3.1.0
  • Running TSLint via: CLI

TypeScript code being linted

export namespace outer {
  export type Foo<X> = X[]

  export namespace inner {
  	export type Foo = outer.Foo<number>
  }
}

with tslint.json configuration:

{
	"no-unnecessary-qualifier": true
}

Actual behavior

TSLint should yield no error

Expected behavior

It yields error

@JoshuaKGoldberg
Copy link
Contributor

Seems like a duplicate of #2413. Same for here: it's spooky that there's an outer.Foo and an inner.Foo. Although the rule should be fixed to handle these cases, we should try to avoid them as much as possible.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

2 participants