Skip to content

Conversation

@2xburnt
Copy link
Contributor

@2xburnt 2xburnt commented Jul 10, 2025

NOTE: only files changed manually are:
package.json - add format script add husky and pretty-quick, set husky to run on commit
.prettierrc.json - fix trailingComma,
.prettierignore - created
src/modules/[chain]/block/[height].vue - changed

to

to fix prettier error
src/modules/[chain]/faucet/index.vue - changed

to

to fix prettier error


This pull request introduces several improvements and fixes across the codebase, focusing on formatting consistency, configuration updates, and JSON structure standardization. The changes include updates to Prettier configuration, JSON formatting for blockchain data, and various code style adjustments in Vue components. Additionally, new scripts and dependencies are added to the package.json file to enhance the development workflow.

Prettier and Configuration Updates:

  • Added .prettierignore to ignore specific files and directories such as dist/, .github/, and *.md files.
  • Fixed a typo and updated the trailingComma option in .prettierrc.json to "es5".
  • Added a format script to package.json for running Prettier, and integrated husky with a pre-commit hook using pretty-quick. [1] [2] [3]

JSON Structure Standardization:

  • Reformatted JSON files for blockchain configurations (cosmos.json, neutron.json, nolus.json, osmosis.json, and others) to use consistent indentation and array structures for better readability. [1] [2] [3] [4] [5]

Code Style Improvements:

  • Applied consistent semicolon usage and improved readability in Vue components such as CardParameter.vue, Countdown.vue, PaginationBar.vue, and ProposalListItem.vue. [1] [2] [3] [4]
  • Adjusted the formatting of HTML attributes and script tags in index.html and public/test.html for better alignment and readability. [1] [2] [3]

Minor Fixes:

  • Updated postcss.config.js to use consistent semicolon placement.
  • Fixed minor formatting issues in src/components/CardStatisticsVertical.vue.

These changes collectively improve the maintainability, readability, and consistency of the codebase while introducing tools to streamline the development process.

@liangping liangping merged commit 949595c into ping-pub:master Jul 11, 2025
1 check passed
@2xburnt 2xburnt deleted the feat/prettier branch July 31, 2025 14:50
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants