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

eslint-plugin-graphql not supported #573

Open
zinkkrysty opened this issue May 3, 2022 · 2 comments
Open

eslint-plugin-graphql not supported #573

zinkkrysty opened this issue May 3, 2022 · 2 comments
Assignees

Comments

@zinkkrysty
Copy link

I would have expected that the eslint graphql plugin is supported by codeclimate.

Actual Behavior

Getting a bunch of errors in codeclimate:

Definition for rule 'graphql/template-strings' was not found.

Expected Behavior

The graphql plugin should work, as it does locally:

yarn eslint path/to/file.js

path/to/file.js
  112:22  warning  'e' is defined but never used  @typescript-eslint/no-unused-vars
  120:16  warning  'e' is defined but never used  @typescript-eslint/no-unused-vars

✖ 2 problems (0 errors, 2 warnings)

✨  Done in 4.98s.

Steps to reproduce

  1. Add eslint-plugin-graphql to package.json
  2. Change configuration files:

(1) .codeclimate.yml :

plugins:
  eslint:
    enabled: true
    channel: 'eslint-7'
    config:
      config: .eslintrc.json

(2) .eslintrc.json :

  "rules": {
    "graphql/template-strings": ["error", {
      "env": "apollo"
    }]
  },
  "plugins": ["graphql"]
@zinkkrysty
Copy link
Author

Additional info: https://github.com/B2o5T/graphql-eslint is not supported, either, so at the moment I can't use any graphql linters with CodeClimate

@bohdanbirdie
Copy link

Also got this issue, seems like graphql-esling integration does not work

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

3 participants