Skip to content

SHARD-2019 - Prettier lib-crypto-web#9

Merged
mhanson-github merged 3 commits intomainnet-launchfrom
SHARD-2019-prettier
Mar 19, 2025
Merged

SHARD-2019 - Prettier lib-crypto-web#9
mhanson-github merged 3 commits intomainnet-launchfrom
SHARD-2019-prettier

Conversation

@mhanson-github
Copy link

@mhanson-github mhanson-github commented Mar 18, 2025

PR Type

enhancement, tests


Description

  • Applied Prettier formatting to index.js for consistent code style.

  • Added a Prettier configuration file for code formatting.

  • Updated unit tests to align with new code style.

  • Minor adjustments to jest.config.js and test.js for style consistency.


Changes walkthrough 📝

Relevant files
Enhancement
index.js
Apply Prettier formatting to `index.js`                                   

index.js

  • Applied Prettier formatting for consistent code style.
  • Removed unnecessary line breaks in error messages.
  • Adjusted function declarations for style consistency.
  • +23/-44 
    Formatting
    jest.config.js
    Add newline at end of `jest.config.js`                                     

    jest.config.js

    • Added newline at end of file for consistency.
    +1/-1     
    test.js
    Apply Prettier formatting to `test.js`                                     

    test.js

  • Applied Prettier formatting for consistent code style.
  • Adjusted async function call style.
  • +2/-2     
    Configuration changes
    prettier.config.js
    Add Prettier configuration file                                                   

    prettier.config.js

  • Added Prettier configuration file.
  • Set single quotes and trailing commas.
  • Configured print width and semicolon usage.
  • +6/-0     
    Tests
    crypto.test.js
    Update unit tests with Prettier formatting                             

    test/unit/crypto.test.js

  • Applied Prettier formatting to unit tests.
  • Updated test strings to use single quotes.
  • Removed semicolons for style consistency.
  • +179/-187

    Need help?
  • Type /help how to ... in the comments thread for any questions about PR-Agent usage.
  • Check out the documentation for more information.
  • @github-actions
    Copy link

    PR Reviewer Guide 🔍

    Here are some key observations to aid the review process:

    ⏱️ Estimated effort to review: 2 🔵🔵⚪⚪⚪
    🏅 Score: 95
    🧪 PR contains tests
    🔒 No security concerns identified
    ⚡ No major issues detected

    @mhanson-github mhanson-github merged commit c2320c8 into mainnet-launch Mar 19, 2025
    5 checks passed
    @mhanson-github mhanson-github deleted the SHARD-2019-prettier branch March 19, 2025 21:49
    Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

    Projects

    None yet

    Development

    Successfully merging this pull request may close these issues.

    2 participants