run prettier, set prettier to run on commit with husky #640
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
NOTE: only files changed manually are:
package.json - add
formatscript 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
src/modules/[chain]/faucet/index.vue - changed
to
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.jsonfile to enhance the development workflow.Prettier and Configuration Updates:
.prettierignoreto ignore specific files and directories such asdist/,.github/, and*.mdfiles.trailingCommaoption in.prettierrc.jsonto"es5".formatscript topackage.jsonfor running Prettier, and integratedhuskywith a pre-commit hook usingpretty-quick. [1] [2] [3]JSON Structure Standardization:
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:
CardParameter.vue,Countdown.vue,PaginationBar.vue, andProposalListItem.vue. [1] [2] [3] [4]index.htmlandpublic/test.htmlfor better alignment and readability. [1] [2] [3]Minor Fixes:
postcss.config.jsto use consistent semicolon placement.src/components/CardStatisticsVertical.vue.These changes collectively improve the maintainability, readability, and consistency of the codebase while introducing tools to streamline the development process.