Skip to content

Does not work with graphql files #73

@inlightmedia

Description

@inlightmedia

When I make formatting changes to any *.graphql file precise-commits is not able to parse the file. When I remove graphql files from the whitelist the formatter runs perfectly.

The errors it throws in all *.graphql files is:
SyntaxError: Syntax Error: Unexpected Name "thisWillCauseError". (1:1)

The following will cause an error.

type MyType {
  thisWillCauseError: String!
}

Prettier alone and/or with lint-staged formats these files without issue. So, it seems like this is specific to this library.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions