Skip to content
New issue

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

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

Already on GitHub? # to your account

chore: align coding style of word module #3319

Merged
merged 2 commits into from
Dec 9, 2024
Merged

chore: align coding style of word module #3319

merged 2 commits into from
Dec 9, 2024

Conversation

ST-DDT
Copy link
Member

@ST-DDT ST-DDT commented Dec 3, 2024

Preparation for #2439

Related:


Most of our code converts quick options to a full options object before using it instead ternary-ing it.

  • Code-Search if (typeof options === 'number') { => 23 results

This PR changes the word module to follow the same style.


This change is split from the no abbreviation lint PR, to reduce diff and I consider this slightly more valid than most of the other changes required for that.

@ST-DDT ST-DDT added c: chore PR that doesn't affect the runtime behavior p: 1-normal Nothing urgent m: word Something is referring to the word module labels Dec 3, 2024
@ST-DDT ST-DDT added this to the vAnytime milestone Dec 3, 2024
@ST-DDT ST-DDT requested review from a team December 3, 2024 10:46
@ST-DDT ST-DDT self-assigned this Dec 3, 2024
Copy link

netlify bot commented Dec 3, 2024

Deploy Preview for fakerjs ready!

Name Link
🔨 Latest commit 13eae16
🔍 Latest deploy log https://app.netlify.com/sites/fakerjs/deploys/6757706d4d9791000841e6a3
😎 Deploy Preview https://deploy-preview-3319.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 site configuration.

Copy link

codecov bot commented Dec 3, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 99.96%. Comparing base (99b9c3d) to head (13eae16).
Report is 1 commits behind head on next.

Additional details and impacted files
@@            Coverage Diff             @@
##             next    #3319      +/-   ##
==========================================
- Coverage   99.97%   99.96%   -0.01%     
==========================================
  Files        2806     2806              
  Lines      217060   217074      +14     
  Branches      972      969       -3     
==========================================
+ Hits       217004   217005       +1     
- Misses         56       69      +13     
Files with missing lines Coverage Δ
src/modules/word/index.ts 96.35% <100.00%> (+0.41%) ⬆️

... and 1 file with indirect coverage changes

@ST-DDT ST-DDT merged commit ea7900d into next Dec 9, 2024
23 checks passed
@ST-DDT ST-DDT deleted the coding-style/word branch December 9, 2024 22:37
# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
c: chore PR that doesn't affect the runtime behavior m: word Something is referring to the word module p: 1-normal Nothing urgent
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants