Skip to content

chore: import types from the source file directly#3805

Merged
xDivisionByZerox merged 1 commit intonextfrom
chore/direct/imports
Apr 18, 2026
Merged

chore: import types from the source file directly#3805
xDivisionByZerox merged 1 commit intonextfrom
chore/direct/imports

Conversation

@ST-DDT
Copy link
Copy Markdown
Member

@ST-DDT ST-DDT commented Apr 12, 2026

Import directly from the source file to avoid automatically adding new imports to it, causing side effects.

@ST-DDT ST-DDT added this to the vAnytime milestone Apr 12, 2026
@ST-DDT ST-DDT requested review from a team April 12, 2026 20:45
@ST-DDT ST-DDT self-assigned this Apr 12, 2026
@ST-DDT ST-DDT added c: chore PR that doesn't affect the runtime behavior p: 1-normal Nothing urgent labels Apr 12, 2026
@netlify
Copy link
Copy Markdown

netlify Bot commented Apr 12, 2026

Deploy Preview for fakerjs ready!

Name Link
🔨 Latest commit 11bfa8a
🔍 Latest deploy log https://app.netlify.com/projects/fakerjs/deploys/69dc045f7439750008700025
😎 Deploy Preview https://deploy-preview-3805.fakerjs.dev
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify project configuration.

@codecov
Copy link
Copy Markdown

codecov Bot commented Apr 12, 2026

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 98.89%. Comparing base (bf58838) to head (11bfa8a).
⚠️ Report is 11 commits behind head on next.

Additional details and impacted files
@@           Coverage Diff           @@
##             next    #3805   +/-   ##
=======================================
  Coverage   98.89%   98.89%           
=======================================
  Files         894      894           
  Lines        3086     3086           
  Branches      564      564           
=======================================
  Hits         3052     3052           
  Misses         30       30           
  Partials        4        4           
Files with missing lines Coverage Δ
src/modules/date/index.ts 100.00% <ø> (ø)
src/modules/location/index.ts 100.00% <ø> (ø)
src/modules/person/index.ts 94.02% <ø> (ø)
🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.
  • 📦 JS Bundle Analysis: Save yourself from yourself by tracking and limiting bundle sizes in JS merges.

@ST-DDT ST-DDT requested review from a team April 15, 2026 22:21
Copy link
Copy Markdown
Member

@xDivisionByZerox xDivisionByZerox left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Is there a linter rule to restrict the importing from the index.ts file for all other files by any change? I can see this slipping in again in later refactors due to IDEs usually preferring to pick the shortest import path that is available.

@xDivisionByZerox xDivisionByZerox modified the milestones: vAnytime, v10.x Apr 18, 2026
@xDivisionByZerox xDivisionByZerox added this pull request to the merge queue Apr 18, 2026
Merged via the queue into next with commit e1f6ce2 Apr 18, 2026
25 checks passed
@xDivisionByZerox xDivisionByZerox deleted the chore/direct/imports branch April 18, 2026 14:36
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

c: chore PR that doesn't affect the runtime behavior p: 1-normal Nothing urgent

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants