Skip to content

Conversation

@lioneltay
Copy link
Contributor

@lioneltay lioneltay commented Jan 28, 2021

Add caseSensitiveInputType, checkMutations, checkQueries options to input-name rule

caseSensitiveInputType: When false the input type name must be Input but is not case sensitive.

checkMutations (default true): Apply this rule to mutations.

checkQueries (default false): Apply this rule to queries.

Setup default option values, previously all defaulting to undefined.

Also fixed documentation error which says that checkInputType defaults to true, when infact it defaults to false.

Addressed #276

…nput-name rule

caseSensitiveInputType: When false the input type name must be <mutationName>Input but is not case sensitive.

checkMutations (default true): Apply this rule to mutations.

checkQueries (default false): Apply this rule to queries.

Also fixed documentation error which says that checkInputType defaults to true, when infact it defaults to false.
@changeset-bot
Copy link

changeset-bot bot commented Jan 28, 2021

🦋 Changeset detected

Latest commit: 40ed32f

The changes in this PR will be included in the next version bump.

This PR includes changesets to release 5 packages
Name Type
@graphql-eslint/eslint-plugin Minor

Not sure what this means? Click here to learn what changesets are.

Click here if you're a maintainer who wants to add another changeset to this PR

@lioneltay lioneltay changed the title Add options to input-name rule Add options to input-name rule. Addresses #276 Jan 28, 2021
@dotansimha
Copy link
Member

Amazing work. thank you @lioneltay !

@dotansimha dotansimha merged commit 5b35139 into graphql-hive:master Feb 2, 2021
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.

2 participants