Skip to content

oxlint,oxfmt: All Vite config patterns are not supported #21057

@FleetAdmiralJakob

Description

@FleetAdmiralJakob

Originally derived from voidzero-dev/vite-plus#930 and voidzero-dev/vite-plus#1084

Issue with Oxlint, Oxfmt, and Oxc VS Code/LSP integration

I think it's better tracked here since it's a problem in this repo and not a problem with Vite Plus.

Currently, vp lint, vp fmt, and the VSCode extension all transparently utilize Oxlint and Oxfmt respectively.

On the Oxapps side, the ability to extract .lint and .fmt fields from vite.config.ts has been added, but they are not fully complete at present.

https://vite.dev/config/

Currently supported static config only:

export default { ... };
export default defineConfig({ ... });

Conditional and async config are NOT supported.

defineConfig(({ ... }) => ({ ... }));
defineConfig(async ({ ... }) => ({ ... }));

Since they do not know how to handle arguments.

For the first place, Oxlint and Oxfmt do not support functional config even with their oxlint.config.ts. Also, be aware that the file name, they only supports the .ts extension.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    Priority

    None yet

    Effort

    None yet

    Start date

    None yet

    Target date

    None yet

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions