-
Notifications
You must be signed in to change notification settings - Fork 21
Lint and format #135
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: main
Are you sure you want to change the base?
Lint and format #135
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Pull request overview
This pull request adds linting and formatting infrastructure to the frontend project, switches the package manager from npm to pnpm, and performs an initial formatting run across the codebase. The changes primarily consist of code style improvements and configuration updates to establish consistent formatting standards.
Key Changes
- Switched package manager from npm to pnpm
- Added and configured ESLint/Prettier for code formatting
- Performed initial formatting run on JavaScript, TypeScript, CSS, MDX, and JSON files
- Added custom Prettier plugin for MDX
<Steps>component handling
Reviewed changes
Copilot reviewed 192 out of 234 changed files in this pull request and generated no comments.
Show a summary per file
| File | Description |
|---|---|
src/frontend/tsconfig.json |
Removed trailing comma from paths configuration |
src/frontend/src/utils/imageImporter.js |
Formatted import statement and arrow function syntax |
src/frontend/src/utils/helpers.js |
Standardized quote usage from double to single quotes |
src/frontend/src/styles/site.css |
Normalized hex color codes to lowercase, standardized indentation and quote usage |
src/frontend/src/styles/cookieconsent-custom.css |
Normalized hex color codes to lowercase, standardized indentation |
src/frontend/src/prettier-plugins/prettier-plugin-starlight-steps.mjs |
Added new Prettier plugin for MDX Steps component |
src/frontend/src/pages/rss.xml.js |
Formatted multi-line expressions and standardized quotes |
src/frontend/src/pages/1ds.js |
Added trailing commas and standardized arrow function syntax |
src/frontend/src/expressive-code-plugins/disable-copy.mjs |
Fixed indentation in nested braces |
src/frontend/src/data/aspire-posts.json |
Collapsed single-item arrays to single lines |
src/frontend/src/content/docs/**/*.mdx |
Added blank lines within <Steps> components, reformatted long lines in <Aside> components, fixed table formatting, standardized component prop formatting |
Files not reviewed (1)
- pnpm-lock.yaml: Language not supported
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
… and astro for now.
- Removed "proseWrap" setting from Prettier configuration. - Added spacing in various documentation sections for improved readability. - Updated Azure integration documentation to include steps for connecting to storage resources. - Enhanced migration documentation with clearer steps for applying migrations. - Added settings for Prettier in VSCode to support Astro files.
0d0c381 to
b11c33c
Compare
…; adjust contributor guide for simplified usage
…ns for improved functionality
…ependency management
…d adjust VSCode extensions
Add lint/format bits, switch to
pnpm, and perform initial run. Fixes #118