Skip to content

Enable sortImports by default in oxfmt config - #49

Merged
kin0992 merged 1 commit into
mainfrom
feats/sort-imports-oxfmt
Aug 8, 2026
Merged

Enable sortImports by default in oxfmt config#49
kin0992 merged 1 commit into
mainfrom
feats/sort-imports-oxfmt

Conversation

@kin0992

@kin0992 kin0992 commented Aug 8, 2026

Copy link
Copy Markdown
Owner

Adds sortImports: true to the shared oxfmt config alongside the existing sortPackageJson: true, so import statements are automatically sorted alphabetically across all consumers of @kin0992/oxc-config — the same way tsconfig is shared instead of duplicated per repo.

Reformatted infra/index.ts since its import order no longer matched the new rule.

Includes a changeset for a minor version bump.

Alphabetically sorting imports alongside the existing package.json
key sorting keeps import blocks consistent across consumers without
manual upkeep. Reformatted infra/index.ts to comply with the new rule.

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
@changeset-bot

changeset-bot Bot commented Aug 8, 2026

Copy link
Copy Markdown

🦋 Changeset detected

Latest commit: 863ae93

The changes in this PR will be included in the next version bump.

This PR includes changesets to release 1 package
Name Type
@kin0992/oxc-config Minor

Not sure what this means? Click here to learn what changesets are.

Click here if you're a maintainer who wants to add another changeset to this PR

@github-actions

github-actions Bot commented Aug 8, 2026

Copy link
Copy Markdown
Contributor

🍹 preview on dev-toolkit-infra/prod

Pulumi report

View in Pulumi Cloud

  Previewing update (prod)

View Live: https://app.pulumi.com/kin0992/dev-toolkit-infra/prod/previews/f46a9c04-b8f7-456c-bafd-7e82de7de313

pulumi:pulumi:Stack: (same)
  [urn=urn:pulumi:prod::dev-toolkit-infra::pulumi:pulumi:Stack::dev-toolkit-infra-prod]
  --outputs:--
~ branchProtection: {
      allowsDeletions              : false
      allowsForcePushes            : false
      enforceAdmins                : false
      id                           : "BPR_kwDOSO32N84Eix0X"
      lockBranch                   : false
      pattern                      : "main"
      repositoryId                 : "R_kgDOSO32Nw"
      requireConversationResolution: true
      requireSignedCommits         : false
      requiredLinearHistory        : true
      requiredPullRequestReviews   : [
          [0]: {
              dismissStaleReviews         : true
              dismissalRestrictions       : 
              pullRequestBypassers        : 
              requireCodeOwnerReviews     : false
              requireLastPushApproval     : false
              requiredApprovingReviewCount: 0
              restrictDismissals          : false
          }
      ]
      requiredStatusChecks         : [
          [0]: {
              contexts: [
                  [0]: "Static Analysis (self)"
              ]
              strict  : true
          }
      ]
      urn                          : "urn:pulumi:prod::dev-toolkit-infra::github:index/branchProtection:BranchProtection::main-protection"
  }
~ repo            : {
      allowAutoMerge                     : true
      allowForking                       : true
      allowMergeCommit                   : false
      allowRebaseMerge                   : false
      allowSquashMerge                   : true
      allowUpdateBranch                  : true
      archiveOnDestroy                   : true
      archived                           : false
      defaultBranch                      : "main"
      deleteBranchOnMerge                : true
      description                        : "Platform Engineering toolkit: reusable GitHub Actions, AI Skills, and shared TypeScript configs."
      etag                               : "W/\"5df06006d8a40dbcc2919dc31f9e98b8e46e0707f9c32441b6845789c67089ac\""
      fork                               : "false"
      fullName                           : "kin0992/dev-toolkit"
      gitCloneUrl                        : "git://github.com/kin0992/dev-toolkit.git"
      hasDiscussions                     : false
      hasDownloads                       : false
      hasIssues                          : false
      hasProjects                        : false
      hasWiki                            : false
      htmlUrl                            : "https://github.com/kin0992/dev-toolkit"
      httpCloneUrl                       : "https://github.com/kin0992/dev-toolkit.git"
      id                                 : "dev-toolkit"
      ignoreVulnerabilityAlertsDuringRead: false
      isTemplate                         : false
      mergeCommitMessage                 : "PR_TITLE"
      mergeCommitTitle                   : "MERGE_MESSAGE"
      name                               : "dev-toolkit"
      nodeId                             : "R_kgDOSO32Nw"
      primaryLanguage                    : "JavaScript"
      private                            : false
      repoId                             : 1223554615
      securityAndAnalysis                : {
          advancedSecurity                 : 
          codeSecurity                     : 
          secretScanning                   : {
              status: "enabled"
          }
          secretScanningAiDetection        : 
          secretScanningNonProviderPatterns: 
          secretScanningPushProtection     : {
              status: "enabled"
          }
      }
      squashMergeCommitMessage           : "PR_BODY"
      squashMergeCommitTitle             : "PR_TITLE"
      sshCloneUrl                        : "git@github.com:kin0992/dev-toolkit.git"
      svnUrl                             : "https://github.com/kin0992/dev-toolkit"
      topics                             : [
          [0]: "agent-skills"
          [1]: "changesets"
          [2]: "claude-code"
          [3]: "copilot-cli"
          [4]: "github-actions"
          [5]: "marketplace"
          [6]: "platform-engineering"
          [7]: "pnpm"
          [8]: "pulumi"
          [9]: "turborepo"
          [10]: "typescript"
      ]
      urn                                : "urn:pulumi:prod::dev-toolkit-infra::github:index/repository:Repository::dev-toolkit"
      visibility                         : "public"
      vulnerabilityAlerts                : true
      webCommitSignoffRequired           : false
  }
Resources:
  6 unchanged
  

@kin0992
kin0992 merged commit 9e8afed into main Aug 8, 2026
7 checks passed
@kin0992
kin0992 deleted the feats/sort-imports-oxfmt branch August 8, 2026 09:33
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.

1 participant