Skip to content

refactor: apply lint fixes to lib files#3668

Merged
eablack merged 3 commits intomainfrom
eb/lint-fixes-lib
Apr 15, 2026
Merged

refactor: apply lint fixes to lib files#3668
eablack merged 3 commits intomainfrom
eb/lint-fixes-lib

Conversation

@eablack
Copy link
Copy Markdown
Contributor

@eablack eablack commented Apr 14, 2026

Summary

Removes extra semicolons that were flagged as linting errors in the lib directory and applies additional lint-related formatting fixes to maintain code consistency across the codebase. This PR specifically addresses:

  • Extra semicolons in src/lib/addons/destroy-addon.ts and src/lib/container/docker-helper.ts
  • Refactored conditional error throwing to use ternary operators
  • Updated loop patterns from forEach to for...of for better performance
  • Normalized function declarations and improved code formatting
  • Added no-inner-declarations ESLint rule exception
  • Fixed various formatting inconsistencies across 87 files in the lib directory

Type of Change

Breaking Changes (major semver update)

  • Add a ! after your change type to denote a change that breaks current behavior

Feature Additions (minor semver update)

  • feat: Introduces a new feature to the codebase

Patch Updates (patch semver update)

  • fix: Bug fix
  • deps: Dependency upgrade
  • revert: Revert a previous commit
  • chore: Change that does not affect production code
  • refactor: Refactoring existing code without changing behavior
  • test: Add/update/remove tests

Testing

Notes:
All changes are formatting-related and do not modify runtime behavior. The linter now passes without semicolon errors.

Steps:

  1. Run npm run lint to verify all semicolon errors are resolved
  2. Passing CI suffices for validation

Related Issues

Part of a series of PRs to reduce what is implemented in #3661

@eablack eablack requested a review from a team as a code owner April 14, 2026 22:23
@eablack eablack temporarily deployed to AcceptanceTests April 14, 2026 22:23 — with GitHub Actions Inactive
@eablack eablack temporarily deployed to AcceptanceTests April 14, 2026 22:23 — with GitHub Actions Inactive
@eablack eablack temporarily deployed to AcceptanceTests April 14, 2026 22:23 — with GitHub Actions Inactive
@eablack eablack temporarily deployed to AcceptanceTests April 14, 2026 22:23 — with GitHub Actions Inactive
@eablack eablack changed the title fix: remove extra semicolons and apply lint fixes to lib files refactor: apply lint fixes to lib files Apr 14, 2026
@eablack eablack temporarily deployed to AcceptanceTests April 14, 2026 22:41 — with GitHub Actions Inactive
@eablack eablack temporarily deployed to AcceptanceTests April 14, 2026 22:41 — with GitHub Actions Inactive
@eablack eablack temporarily deployed to AcceptanceTests April 14, 2026 22:41 — with GitHub Actions Inactive
@eablack eablack temporarily deployed to AcceptanceTests April 14, 2026 22:41 — with GitHub Actions Inactive
Copy link
Copy Markdown
Contributor

@michaelmalave michaelmalave left a comment

Choose a reason for hiding this comment

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

One comment on a global rule. Other than that the changes look good.

Comment thread .eslintrc.cjs
eablack added 2 commits April 15, 2026 15:40
…iles

Removes extra semicolons that were flagged as errors by the linter and applies other lint-related formatting fixes to maintain consistency across the codebase.
@eablack eablack force-pushed the eb/lint-fixes-lib branch from 676f6df to 73770e8 Compare April 15, 2026 22:40
@eablack eablack temporarily deployed to AcceptanceTests April 15, 2026 22:40 — with GitHub Actions Inactive
@eablack eablack temporarily deployed to AcceptanceTests April 15, 2026 22:40 — with GitHub Actions Inactive
@eablack eablack temporarily deployed to AcceptanceTests April 15, 2026 22:40 — with GitHub Actions Inactive
@eablack eablack temporarily deployed to AcceptanceTests April 15, 2026 22:40 — with GitHub Actions Inactive
The _useSSH getter should return undefined when uri is not set,
not null. This aligns with TypeScript conventions where optional
properties default to undefined, and fixes a failing test.
@eablack eablack temporarily deployed to AcceptanceTests April 15, 2026 22:50 — with GitHub Actions Inactive
@eablack eablack temporarily deployed to AcceptanceTests April 15, 2026 22:50 — with GitHub Actions Inactive
@eablack eablack temporarily deployed to AcceptanceTests April 15, 2026 22:50 — with GitHub Actions Inactive
@eablack eablack temporarily deployed to AcceptanceTests April 15, 2026 22:50 — with GitHub Actions Inactive
@eablack eablack merged commit eb9b040 into main Apr 15, 2026
17 checks passed
@eablack eablack deleted the eb/lint-fixes-lib branch April 15, 2026 22:58
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.

2 participants