Skip to content

defineConfig fmt option cannot define overrides #1073

@tirelyl

Description

@tirelyl

Description

I cannot define the fmt's override option in defineConfig method.

Image

In oxcfmt, the configuration property corresponding to defineConfig is Oxfmtrc.

Image

But the FormatConfig corresponding to the vite.config.ts fmt attribute.

Image

Suggested solution

The corresponding type is Oxfmtrc, so I can configure the overrides attribute.

I'm not sure if I've missed anything, or if there are other places where the overrides attribute can be configured.

Alternative

No response

Additional context

No response

Validations

  • Read the Contributing Guidelines.
  • Confirm this request is for Vite+ itself and not for Vite, Vitest, tsdown, Rolldown, or Oxc.
  • Check that there isn't already an issue requesting the same feature.

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

Priority

None yet

Effort

None yet

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions