Can I apply schema-recommended rules to a JSON schema? #2096
Answered
by
dimaMachina
alexeyr-ci
asked this question in
Q&A
-
When I try (in flat config, but that shouldn't matter)
I get
If I include the plugin's parser, I get
instead. I could use a JSON parser like https://www.npmjs.com/package/jsonc-eslint-parser, but I expect graphql-eslint would need to support that particular parser. |
Beta Was this translation helpful? Give feedback.
Answered by
dimaMachina
Jan 3, 2024
Replies: 1 comment 1 reply
-
You can’t lint json files, but you can provide schema for graphql-eslint as json file |
Beta Was this translation helpful? Give feedback.
1 reply
Answer selected by
alexeyr-ci
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
You can’t lint json files, but you can provide schema for graphql-eslint as json file