plugin:@graphql-eslint/all runs into error caused by incorrect "require-description" lint config
See original GitHub issueDescribe 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:
- Created 2 years ago
- Reactions:2
- Comments:6 (3 by maintainers)
Top 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 >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
Hi @stephenkoo and thank you for reporting this. To fix this we need to provide the required default configuration for
require-description
andselection-set-depth
rules in script that generaterecommended
andall
config. I’ll fix this soon 👍We’ll do it later this week! 😃