Skip to content

style: format codebase with npm run format:all#2713

Merged
fortuna merged 2 commits intomasterfrom
chore/format-codebase
Feb 24, 2026
Merged

style: format codebase with npm run format:all#2713
fortuna merged 2 commits intomasterfrom
chore/format-codebase

Conversation

@fortuna
Copy link
Collaborator

@fortuna fortuna commented Feb 23, 2026

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:

  1. @typescript-eslint/no-unsafe-function-type: Use of the Function type is discouraged.
  2. @typescript-eslint/no-floating-promises: Promises must be awaited or handled.
  3. @typescript-eslint/no-empty-object-type: Use of {} as a type is discouraged.
  4. @typescript-eslint/no-unused-vars: Unused variables or imports.
  5. n/no-extraneous-import: Extraneous imports in error_reporter.ts.
  6. lit-analyzer: Three warnings related to CSS container queries in server_card/index.ts.

Copy link

Copilot AI left a 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 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.

Copy link
Contributor

@ohnorobo ohnorobo left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

thanks!

@fortuna fortuna merged commit 452d095 into master Feb 24, 2026
23 checks passed
@fortuna fortuna deleted the chore/format-codebase branch February 24, 2026 11:14
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants