Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
fixes #2178
This PR was opened by the Changesets release GitHub action. When you're ready to do a release, you can merge this and the packages will be published to npm automatically. If you're not ready to do a release yet, that's fine, whenever you add more changesets to master, this PR will be updated.
Releases
@graphql-eslint/[email protected]
Major Changes
#2598
e771499
Thanks @bmulholland! - 1. graphql plugin can now we be specified
as
Config rules should now be accessed through the
rules
propertyprocessor can now be specified with accessing
processor
propertyThe plugin can now be imported using a default import
#1813
1c2d220
Thanks @dimaMachina! - - bring back
possible-type-extension
rule to
schema-recommended
configunique-operation-name
andunique-fragment-name
rules tooperations-recommended
configThe concept of sibling operations provided by graphql-config's
documents
fields is based onuniquely named operations and fragments, for omitting false-positive/negative cases when
operations and fragments are located in separate files. For this reason, these rules must be
included in the recommended config
relay
config toschema-relay
#1813
1c2d220
Thanks @dimaMachina! - -
alphabetize
rule changesadd
definitions: true
option forschema-all
/operations-all
configsrename
values: ['EnumTypeDefinition']
tovalues: true
rename
variables: ['OperationDefinition']
tovariables: true
add
groups: ['id', '*', 'createdAt', 'updatedAt']
forschema-all
/operations-all
configsrequire-id-when-available
rule changesrequire-selections
update
schema-all
/operations-all
configsrequire-description
rule changesrootField: true
option forschema-recommended
configrequire
eslint
at least>=8.44.0
as peerDependencynaming-convention
schema-recommended
configremove graphql-js'
unique-enum-value-names
rulerename
no-case-insensitive-enum-values-duplicates
tounique-enum-value-names
require-nullable-result-in-root
rule changesDo not check subscriptions
#1813
1c2d220
Thanks @dimaMachina! - - remove
parserOptions.schema
parserOptions.documents
parserOptions.extensions
parserOptions.include
parserOptions.exclude
parserOptions.projects
parserOptions.schemaOptions
parserOptions.graphQLParserOptions
parserOptions.skipGraphQLConfig
parserOptions.operations
parserOptions.graphQLConfig?: IGraphQLConfig
for programmatic usage#2281
c53cb4e
Thanks @maciesielka! - Add new config option
ignoredFieldSelectors
tono-unused-fields
rule to ignore all the relay pagination fields forevery connection exposed in schema for example
#1813
1c2d220
Thanks @dimaMachina! - drop support of Node.js 12/14/16, GraphQL
14/15
#2418
c2d5386
Thanks @comatory! - exposing GraphQLESTreeNode type
#2768
241936a
Thanks @dimaMachina! - - rename
requireSiblingsOperations
torequireGraphQLOperations
requireGraphQLSchemaFromContext
torequireGraphQLSchema
#1813
1c2d220
Thanks @dimaMachina! - Remove
GraphQLRuleTester
from bundle,to test your rules use regular
RuleTester
from eslint#2319
b3c73dc
Thanks @maciesielka! - Enforce
require-selections
onFragmentSpread
s withinGraphQLUnionType
sMinor Changes
#2385
afa8b8a
Thanks @deathemperor! - feat: add a new option
{
foralphabetize rule to sort fields
selection set
#2293
01f7087
Thanks @yoavsion! - Support the fragment spread group when defining
alphabetize rule's groups with new option
...
#2719
57d6edf
Thanks @dimaMachina! - check for deprecated arguments and object
field nodes in graphql operations in
no-deprecated
rulePatch Changes
#1813
1c2d220
Thanks @dimaMachina! - dependencies updates:
@babel/code-frame@^7.18.6
↗︎(from
dependencies
)#1813
1c2d220
Thanks @dimaMachina! - dependencies updates:
graphql-config@^4.5.0
↗︎ (from^4.4.0
, independencies
)@babel/code-frame@^7.18.6
↗︎(from
dependencies
)chalk@^4.1.2
↗︎ (fromdependencies
)tslib@^2.4.1
↗︎ (fromdependencies
)graphql@^16
↗︎ (from^0.8.0 || ^0.9.0 || ^0.10.0 || ^0.11.0 || ^0.12.0 || ^0.13.0 || ^14.0.0 || ^15.0.0 || ^16.0.0
,in
peerDependencies
)eslint@>=8.44.0
↗︎ (topeerDependencies
)#2455
08a8a13
Thanks @dimaMachina! - fix caching issues for
no-unreachable-types
/no-unused-fields
rules for multi projects#2483
d52585a
Thanks @dimaMachina! - fix compatibility with Node.js v22
#2743
03ccb9d
Thanks @dimaMachina! - fix error from
no-deprecated
rule4.0.0-alpha.13: node.typeInfo(...).inputType.getFields is not a function
#2466
da608d7
Thanks @dimaMachina! - fix
require is not defined
in flatconfigs for Vue/Svelte projects
#2277
3b35bae
Thanks @yoavain-sundaysky! - fix false positive cases for
require-import-fragment
on Windows, whengraphql-config
'sdocuments
key contained globpattern => source file path of document contained always forward slashes
#2735
ccd9303
Thanks @dimaMachina! - fix reporting lint issues not on first
char of file for
.vue
and support ESLint fixes and suggestions for them. Usenew official example
#2468
733a66e
Thanks @dimaMachina! - - rename flat configs exports
pattern too long
errorgraphql.config.js
configs#2616
c0f1b07
Thanks @fcortes! - The import attribute syntax (with { type: "json"
}) is still experimental so warnings showed up when using the library as it was being used to
import the package.json file to extract the package version
As an alternative, the current version will be injected on build time through tsup configuration.
#2605
2ae64e1
Thanks @dimaMachina! - fix types exports by
@arethetypeswrong/cli
package#2458
9096458
Thanks @dimaMachina! - add
meta
object withname
andversion
toparser
andprocessor
to be compatible with ESLint 9#2692
dcf4e35
Thanks @dimaMachina! - fix some issues on Windows by running
tests with matrix on github CI
#2711
b15df66
Thanks @dimaMachina! - Reenable running
require-id-when-available
onFragmentDefinition
#2752
1e3e966
Thanks @dimaMachina! - fix - Config types don't satisfy
FlatConfig.Config
#2721
cda7929
Thanks @dimaMachina! - fix
no-unreachable-types
to considerwrapped request directive argument types
#2763
baba639
Thanks @dimaMachina! - fix
https://bit.ly/graphql-eslint-operations links
#2713
8b6d46b
Thanks @dimaMachina! -
naming-convention
rule should not failwhen aliasing underscore fields