Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Does not work with graphql files #73

Open
inlightmedia opened this issue Mar 25, 2022 · 0 comments
Open

Does not work with graphql files #73

inlightmedia opened this issue Mar 25, 2022 · 0 comments

Comments

@inlightmedia
Copy link

inlightmedia commented Mar 25, 2022

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant