Skip to content

formatter: configuration aligning #14591

@Dunqing

Description

@Dunqing

Oxfmt:

{
  "semicolons": "as-needed",
  "quoteStyle": "single",
  "arrowParentheses": "as-needed"
}

Prettier:

{
  "semi": false,
  "singleQuote": true,
  "arrowParens": "avoid"
}

The current oxfmt configuration is completely different from Prettier's. Ideally, we should have the same configuration options as Prettier, or provide a migrate command in the CLI to allow users to easily transition to oxfmt.

Metadata

Metadata

Assignees

Labels

Projects

No projects

Relationships

None yet

Development

No branches or pull requests

Issue actions