Skip to content

Conversation

@btravers
Copy link
Owner

No description provided.

Copilot AI review requested due to automatic review settings January 22, 2026 15:56
@btravers btravers enabled auto-merge (squash) January 22, 2026 15:57
@btravers btravers merged commit 663e3ca into main Jan 22, 2026
18 checks passed
@btravers btravers deleted the chore-fmt-import-sort branch January 22, 2026 15:59
Copy link
Contributor

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

Enables formatter-driven import sorting and updates tooling/docs to reflect that behavior.

Changes:

  • Configure oxfmt to organize/sort imports (and separate import groups).
  • Stop explicitly disabling sort-imports in oxlint config.
  • Update CLAUDE.md to note that pnpm format performs import sorting.

Reviewed changes

Copilot reviewed 3 out of 3 changed files in this pull request and generated 1 comment.

File Description
CLAUDE.md Documents that formatting now includes import sorting.
.oxlintrc.json Removes explicit override disabling sort-imports.
.oxfmtrc.json Enables oxfmt import organization/sorting configuration.

"$schema": "./node_modules/oxlint/configuration_schema.json",
"rules": {
"sort-imports": "off",
"@typescript-eslint/no-explicit-any": "error"
Copy link

Copilot AI Jan 22, 2026

Choose a reason for hiding this comment

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

Removing the explicit sort-imports: off means whether oxlint enforces import ordering now depends on oxlint defaults. If sort-imports is enabled, this can also make the pre-commit hook flaky because lefthook.yml runs format and lint in parallel, so lint may run before oxfmt has re-ordered imports. Consider either explicitly configuring sort-imports here (to match the intended source of truth) or making the hook run lint after formatting.

Suggested change
"@typescript-eslint/no-explicit-any": "error"
"@typescript-eslint/no-explicit-any": "error",
"sort-imports": "off"

Copilot uses AI. Check for mistakes.
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