[Fix] export: False positive for exported overloaded functions in TS by liuxingbaoyu · Pull Request #3065 · import-js/eslint-plugin-import (original) (raw)

@liuxingbaoyu

This currently fails when there is only one TSDeclareFunction, this PR fixes that.

@liuxingbaoyu @ljharb

@codecov

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 95.36%. Comparing base (d66933c) to head (7f7fbd3).
Report is 3 commits behind head on main.

Additional details and impacted files

@@ Coverage Diff @@ ## main #3065 +/- ##

Flag Coverage Δ
95.36% <100.00%> (+10.11%) ⬆️

Flags with carried forward coverage won't be shown. Click here to find out more.

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

ljharb

ljharb

@liuxingbaoyu

What do you think of the new changes? :)
This greatly simplifies the implementation.
It also additionally avoids reporting overloads Multiple default exports., which could confuse people.
Now overloads and other types of conflicts will not be reported, which I think is reasonable, because anyway overloads cannot appear alone, must be followed by an implementation to be legal TS code.

ljharb

@ljharb ljharb changed the title[fix] False positive for exported overloaded functions in TS [Fix] export: False positive for exported overloaded functions in TS

Sep 24, 2024

ljharb

renovate Bot added a commit to andrei-picus-tink/auto-renovate that referenced this pull request

Oct 4, 2024

@renovate

datasource package from to
npm eslint-plugin-import 2.30.0 2.31.0

v2.31.0

Added
Fixed
Changed

renovate Bot added a commit to andrei-picus-tink/auto-renovate that referenced this pull request

Oct 4, 2024

@renovate

datasource package from to
npm eslint-plugin-import 2.30.0 2.31.0

v2.31.0

Added
Fixed
Changed

@qdraw qdraw mentioned this pull request

Oct 25, 2024

This was referenced

Oct 28, 2024

renovate Bot added a commit to mmkal/eslint-plugin-mmkal that referenced this pull request

Oct 30, 2024

@renovate

This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.Learn more about bidirectional Unicode characters

[ Show hidden characters]({{ revealButtonHref }})