style: format codebase with npm run format:all#2713
Merged
Conversation
There was a problem hiding this comment.
Pull request overview
This PR applies automated code formatting using npm run format:all (gts/prettier) to reduce lint errors from 150 to 101. The changes are purely cosmetic and do not alter any code logic or functionality.
Changes:
- Reformatted arrays, function parameters, and template literals for improved readability
- Added trailing commas where appropriate per style guide
- Normalized spacing in function expressions and removed extraneous blank lines
Reviewed changes
Copilot reviewed 8 out of 11 changed files in this pull request and generated no comments.
Show a summary per file
| File | Description |
|---|---|
| server_manager/www/ui_components/outline-contact-us-dialog.ts | Collapsed multi-line array entry to single line |
| commitlint.config.js | Expanded type-enum array to multi-line format with trailing comma |
| client/web/views/servers_view/server_list/stories.ts | Reformatted template literal for better line wrapping |
| client/web/views/servers_view/server_connection_indicator/stories.ts | Reformatted template literal with multi-line attribute expression |
| client/web/types/clipboard.d.ts | Split function parameters across multiple lines for readability |
| client/web/shared/error_reporter.ts | Reformatted function parameters and object literals to multi-line |
| client/web/karma.conf.js | Added space in function expression (function (config)) |
| client/web/app/settings.spec.ts | Reformatted long function calls and removed extraneous blank line |
| client/web/app/environment.ts | Reformatted Promise constructor to multi-line |
| client/web/app/app.spec.ts | Reformatted test expectations to multi-line format |
| client/electron/types/socks/index.d.ts | Split function parameters across multiple lines |
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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.
Auto-formats code with
npm run format:all.This reduces lint errors from 150 to 101.
The remaining errors require manual intervention and fall into several categories:
@typescript-eslint/no-unsafe-function-type: Use of the Function type is discouraged.@typescript-eslint/no-floating-promises: Promises must be awaited or handled.@typescript-eslint/no-empty-object-type: Use of {} as a type is discouraged.@typescript-eslint/no-unused-vars: Unused variables or imports.n/no-extraneous-import: Extraneous imports in error_reporter.ts.lit-analyzer: Three warnings related to CSS container queries in server_card/index.ts.