Skip to content

refactor: apply lint formatting to scripts and hooks folders#3669

Merged
eablack merged 2 commits intomainfrom
eb/lint-fixes-scripts-hooks
Apr 15, 2026
Merged

refactor: apply lint formatting to scripts and hooks folders#3669
eablack merged 2 commits intomainfrom
eb/lint-fixes-scripts-hooks

Conversation

@eablack
Copy link
Copy Markdown
Contributor

@eablack eablack commented Apr 15, 2026

Summary

This PR applies ESLint formatting fixes to the scripts/ and src/hooks/ folders, bringing them in line with the shared ESLint configuration. The changes are split into two commits for clarity: first, pure file renames to preserve git history, then the lint fixes themselves.

Key changes:

  • Rename files from underscore to kebab-case convention (install_scripts.jsinstall-scripts.js, _version.jsversion.js)
  • Reorder imports to follow style guide (node: prefixed imports first, then external, then internal)
  • Use node: prefix for Node.js built-in modules (node:path, node:child_process, etc.)
  • Change from import * as to default imports where appropriate
  • Add proper error handling with try-catch blocks in postrelease scripts
  • Remove unnecessary semicolons and apply consistent formatting

Type of Change

Patch Updates (patch semver update)

  • refactor: Refactoring existing code without changing behavior

Testing

Notes:
These are pure formatting and style changes with no functional modifications. The code behavior remains unchanged.

Steps:

  1. Passing CI suffices
  2. Verify builds complete successfully
  3. Confirm no runtime errors in affected scripts

@eablack eablack requested a review from a team as a code owner April 15, 2026 18:02
@eablack eablack temporarily deployed to AcceptanceTests April 15, 2026 18:02 — with GitHub Actions Inactive
@eablack eablack temporarily deployed to AcceptanceTests April 15, 2026 18:02 — with GitHub Actions Inactive
@eablack eablack temporarily deployed to AcceptanceTests April 15, 2026 18:02 — with GitHub Actions Inactive
@eablack eablack temporarily deployed to AcceptanceTests April 15, 2026 18:02 — with GitHub Actions Inactive
eablack added 2 commits April 15, 2026 16:10
Renames files from underscore to hyphen naming:
- scripts/postrelease/install_scripts.js → install-scripts.js
- scripts/utils/_version.js → version.js

This aligns with the project's file naming standards.
Applies ESLint formatting fixes to scripts and hooks folders:
- Reorder imports to follow style guide (node: prefixed imports first, then external, then internal)
- Use node: prefix for Node.js built-in modules (node:path, node:child_process, etc.)
- Change from `import * as` to default imports where appropriate
- Add proper error handling with try-catch blocks in postrelease scripts
- Remove unnecessary semicolons and apply consistent formatting

This brings the scripts and hooks folders in line with the shared ESLint configuration.
@eablack eablack force-pushed the eb/lint-fixes-scripts-hooks branch from c4d0af5 to dfdec67 Compare April 15, 2026 23:10
@eablack eablack temporarily deployed to AcceptanceTests April 15, 2026 23:11 — with GitHub Actions Inactive
@eablack eablack temporarily deployed to AcceptanceTests April 15, 2026 23:11 — with GitHub Actions Inactive
@eablack eablack temporarily deployed to AcceptanceTests April 15, 2026 23:11 — with GitHub Actions Inactive
@eablack eablack temporarily deployed to AcceptanceTests April 15, 2026 23:11 — with GitHub Actions Inactive
@eablack eablack merged commit 8a56a67 into main Apr 15, 2026
17 checks passed
@eablack eablack deleted the eb/lint-fixes-scripts-hooks branch April 15, 2026 23:19
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