Skip to content

oxfmt: Object style options cannot be set to their defaults #20793

@leaysgur

Description

@leaysgur

I noticed this while reviewing #20672.

Currently, these are the options that allow to specify an object style.

  • sortPackageJson: default true
  • sortImports: default None
  • sortTailwindcss: default None
  • jsdoc: default None

While all other primitive options can be overridden by specifying a default value later, these cannot.

I hadn't intended to support true simply as an alias for {}, but I think this could be a good reason to do so. May restore #20790 with adding test cases.

Metadata

Metadata

Assignees

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