question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

plugin:@graphql-eslint/all runs into error caused by incorrect "require-description" lint config

See original GitHub issue

Describe the bug

When running eslint using plugin:@graphql-eslint/all, get the error:

Error: .eslintrc.js#overrides[1] » plugin:@graphql-eslint/all:
        Configuration for rule "@graphql-eslint/require-description" is invalid:
        Value [] should NOT have fewer than 1 items.

This is even when disabling "@graphql-eslint/require-description":

    {
      files: ["*.graphql"],
      extends: ["plugin:@graphql-eslint/all"],
      rules: {
        "@graphql-eslint/require-description": "off",
      },
    },

To Reproduce Steps to reproduce the behavior:

Create an eslint.js as above and run eslint.

Expected behavior

Lint to run without error.

Environment:

  • OS: macOS 11.6
  • @graphql-eslint/...: 2.2.0
  • NodeJS: 16.9.1

Additional context

I believe this issue has a similar fix to the ones applied here:

Issue Analytics

  • State:closed
  • Created 2 years ago
  • Reactions:2
  • Comments:6 (3 by maintainers)

github_iconTop GitHub Comments

3reactions
B2o5Tcommented, Sep 22, 2021

Hi @stephenkoo and thank you for reporting this. To fix this we need to provide the required default configuration for require-description and selection-set-depth rules in script that generate recommended and all config. I’ll fix this soon 👍

2reactions
dotansimhacommented, Nov 15, 2021

Hi @B2o5T , is there an ETA for releasing v3? I’m currently blocked from that as well.

We’ll do it later this week! 😃

Read more comments on GitHub >

github_iconTop Results From Across the Web

plugin:@graphql-eslint/all runs into error caused by incorrect ...
Describe the bug When running eslint using plugin:@graphql-eslint/all, get the error: Error: .eslintrc.js#overrides[1] ...
Read more >
Avoid errors in your Ansible playbooks with ansible-lint
Ansible-lint goes beyond regular YAML linters by checking Ansible tasks ... A linter is designed to catch errors in data before a file...
Read more >
Errors and exceptions — Object-Oriented Programming in ...
They occur when the program runs without crashing, but produces an incorrect result. The error is caused by a mistake in the program's...
Read more >
lint Source Code Checker - Oracle Help Center
This chapter explans how you can use the lint program to check your C code for errors that may cause a compilation failure...
Read more >
Errors and exceptions - Object-Oriented Programming in Python
They occur when the program runs without crashing, but produces an incorrect result. The error is caused by a mistake in the program's...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found