|
8 | 8 | */ |
9 | 9 |
|
10 | 10 | export { validate, ValidationContext } from './validate'; |
| 11 | + |
| 12 | +// Spec Section: "Operation Name Uniqueness" |
| 13 | +export { UniqueOperationNames } from './rules/UniqueOperationNames'; |
| 14 | + |
| 15 | +// Spec Section: "Lone Anonymous Operation" |
| 16 | +export { LoneAnonymousOperation } from './rules/LoneAnonymousOperation'; |
| 17 | + |
| 18 | +// Spec Section: "Fragment Spread Type Existence" |
| 19 | +export { KnownTypeNames } from './rules/KnownTypeNames'; |
| 20 | + |
| 21 | +// Spec Section: "Fragments on Composite Types" |
| 22 | +export { FragmentsOnCompositeTypes } from './rules/FragmentsOnCompositeTypes'; |
| 23 | + |
| 24 | +// Spec Section: "Variables are Input Types" |
| 25 | +export { VariablesAreInputTypes } from './rules/VariablesAreInputTypes'; |
| 26 | + |
| 27 | +// Spec Section: "Leaf Field Selections" |
| 28 | +export { ScalarLeafs } from './rules/ScalarLeafs'; |
| 29 | + |
| 30 | +// Spec Section: "Field Selections on Objects, Interfaces, and Unions Types" |
| 31 | +export { FieldsOnCorrectType } from './rules/FieldsOnCorrectType'; |
| 32 | + |
| 33 | +// Spec Section: "Fragment Name Uniqueness" |
| 34 | +export { UniqueFragmentNames } from './rules/UniqueFragmentNames'; |
| 35 | + |
| 36 | +// Spec Section: "Fragment spread target defined" |
| 37 | +export { KnownFragmentNames } from './rules/KnownFragmentNames'; |
| 38 | + |
| 39 | +// Spec Section: "Fragments must be used" |
| 40 | +export { NoUnusedFragments } from './rules/NoUnusedFragments'; |
| 41 | + |
| 42 | +// Spec Section: "Fragment spread is possible" |
| 43 | +export { PossibleFragmentSpreads } from './rules/PossibleFragmentSpreads'; |
| 44 | + |
| 45 | +// Spec Section: "Fragments must not form cycles" |
| 46 | +export { NoFragmentCycles } from './rules/NoFragmentCycles'; |
| 47 | + |
| 48 | +// Spec Section: "Variable Uniqueness" |
| 49 | +export { UniqueVariableNames } from './rules/UniqueVariableNames'; |
| 50 | + |
| 51 | +// Spec Section: "All Variable Used Defined" |
| 52 | +export { NoUndefinedVariables } from './rules/NoUndefinedVariables'; |
| 53 | + |
| 54 | +// Spec Section: "All Variables Used" |
| 55 | +export { NoUnusedVariables } from './rules/NoUnusedVariables'; |
| 56 | + |
| 57 | +// Spec Section: "Directives Are Defined" |
| 58 | +export { KnownDirectives } from './rules/KnownDirectives'; |
| 59 | + |
| 60 | +// Spec Section: "Directives Are Unique Per Location" |
| 61 | +export { |
| 62 | + UniqueDirectivesPerLocation |
| 63 | +} from './rules/UniqueDirectivesPerLocation'; |
| 64 | + |
| 65 | +// Spec Section: "Argument Names" |
| 66 | +export { KnownArgumentNames } from './rules/KnownArgumentNames'; |
| 67 | + |
| 68 | +// Spec Section: "Argument Uniqueness" |
| 69 | +export { UniqueArgumentNames } from './rules/UniqueArgumentNames'; |
| 70 | + |
| 71 | +// Spec Section: "Argument Values Type Correctness" |
| 72 | +export { ArgumentsOfCorrectType } from './rules/ArgumentsOfCorrectType'; |
| 73 | + |
| 74 | +// Spec Section: "Argument Optionality" |
| 75 | +export { ProvidedNonNullArguments } from './rules/ProvidedNonNullArguments'; |
| 76 | + |
| 77 | +// Spec Section: "Variable Default Values Are Correctly Typed" |
| 78 | +export { DefaultValuesOfCorrectType } from './rules/DefaultValuesOfCorrectType'; |
| 79 | + |
| 80 | +// Spec Section: "All Variable Usages Are Allowed" |
| 81 | +export { VariablesInAllowedPosition } from './rules/VariablesInAllowedPosition'; |
| 82 | + |
| 83 | +// Spec Section: "Field Selection Merging" |
| 84 | +export { |
| 85 | + OverlappingFieldsCanBeMerged |
| 86 | +} from './rules/OverlappingFieldsCanBeMerged'; |
| 87 | + |
| 88 | +// Spec Section: "Input Object Field Uniqueness" |
| 89 | +export { UniqueInputFieldNames } from './rules/UniqueInputFieldNames'; |
| 90 | + |
11 | 91 | export { specifiedRules } from './specifiedRules'; |
0 commit comments