import-js / import-js/eslint-plugin-import

Import/export false positive between namespace and variable

Open
#2,901 5 comments 0 reactions 0 assignees View on GitHub
bug help wanted typescript
Dominant language
JavaScript
Stars
5.9k
Forks
1.5k
PR merge metrics
No merged PRs in 30d

Description

```ts
export namespace testType { ... }

export const testType = { ... }
```

Results in: `error Multiple exports of name 'testType' import/export`

Here is an example: https://github.com/unional/type-plus/blob/main/type-plus/ts/testing/test_type.ts

Contributor guide

Open the contributing guide

Research direction

Start by reproducing the `import/export` report with the TypeScript example in `type-plus/ts/testing/test_type.ts`. Then inspect the rule's handling of namespace and variable exports and find its related tests. Done means the valid namespace-and-variable case no longer produces the false-positive error while duplicate exports remain reported.

Written by the indexing model from the issue text.

Assessment

Tech stack
typescript
Domain
tooling
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.