Skip to content

How to reliably read dprint.json from a user's project? #13

Description

@jasonkuhrt

Hey, here's my situation:

  1. Given a tool X that applies dprint programmatically to code that it generates into a users project Y
  2. Given that X wants to allow Y to control formatting options

How does X read the optional dprint configuration file in Y reliably? I could just look for a dprint.json in CWD etc. but I don't want corner cases to hit the user. E.g. the same resolution algorithm that the user's IDE uses I want my tool to use.

Is there any APIs to support this? Thanks!

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Fields

    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions