Skip to content

fix: RuleDocsInfo type mismatch with eslint type - #2961

Open
hedgepigdaniel wants to merge 3 commits into
graphql-hive:masterfrom
hedgepigdaniel:fix/flat-config
Open

fix: RuleDocsInfo type mismatch with eslint type#2961
hedgepigdaniel wants to merge 3 commits into
graphql-hive:masterfrom
hedgepigdaniel:fix/flat-config

Conversation

@hedgepigdaniel

@hedgepigdaniel hedgepigdaniel commented Jun 15, 2026

Copy link
Copy Markdown

Description

Change type of RuleDocsInfo.category to disallow arrays

Fixes #2936

Type of change

Please delete options that are not relevant.

  • Bug fix (non-breaking change which fixes an issue)

How Has This Been Tested?

This is a type change only.

  • I have followed the
    CONTRIBUTING doc and the
    style guidelines of this project
  • I have performed a self-review of my own code
  • I have commented my code, particularly in hard-to-understand areas
  • I have made corresponding changes to the documentation
  • My changes generate no new warnings
  • I have added tests that prove my fix is effective or that my feature works
  • New and existing unit tests and linter rules pass locally with my changes
  • Any dependent changes have been merged and published in downstream modules

@hedgepigdaniel

Copy link
Copy Markdown
Author

So it seems that this change just makes way for another type error. Not sure that I have the time to keep going, though arguably this is already an improvement in that the types get closer to what eslint expects.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Development

Successfully merging this pull request may close these issues.

graphqlPlugin type incompatible with plugins in eslint defineConfig type

2 participants