Skip to content

Add freeform settings to prettier #381

@xeals

Description

@xeals

Is your feature request related to a problem? Please describe.

The current programs.prettier.settings has no freeform type and no way to add custom settings to the object. This is an issue when using plugins such as prettier-plugin-sort-import which add additional settings values to the config file, as they can't be added. Since the schema is passed into pkgs.formats.json {}.generate without additional sanitisation, the schema is overly strict.

Describe the solution you'd like

Add a freeform type to the settings schema or expose an additional settings option where freeform options can be added.

Describe alternatives you've considered

The current options are to add additional flags to the prettier command, or to use programs.prettier.settings.overrides with a broad files set to use the freeform settings option there.

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions