Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

no-self-import doesn't account for path "grandparents" #725

Open
JoshuaKGoldberg opened this issue Aug 31, 2023 · 0 comments
Open

no-self-import doesn't account for path "grandparents" #725

JoshuaKGoldberg opened this issue Aug 31, 2023 · 0 comments

Comments

@JoshuaKGoldberg
Copy link
Contributor

Two errors discovered in DefinitelyTyped/DefinitelyTyped#66522 are a result of upgrading from the TSLint no-self-import implementation to the ESLint @definitelytyped/no-self-import implementation from #652:

2> /home/runner/work/DefinitelyTyped/DefinitelyTyped/types/chrome/har-format/index.d.ts
2>   1:1  error  Declaration file should not use a global import of itself. Use a relative import  @definitelytyped/no-self-import

from:

import { Entry, Log } from 'har-format';

...and...

1> /home/runner/work/DefinitelyTyped/DefinitelyTyped/types/openfin/v50/_v2/api/events/emitterMap.d.ts
1>   2:1  error  Declaration file should not use a global import of itself. Use a relative import  @definitelytyped/no-self-import

from:

```ts
import { EventEmitter } from 'events';
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant