Skip to content

oxfmt: dynamic config file support (oxfmt.config.ts) #19711

@camc314

Description

@camc314

Following on from #17527 which added support for dynamic config files to oxlint, we should ship this functionality to oxfmt.

This allows more complicated rule configurations.

Supported files

  • oxfmt.config.ts

We can use node.js native typescript support as we depend on node >v22.18.0.

API

import { defineConfig } from "oxlint";

export default defineConfig({
	"printWidth": 123
});

note: This should be achieved by generalizing the work implemented in oxlint.

References

Metadata

Metadata

Assignees

No one assigned

    Labels

    Priority

    None yet

    Start date

    None yet

    Target date

    None yet

    Effort

    None yet

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions