Skip to content

Feature Request: Prettier: pass "filepath" to prettier in order to make it use the right parser #448

Closed
@uweschaefer

Description

@uweschaefer

Currently, PrettierFormatterStep calls prettier passing the static configuration to it. In order to be able to format different types of files in one go (*.js, *.tx, *.css, *.html...) prettier needs to know on every invocation, what parser it should use.

This change is independent of the Build System used and involves PrettierFormatterStep::createFormatterFunc

I'll try to prepare a PR accordingly.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions