Skip to content

style: configure prettier and format codebase#15

Merged
wutongci merged 1 commit into
astercloud:mainfrom
lwmacct:tmp/251204-2229
Dec 4, 2025
Merged

style: configure prettier and format codebase#15
wutongci merged 1 commit into
astercloud:mainfrom
lwmacct:tmp/251204-2229

Conversation

@lwmacct

@lwmacct lwmacct commented Dec 4, 2025

Copy link
Copy Markdown
Contributor

Summary

  • Add .prettierrc configuration with 2-space indentation for consistent code formatting
  • Format all TypeScript/JavaScript files in client-sdks/ and ui/ directories
  • Update pre-commit configuration to support multi-document YAML files
  • Remove deprecated .githooks/pre-commit in favor of pre-commit framework

Changes

  • New file: .prettierrc - Prettier configuration
  • Updated: 260+ TypeScript, JavaScript, Vue, and config files reformatted
  • Updated: .pre-commit-config.yaml - Added --allow-multiple-documents for k8s YAML files
  • Removed: .githooks/pre-commit - Replaced by pre-commit framework

Test plan

  • Pre-commit hooks pass
  • Verify formatted files render correctly
  • Run existing tests to ensure no functional changes

- Add .prettierrc configuration with 2-space indentation
- Format TypeScript/JavaScript files in client-sdks and ui directories
- Format Vue components and configuration files
- Update pre-commit configuration for prettier
- Fix check-yaml to allow multi-document YAML files
- Remove deprecated .githooks/pre-commit in favor of pre-commit framework
@codecov-commenter

Copy link
Copy Markdown

⚠️ Please install the 'codecov app svg image' to ensure uploads and comments are reliably processed by Codecov.

Codecov Report

✅ All modified and coverable lines are covered by tests.

📢 Thoughts on this report? Let us know!

@wutongci
wutongci merged commit acc11a9 into astercloud:main Dec 4, 2025
4 checks passed
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.

3 participants