Skip to content

refactor: apply lint formatting to remaining commands#3667

Merged
eablack merged 5 commits intomainfrom
eb/lint-fixes-batch-4
Apr 15, 2026
Merged

refactor: apply lint formatting to remaining commands#3667
eablack merged 5 commits intomainfrom
eb/lint-fixes-batch-4

Conversation

@eablack
Copy link
Copy Markdown
Contributor

@eablack eablack commented Apr 14, 2026

Summary

This PR applies automated lint formatting to the remaining command files in preparation for migration to ESLint 9. Changes include import ordering, class property ordering, object property ordering, and whitespace cleanup.

Affected command groups: pipelines, ps, rake, redis, regions, releases, repl, reviewapps, run, sessions, spaces, status, teams, telemetry, usage, version, webhooks.

This is the final batch of linting changes, completing the formatting updates across all command files.

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:
These are purely formatting changes with no behavioral modifications. Final batch in a series of PRs to break up linting changes in preparation for ESLint 9 migration.

Steps:

  1. Passing CI suffices.

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:06
@eablack eablack temporarily deployed to AcceptanceTests April 14, 2026 22:06 — with GitHub Actions Inactive
@eablack eablack temporarily deployed to AcceptanceTests April 14, 2026 22:06 — with GitHub Actions Inactive
@eablack eablack temporarily deployed to AcceptanceTests April 14, 2026 22:06 — with GitHub Actions Inactive
@eablack eablack temporarily deployed to AcceptanceTests April 14, 2026 22:06 — with GitHub Actions Inactive
@eablack eablack temporarily deployed to AcceptanceTests April 14, 2026 22:36 — with GitHub Actions Inactive
@eablack eablack temporarily deployed to AcceptanceTests April 14, 2026 22:36 — with GitHub Actions Inactive
@eablack eablack temporarily deployed to AcceptanceTests April 14, 2026 22:36 — with GitHub Actions Inactive
@eablack eablack temporarily deployed to AcceptanceTests April 14, 2026 22:36 — with GitHub Actions Inactive
@eablack eablack temporarily deployed to AcceptanceTests April 15, 2026 00:13 — with GitHub Actions Inactive
@eablack eablack temporarily deployed to AcceptanceTests April 15, 2026 00:13 — with GitHub Actions Inactive
@eablack eablack temporarily deployed to AcceptanceTests April 15, 2026 00:13 — with GitHub Actions Inactive
@eablack eablack temporarily deployed to AcceptanceTests April 15, 2026 00:13 — with GitHub Actions Inactive
@eablack eablack temporarily deployed to AcceptanceTests April 15, 2026 00:14 — with GitHub Actions Inactive
@eablack eablack temporarily deployed to AcceptanceTests April 15, 2026 00:14 — with GitHub Actions Inactive
@eablack eablack temporarily deployed to AcceptanceTests April 15, 2026 00:14 — with GitHub Actions Inactive
@eablack eablack temporarily deployed to AcceptanceTests April 15, 2026 00:14 — with GitHub Actions Inactive
@eablack eablack temporarily deployed to AcceptanceTests April 15, 2026 16:20 — with GitHub Actions Inactive
@eablack eablack temporarily deployed to AcceptanceTests April 15, 2026 16:20 — with GitHub Actions Inactive
@eablack eablack temporarily deployed to AcceptanceTests April 15, 2026 16:20 — with GitHub Actions Inactive
@eablack eablack temporarily deployed to AcceptanceTests April 15, 2026 16:20 — 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.

LGTM!

eablack added 5 commits April 15, 2026 14:00
Applies automated lint formatting to remaining command files in preparation
for migration to eslint 9. Changes include import ordering, class property
ordering, object property ordering, and whitespace cleanup.

Affected command groups: pipelines, ps, rake, redis, regions, releases, repl,
reviewapps, run, sessions, spaces, status, teams, telemetry, usage, version,
webhooks.
Add error handling tests for missing required parameters:
- spaces:hosts without space name
- spaces:peerings:destroy without pcxid
- spaces:peerings without space name

These tests cover previously untested error handling paths.
Adds 7 new test cases for the parse() function to increase code coverage from 35.48% to 100% for src/lib/config/quote.ts. New tests cover:
- Double-quoted strings with newlines and escaped characters
- Single-quoted strings with backslashes
- Empty strings and simple unquoted strings
- Error cases for multiple tokens and operator tokens
Ensures coverage reports include all source files, not just those that are tested. This provides a more accurate picture of overall code coverage.
Adds comprehensive unit tests for the Dyno class:
- Constructor default values and option handling
- _useSSH protocol detection (http/https vs other protocols)
- _env environment variable building and TERM handling
- _isDebug HEROKU_DEBUG environment variable checking
- _status dyno status formatting with name and size
- _readData exit code parsing and output handling

Also updates colorize.unit.test.ts:
- Uncomments existing tests that were previously disabled
- Updates color code constants to match current 256-color ANSI codes
- All 7 colorize test cases now pass

These changes improve coverage for src/lib/run which previously had 38.68% coverage and dyno.ts which had no dedicated test file.
@eablack eablack force-pushed the eb/lint-fixes-batch-4 branch from 080d743 to 833d717 Compare April 15, 2026 21:00
@eablack eablack temporarily deployed to AcceptanceTests April 15, 2026 21:00 — with GitHub Actions Inactive
@eablack eablack temporarily deployed to AcceptanceTests April 15, 2026 21:00 — with GitHub Actions Inactive
@eablack eablack temporarily deployed to AcceptanceTests April 15, 2026 21:00 — with GitHub Actions Inactive
@eablack eablack temporarily deployed to AcceptanceTests April 15, 2026 21:00 — with GitHub Actions Inactive
@eablack eablack merged commit b3f11bd into main Apr 15, 2026
17 checks passed
@eablack eablack deleted the eb/lint-fixes-batch-4 branch April 15, 2026 21:12
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