@@ -51,8 +51,8 @@ import { GraphQLESLintRule, GraphQLESLintRuleContext, RuleDocsInfo } from '../ty
5151import {
5252 ARRAY_DEFAULT_OPTIONS ,
5353 REPORT_ON_FIRST_CHARACTER ,
54- requireGraphQLSchemaFromContext ,
55- requireSiblingsOperations ,
54+ requireGraphQLSchema ,
55+ requireGraphQLOperations ,
5656} from '../utils.js' ;
5757
5858type GraphQLJSRule = ValidationRule | SDLValidationRule ;
@@ -161,7 +161,7 @@ type GetDocumentNode = (props: {
161161const handleMissingFragments : GetDocumentNode = ( { ruleId, context, node } ) => {
162162 const missingFragments = getMissingFragments ( node ) ;
163163 if ( missingFragments . length > 0 ) {
164- const siblings = requireSiblingsOperations ( ruleId , context ) ;
164+ const siblings = requireGraphQLOperations ( ruleId , context ) ;
165165 const fragmentsToAdd : FragmentDefinitionNode [ ] = [ ] ;
166166
167167 for ( const fragmentName of missingFragments ) {
@@ -219,7 +219,7 @@ const validationToRule = (
219219 return {
220220 Document ( node ) {
221221 const schema = docs . requiresSchema
222- ? requireGraphQLSchemaFromContext ( ruleId , context )
222+ ? requireGraphQLSchema ( ruleId , context )
223223 : null ;
224224
225225 const documentNode = getDocumentNode
@@ -473,7 +473,7 @@ export const GRAPHQL_JS_VALIDATIONS: Record<string, GraphQLESLintRule> = Object.
473473 ruleId : 'no-unused-fragments' ,
474474 rule : NoUnusedFragmentsRule ,
475475 getDocumentNode : ( { ruleId, context, node } ) => {
476- const siblings = requireSiblingsOperations ( ruleId , context ) ;
476+ const siblings = requireGraphQLOperations ( ruleId , context ) ;
477477 const FilePathToDocumentsMap = [
478478 ...siblings . getOperations ( ) ,
479479 ...siblings . getFragments ( ) ,
0 commit comments