From 7f14d6e13fb9f5c62300ff676dffb8c387ed1db4 Mon Sep 17 00:00:00 2001 From: Ivan Goncharov Date: Fri, 7 Jun 2019 16:50:47 +0300 Subject: [PATCH] Update LICENSE and remove license header from source files --- .eslintrc.yml | 2 +- LICENSE | 2 +- resources/benchmark.js | 9 +-------- resources/build.js | 9 +-------- resources/check-cover.js | 9 +-------- resources/gen-changelog.js | 2 +- resources/gen-version.js | 18 ++---------------- resources/inline-invariant.js | 9 +-------- resources/utils.js | 9 +-------- src/__fixtures__/index.js | 9 +-------- src/__fixtures__/kitchen-sink.graphql | 5 ----- src/__fixtures__/schema-kitchen-sink.graphql | 5 ----- src/__tests__/starWarsData.js | 9 +-------- src/__tests__/starWarsIntrospection-test.js | 9 +-------- src/__tests__/starWarsQuery-test.js | 9 +-------- src/__tests__/starWarsSchema.js | 9 +-------- src/__tests__/starWarsValidation-test.js | 9 +-------- src/__tests__/version-test.js | 9 +-------- src/error/GraphQLError.js | 9 +-------- src/error/__tests__/GraphQLError-test.js | 9 +-------- src/error/__tests__/locatedError-test.js | 9 +-------- src/error/__tests__/printError-test.js | 9 +-------- src/error/formatError.js | 9 +-------- src/error/index.js | 9 +-------- src/error/locatedError.js | 9 +-------- src/error/printError.js | 9 +-------- src/error/syntaxError.js | 9 +-------- .../__tests__/abstract-promise-test.js | 9 +-------- src/execution/__tests__/abstract-test.js | 9 +-------- src/execution/__tests__/directives-test.js | 9 +-------- src/execution/__tests__/executor-test.js | 9 +-------- src/execution/__tests__/lists-test.js | 9 +-------- src/execution/__tests__/mutations-test.js | 9 +-------- src/execution/__tests__/nonnull-test.js | 9 +-------- src/execution/__tests__/resolve-test.js | 9 +-------- src/execution/__tests__/schema-test.js | 9 +-------- src/execution/__tests__/sync-test.js | 9 +-------- .../__tests__/union-interface-test.js | 9 +-------- src/execution/__tests__/variables-test.js | 9 +-------- src/execution/execute.js | 9 +-------- src/execution/index.js | 9 +-------- src/execution/values.js | 9 +-------- src/graphql.js | 9 +-------- src/index.js | 9 +-------- src/jsutils/ObjMap.js | 9 +-------- src/jsutils/PromiseOrValue.js | 9 +-------- src/jsutils/__tests__/dedent-test.js | 9 +-------- src/jsutils/__tests__/didYouMean-test.js | 9 +-------- src/jsutils/__tests__/identityFunc-test.js | 9 +-------- src/jsutils/__tests__/inspect-test.js | 9 +-------- src/jsutils/__tests__/instanceOf-test.js | 9 +-------- src/jsutils/__tests__/suggestionList-test.js | 9 +-------- src/jsutils/dedent.js | 9 +-------- src/jsutils/defineToJSON.js | 9 +-------- src/jsutils/defineToStringTag.js | 9 +-------- src/jsutils/didYouMean.js | 9 +-------- src/jsutils/identityFunc.js | 9 +-------- src/jsutils/inspect.js | 9 +-------- src/jsutils/instanceOf.js | 9 +-------- src/jsutils/invariant.js | 9 +-------- src/jsutils/isInvalid.js | 9 +-------- src/jsutils/isNullish.js | 9 +-------- src/jsutils/isPromise.js | 9 +-------- src/jsutils/keyMap.js | 9 +-------- src/jsutils/keyValMap.js | 9 +-------- src/jsutils/mapValue.js | 9 +-------- src/jsutils/memoize3.js | 9 +-------- src/jsutils/nodejsCustomInspectSymbol.js | 9 +-------- src/jsutils/promiseForObject.js | 9 +-------- src/jsutils/promiseReduce.js | 9 +-------- src/jsutils/suggestionList.js | 9 +-------- src/language/__tests__/blockString-test.js | 9 +-------- src/language/__tests__/lexer-test.js | 9 +-------- src/language/__tests__/parser-benchmark.js | 9 +-------- src/language/__tests__/parser-test.js | 9 +-------- src/language/__tests__/printer-test.js | 9 +-------- src/language/__tests__/schema-parser-test.js | 9 +-------- src/language/__tests__/schema-printer-test.js | 9 +-------- src/language/__tests__/source-test.js | 9 +-------- src/language/__tests__/toJSONDeep.js | 9 +-------- src/language/__tests__/visitor-test.js | 9 +-------- src/language/ast.js | 9 +-------- src/language/blockString.js | 9 +-------- src/language/directiveLocation.js | 9 +-------- src/language/index.js | 9 +-------- src/language/kinds.js | 9 +-------- src/language/lexer.js | 9 +-------- src/language/location.js | 9 +-------- src/language/parser.js | 9 +-------- src/language/predicates.js | 9 +-------- src/language/printer.js | 9 +-------- src/language/source.js | 9 +-------- src/language/visitor.js | 9 +-------- src/polyfills/find.js | 9 +-------- src/polyfills/flatMap.js | 9 +-------- src/polyfills/isFinite.js | 9 +-------- src/polyfills/isInteger.js | 9 +-------- src/polyfills/objectEntries.js | 9 +-------- src/polyfills/objectValues.js | 9 +-------- .../__tests__/asyncIteratorReject-test.js | 9 +-------- .../eventEmitterAsyncIterator-test.js | 9 +-------- .../__tests__/eventEmitterAsyncIterator.js | 9 +-------- .../__tests__/mapAsyncIterator-test.js | 9 +-------- src/subscription/__tests__/subscribe-test.js | 9 +-------- src/subscription/asyncIteratorReject.js | 9 +-------- src/subscription/index.js | 9 +-------- src/subscription/mapAsyncIterator.js | 9 +-------- src/subscription/subscribe.js | 9 +-------- src/type/__tests__/definition-test.js | 9 +-------- src/type/__tests__/directive-test.js | 9 +-------- src/type/__tests__/enumType-test.js | 9 +-------- src/type/__tests__/introspection-test.js | 9 +-------- src/type/__tests__/predicate-test.js | 9 +-------- src/type/__tests__/schema-test.js | 9 +-------- src/type/__tests__/serialization-test.js | 9 +-------- src/type/__tests__/validation-test.js | 9 +-------- src/type/definition.js | 9 +-------- src/type/directives.js | 9 +-------- src/type/index.js | 9 +-------- src/type/introspection.js | 9 +-------- src/type/scalars.js | 9 +-------- src/type/schema.js | 9 +-------- src/type/validate.js | 9 +-------- src/utilities/TypeInfo.js | 9 +-------- .../__tests__/assertValidName-test.js | 9 +-------- src/utilities/__tests__/astFromValue-test.js | 9 +-------- .../__tests__/buildASTSchema-benchmark.js | 9 +-------- src/utilities/__tests__/buildASTSchema-test.js | 9 +-------- .../__tests__/buildClientSchema-benchmark.js | 9 +-------- .../__tests__/buildClientSchema-test.js | 9 +-------- src/utilities/__tests__/coerceValue-test.js | 9 +-------- src/utilities/__tests__/concatAST-test.js | 9 +-------- src/utilities/__tests__/extendSchema-test.js | 9 +-------- .../__tests__/findBreakingChanges-test.js | 9 +-------- .../__tests__/findDeprecatedUsages-test.js | 9 +-------- .../__tests__/getOperationAST-test.js | 9 +-------- .../__tests__/getOperationRootType-test.js | 9 +-------- .../introspectionFromSchema-benchmark.js | 9 +-------- .../__tests__/introspectionFromSchema-test.js | 9 +-------- .../__tests__/isValidLiteralValue-test.js | 9 +-------- .../__tests__/lexicographicSortSchema-test.js | 9 +-------- src/utilities/__tests__/schemaPrinter-test.js | 9 +-------- .../__tests__/separateOperations-test.js | 9 +-------- .../__tests__/stripIgnoredCharacters-test.js | 9 +-------- .../__tests__/typeComparators-test.js | 9 +-------- src/utilities/__tests__/valueFromAST-test.js | 9 +-------- .../__tests__/valueFromASTUntyped-test.js | 9 +-------- src/utilities/assertValidName.js | 9 +-------- src/utilities/astFromValue.js | 9 +-------- src/utilities/buildASTSchema.js | 9 +-------- src/utilities/buildClientSchema.js | 9 +-------- src/utilities/coerceValue.js | 9 +-------- src/utilities/concatAST.js | 9 +-------- src/utilities/extendSchema.js | 9 +-------- src/utilities/findBreakingChanges.js | 9 +-------- src/utilities/findDeprecatedUsages.js | 9 +-------- src/utilities/getOperationAST.js | 9 +-------- src/utilities/getOperationRootType.js | 9 +-------- src/utilities/index.js | 9 +-------- src/utilities/introspectionFromSchema.js | 9 +-------- src/utilities/introspectionQuery.js | 9 +-------- src/utilities/isValidJSValue.js | 9 +-------- src/utilities/isValidLiteralValue.js | 9 +-------- src/utilities/lexicographicSortSchema.js | 9 +-------- src/utilities/schemaPrinter.js | 9 +-------- src/utilities/separateOperations.js | 9 +-------- src/utilities/stripIgnoredCharacters.js | 9 +-------- src/utilities/typeComparators.js | 9 +-------- src/utilities/typeFromAST.js | 9 +-------- src/utilities/valueFromAST.js | 9 +-------- src/utilities/valueFromASTUntyped.js | 9 +-------- src/validation/ValidationContext.js | 9 +-------- .../__tests__/ExecutableDefinitions-test.js | 9 +-------- .../__tests__/FieldsOnCorrectType-test.js | 9 +-------- .../FragmentsOnCompositeTypes-test.js | 9 +-------- .../__tests__/KnownArgumentNames-test.js | 9 +-------- .../__tests__/KnownDirectives-test.js | 9 +-------- .../__tests__/KnownFragmentNames-test.js | 9 +-------- .../__tests__/KnownTypeNames-test.js | 9 +-------- .../__tests__/LoneAnonymousOperation-test.js | 9 +-------- .../__tests__/LoneSchemaDefinition-test.js | 9 +-------- .../__tests__/NoFragmentCycles-test.js | 9 +-------- .../__tests__/NoUndefinedVariables-test.js | 9 +-------- .../__tests__/NoUnusedFragments-test.js | 9 +-------- .../__tests__/NoUnusedVariables-test.js | 9 +-------- .../OverlappingFieldsCanBeMerged-test.js | 9 +-------- .../__tests__/PossibleFragmentSpreads-test.js | 9 +-------- .../__tests__/PossibleTypeExtensions-test.js | 9 +-------- .../ProvidedRequiredArguments-test.js | 9 +-------- src/validation/__tests__/ScalarLeafs-test.js | 9 +-------- .../__tests__/SingleFieldSubscriptions-test.js | 9 +-------- .../__tests__/UniqueArgumentNames-test.js | 9 +-------- .../__tests__/UniqueDirectiveNames-test.js | 9 +-------- .../UniqueDirectivesPerLocation-test.js | 9 +-------- .../__tests__/UniqueEnumValueNames-test.js | 9 +-------- .../UniqueFieldDefinitionNames-test.js | 9 +-------- .../__tests__/UniqueFragmentNames-test.js | 9 +-------- .../__tests__/UniqueInputFieldNames-test.js | 9 +-------- .../__tests__/UniqueOperationNames-test.js | 9 +-------- .../__tests__/UniqueOperationTypes-test.js | 9 +-------- .../__tests__/UniqueTypeNames-test.js | 9 +-------- .../__tests__/UniqueVariableNames-test.js | 9 +-------- .../__tests__/ValuesOfCorrectType-test.js | 9 +-------- .../__tests__/VariablesAreInputTypes-test.js | 9 +-------- .../VariablesInAllowedPosition-test.js | 9 +-------- src/validation/__tests__/harness.js | 9 +-------- .../__tests__/validateGQL-benchmark.js | 9 +-------- .../__tests__/validateSDL-benchmark.js | 9 +-------- src/validation/__tests__/validation-test.js | 9 +-------- src/validation/index.js | 9 +-------- src/validation/rules/ExecutableDefinitions.js | 9 +-------- src/validation/rules/FieldsOnCorrectType.js | 9 +-------- .../rules/FragmentsOnCompositeTypes.js | 9 +-------- src/validation/rules/KnownArgumentNames.js | 9 +-------- src/validation/rules/KnownDirectives.js | 9 +-------- src/validation/rules/KnownFragmentNames.js | 9 +-------- src/validation/rules/KnownTypeNames.js | 9 +-------- src/validation/rules/LoneAnonymousOperation.js | 9 +-------- src/validation/rules/LoneSchemaDefinition.js | 9 +-------- src/validation/rules/NoFragmentCycles.js | 9 +-------- src/validation/rules/NoUndefinedVariables.js | 9 +-------- src/validation/rules/NoUnusedFragments.js | 9 +-------- src/validation/rules/NoUnusedVariables.js | 9 +-------- .../rules/OverlappingFieldsCanBeMerged.js | 9 +-------- .../rules/PossibleFragmentSpreads.js | 9 +-------- src/validation/rules/PossibleTypeExtensions.js | 9 +-------- .../rules/ProvidedRequiredArguments.js | 9 +-------- src/validation/rules/ScalarLeafs.js | 9 +-------- .../rules/SingleFieldSubscriptions.js | 9 +-------- src/validation/rules/UniqueArgumentNames.js | 9 +-------- src/validation/rules/UniqueDirectiveNames.js | 9 +-------- .../rules/UniqueDirectivesPerLocation.js | 9 +-------- src/validation/rules/UniqueEnumValueNames.js | 9 +-------- .../rules/UniqueFieldDefinitionNames.js | 9 +-------- src/validation/rules/UniqueFragmentNames.js | 9 +-------- src/validation/rules/UniqueInputFieldNames.js | 9 +-------- src/validation/rules/UniqueOperationNames.js | 9 +-------- src/validation/rules/UniqueOperationTypes.js | 9 +-------- src/validation/rules/UniqueTypeNames.js | 9 +-------- src/validation/rules/UniqueVariableNames.js | 9 +-------- src/validation/rules/ValuesOfCorrectType.js | 9 +-------- src/validation/rules/VariablesAreInputTypes.js | 9 +-------- .../rules/VariablesInAllowedPosition.js | 9 +-------- src/validation/specifiedRules.js | 9 +-------- src/validation/validate.js | 9 +-------- src/version.js | 9 +-------- 246 files changed, 245 insertions(+), 1949 deletions(-) diff --git a/.eslintrc.yml b/.eslintrc.yml index 59d0686f9a..94abd5462d 100644 --- a/.eslintrc.yml +++ b/.eslintrc.yml @@ -34,7 +34,7 @@ rules: flowtype/require-readonly-react-props: off flowtype/require-return-type: off flowtype/require-types-at-top: off - flowtype/require-valid-file-annotation: [error, always, { annotationStyle: block }] + flowtype/require-valid-file-annotation: [error, always, { annotationStyle: line }] flowtype/require-variable-type: off flowtype/sort-keys: off flowtype/spread-exact-type: off diff --git a/LICENSE b/LICENSE index b96dcb0480..cd2262e3a3 100644 --- a/LICENSE +++ b/LICENSE @@ -1,6 +1,6 @@ MIT License -Copyright (c) Facebook, Inc. and its affiliates. +Copyright (c) 2019 GraphQL Contributors Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal diff --git a/resources/benchmark.js b/resources/benchmark.js index 535852df8c..247536fc61 100644 --- a/resources/benchmark.js +++ b/resources/benchmark.js @@ -1,11 +1,4 @@ -/** - * Copyright (c) Facebook, Inc. and its affiliates. - * - * This source code is licensed under the MIT license found in the - * LICENSE file in the root directory of this source tree. - * - * @noflow - */ +// @noflow 'use strict'; diff --git a/resources/build.js b/resources/build.js index 716f9b4782..4eab0261af 100644 --- a/resources/build.js +++ b/resources/build.js @@ -1,11 +1,4 @@ -/** - * Copyright (c) Facebook, Inc. and its affiliates. - * - * This source code is licensed under the MIT license found in the - * LICENSE file in the root directory of this source tree. - * - * @noflow - */ +// @noflow 'use strict'; diff --git a/resources/check-cover.js b/resources/check-cover.js index 31d69963b9..9b0d3b6839 100644 --- a/resources/check-cover.js +++ b/resources/check-cover.js @@ -1,11 +1,4 @@ -/** - * Copyright (c) Facebook, Inc. and its affiliates. - * - * This source code is licensed under the MIT license found in the - * LICENSE file in the root directory of this source tree. - * - * @noflow - */ +// @noflow 'use strict'; diff --git a/resources/gen-changelog.js b/resources/gen-changelog.js index db1fd5e625..32b6a4f763 100644 --- a/resources/gen-changelog.js +++ b/resources/gen-changelog.js @@ -1,4 +1,4 @@ -/* @noflow */ +// @noflow 'use strict'; diff --git a/resources/gen-version.js b/resources/gen-version.js index 2b72131627..382b874881 100644 --- a/resources/gen-version.js +++ b/resources/gen-version.js @@ -1,11 +1,4 @@ -/** - * Copyright (c) Facebook, Inc. and its affiliates. - * - * This source code is licensed under the MIT license found in the - * LICENSE file in the root directory of this source tree. - * - * @noflow - */ +// @noflow 'use strict'; @@ -13,14 +6,7 @@ const { version } = require('../package.json'); const { writeFile, parseSemver } = require('./utils'); const versionInfo = parseSemver(version); -const body = `/** - * Copyright (c) Facebook, Inc. and its affiliates. - * - * This source code is licensed under the MIT license found in the - * LICENSE file in the root directory of this source tree. - * - * @flow strict - */ +const body = `// @flow strict /** * Note: This file is autogenerated using "resources/gen-version.js" script and diff --git a/resources/inline-invariant.js b/resources/inline-invariant.js index c5299ae391..c2d3a9cdd5 100644 --- a/resources/inline-invariant.js +++ b/resources/inline-invariant.js @@ -1,11 +1,4 @@ -/** - * Copyright (c) Facebook, Inc. and its affiliates. - * - * This source code is licensed under the MIT license found in the - * LICENSE file in the root directory of this source tree. - * - * @noflow - */ +// @noflow 'use strict'; diff --git a/resources/utils.js b/resources/utils.js index 0d55381fcf..75df766d00 100644 --- a/resources/utils.js +++ b/resources/utils.js @@ -1,11 +1,4 @@ -/** - * Copyright (c) Facebook, Inc. and its affiliates. - * - * This source code is licensed under the MIT license found in the - * LICENSE file in the root directory of this source tree. - * - * @noflow - */ +// @noflow 'use strict'; diff --git a/src/__fixtures__/index.js b/src/__fixtures__/index.js index a22a3636c2..ff912f40a5 100644 --- a/src/__fixtures__/index.js +++ b/src/__fixtures__/index.js @@ -1,11 +1,4 @@ -/** - * Copyright (c) Facebook, Inc. and its affiliates. - * - * This source code is licensed under the MIT license found in the - * LICENSE file in the root directory of this source tree. - * - * @flow strict - */ +// @flow strict import { join } from 'path'; import { readFileSync } from 'fs'; diff --git a/src/__fixtures__/kitchen-sink.graphql b/src/__fixtures__/kitchen-sink.graphql index 995ce3679a..d71c52cede 100644 --- a/src/__fixtures__/kitchen-sink.graphql +++ b/src/__fixtures__/kitchen-sink.graphql @@ -1,8 +1,3 @@ -# Copyright (c) Facebook, Inc. and its affiliates. -# -# This source code is licensed under the MIT license found in the -# LICENSE file in the root directory of this source tree. - query queryName($foo: ComplexType, $site: Site = MOBILE) @onQuery { whoever123is: node(id: [123, 456]) { id , diff --git a/src/__fixtures__/schema-kitchen-sink.graphql b/src/__fixtures__/schema-kitchen-sink.graphql index ca55eec2b8..648f9200f6 100644 --- a/src/__fixtures__/schema-kitchen-sink.graphql +++ b/src/__fixtures__/schema-kitchen-sink.graphql @@ -1,8 +1,3 @@ -# Copyright (c) Facebook, Inc. and its affiliates. -# -# This source code is licensed under the MIT license found in the -# LICENSE file in the root directory of this source tree. - schema { query: QueryType mutation: MutationType diff --git a/src/__tests__/starWarsData.js b/src/__tests__/starWarsData.js index 36d032f020..6885bcc849 100644 --- a/src/__tests__/starWarsData.js +++ b/src/__tests__/starWarsData.js @@ -1,11 +1,4 @@ -/** - * Copyright (c) Facebook, Inc. and its affiliates. - * - * This source code is licensed under the MIT license found in the - * LICENSE file in the root directory of this source tree. - * - * @flow strict - */ +// @flow strict /** * This defines a basic set of data for our Star Wars Schema. diff --git a/src/__tests__/starWarsIntrospection-test.js b/src/__tests__/starWarsIntrospection-test.js index de4e665b10..39d4ba1142 100644 --- a/src/__tests__/starWarsIntrospection-test.js +++ b/src/__tests__/starWarsIntrospection-test.js @@ -1,11 +1,4 @@ -/** - * Copyright (c) Facebook, Inc. and its affiliates. - * - * This source code is licensed under the MIT license found in the - * LICENSE file in the root directory of this source tree. - * - * @flow strict - */ +// @flow strict import { expect } from 'chai'; import { describe, it } from 'mocha'; diff --git a/src/__tests__/starWarsQuery-test.js b/src/__tests__/starWarsQuery-test.js index d0781216fe..d49cbde572 100644 --- a/src/__tests__/starWarsQuery-test.js +++ b/src/__tests__/starWarsQuery-test.js @@ -1,11 +1,4 @@ -/** - * Copyright (c) Facebook, Inc. and its affiliates. - * - * This source code is licensed under the MIT license found in the - * LICENSE file in the root directory of this source tree. - * - * @flow strict - */ +// @flow strict import { expect } from 'chai'; import { describe, it } from 'mocha'; diff --git a/src/__tests__/starWarsSchema.js b/src/__tests__/starWarsSchema.js index 0b89abb909..e4650d5ae7 100644 --- a/src/__tests__/starWarsSchema.js +++ b/src/__tests__/starWarsSchema.js @@ -1,11 +1,4 @@ -/** - * Copyright (c) Facebook, Inc. and its affiliates. - * - * This source code is licensed under the MIT license found in the - * LICENSE file in the root directory of this source tree. - * - * @flow strict - */ +// @flow strict import { GraphQLEnumType, diff --git a/src/__tests__/starWarsValidation-test.js b/src/__tests__/starWarsValidation-test.js index a653bfcdb2..ff1fd58b7e 100644 --- a/src/__tests__/starWarsValidation-test.js +++ b/src/__tests__/starWarsValidation-test.js @@ -1,11 +1,4 @@ -/** - * Copyright (c) Facebook, Inc. and its affiliates. - * - * This source code is licensed under the MIT license found in the - * LICENSE file in the root directory of this source tree. - * - * @flow strict - */ +// @flow strict import { expect } from 'chai'; import { describe, it } from 'mocha'; diff --git a/src/__tests__/version-test.js b/src/__tests__/version-test.js index 5b6eccf682..671d3709bc 100644 --- a/src/__tests__/version-test.js +++ b/src/__tests__/version-test.js @@ -1,11 +1,4 @@ -/** - * Copyright (c) Facebook, Inc. and its affiliates. - * - * This source code is licensed under the MIT license found in the - * LICENSE file in the root directory of this source tree. - * - * @flow strict - */ +// @flow strict import { expect } from 'chai'; import { describe, it } from 'mocha'; diff --git a/src/error/GraphQLError.js b/src/error/GraphQLError.js index 175eb72b01..fbfb29d9eb 100644 --- a/src/error/GraphQLError.js +++ b/src/error/GraphQLError.js @@ -1,11 +1,4 @@ -/** - * Copyright (c) Facebook, Inc. and its affiliates. - * - * This source code is licensed under the MIT license found in the - * LICENSE file in the root directory of this source tree. - * - * @flow strict - */ +// @flow strict import { printError } from './printError'; import { type ASTNode } from '../language/ast'; diff --git a/src/error/__tests__/GraphQLError-test.js b/src/error/__tests__/GraphQLError-test.js index 15d2362749..1d51c3a196 100644 --- a/src/error/__tests__/GraphQLError-test.js +++ b/src/error/__tests__/GraphQLError-test.js @@ -1,11 +1,4 @@ -/** - * Copyright (c) Facebook, Inc. and its affiliates. - * - * This source code is licensed under the MIT license found in the - * LICENSE file in the root directory of this source tree. - * - * @flow strict - */ +// @flow strict import { expect } from 'chai'; import { describe, it } from 'mocha'; diff --git a/src/error/__tests__/locatedError-test.js b/src/error/__tests__/locatedError-test.js index 77aaab2465..998d3517f0 100644 --- a/src/error/__tests__/locatedError-test.js +++ b/src/error/__tests__/locatedError-test.js @@ -1,11 +1,4 @@ -/** - * Copyright (c) Facebook, Inc. and its affiliates. - * - * This source code is licensed under the MIT license found in the - * LICENSE file in the root directory of this source tree. - * - * @flow strict - */ +// @flow strict import { expect } from 'chai'; import { describe, it } from 'mocha'; diff --git a/src/error/__tests__/printError-test.js b/src/error/__tests__/printError-test.js index a67a45dff2..89cf3b7ca3 100644 --- a/src/error/__tests__/printError-test.js +++ b/src/error/__tests__/printError-test.js @@ -1,11 +1,4 @@ -/** - * Copyright (c) Facebook, Inc. and its affiliates. - * - * This source code is licensed under the MIT license found in the - * LICENSE file in the root directory of this source tree. - * - * @flow strict - */ +// @flow strict import { expect } from 'chai'; import { describe, it } from 'mocha'; diff --git a/src/error/formatError.js b/src/error/formatError.js index d5ea1b9e58..61d874e029 100644 --- a/src/error/formatError.js +++ b/src/error/formatError.js @@ -1,11 +1,4 @@ -/** - * Copyright (c) Facebook, Inc. and its affiliates. - * - * This source code is licensed under the MIT license found in the - * LICENSE file in the root directory of this source tree. - * - * @flow strict - */ +// @flow strict import invariant from '../jsutils/invariant'; import { type GraphQLError } from './GraphQLError'; diff --git a/src/error/index.js b/src/error/index.js index 70705ffdd0..1588347424 100644 --- a/src/error/index.js +++ b/src/error/index.js @@ -1,11 +1,4 @@ -/** - * Copyright (c) Facebook, Inc. and its affiliates. - * - * This source code is licensed under the MIT license found in the - * LICENSE file in the root directory of this source tree. - * - * @flow strict - */ +// @flow strict export { GraphQLError } from './GraphQLError'; diff --git a/src/error/locatedError.js b/src/error/locatedError.js index fb8ff62414..955772e67e 100644 --- a/src/error/locatedError.js +++ b/src/error/locatedError.js @@ -1,11 +1,4 @@ -/** - * Copyright (c) Facebook, Inc. and its affiliates. - * - * This source code is licensed under the MIT license found in the - * LICENSE file in the root directory of this source tree. - * - * @flow strict - */ +// @flow strict import { GraphQLError } from './GraphQLError'; import { type ASTNode } from '../language/ast'; diff --git a/src/error/printError.js b/src/error/printError.js index dca61dd4e5..f83a4fe775 100644 --- a/src/error/printError.js +++ b/src/error/printError.js @@ -1,11 +1,4 @@ -/** - * Copyright (c) Facebook, Inc. and its affiliates. - * - * This source code is licensed under the MIT license found in the - * LICENSE file in the root directory of this source tree. - * - * @flow strict - */ +// @flow strict import { type SourceLocation, getLocation } from '../language/location'; import { type Source } from '../language/source'; diff --git a/src/error/syntaxError.js b/src/error/syntaxError.js index 47f8b75f44..a0b88cb01e 100644 --- a/src/error/syntaxError.js +++ b/src/error/syntaxError.js @@ -1,11 +1,4 @@ -/** - * Copyright (c) Facebook, Inc. and its affiliates. - * - * This source code is licensed under the MIT license found in the - * LICENSE file in the root directory of this source tree. - * - * @flow strict - */ +// @flow strict import { type Source } from '../language/source'; import { GraphQLError } from './GraphQLError'; diff --git a/src/execution/__tests__/abstract-promise-test.js b/src/execution/__tests__/abstract-promise-test.js index aa9b1a8c9a..eb1c5c382b 100644 --- a/src/execution/__tests__/abstract-promise-test.js +++ b/src/execution/__tests__/abstract-promise-test.js @@ -1,11 +1,4 @@ -/** - * Copyright (c) Facebook, Inc. and its affiliates. - * - * This source code is licensed under the MIT license found in the - * LICENSE file in the root directory of this source tree. - * - * @flow strict - */ +// @flow strict import { expect } from 'chai'; import { describe, it } from 'mocha'; diff --git a/src/execution/__tests__/abstract-test.js b/src/execution/__tests__/abstract-test.js index f126747d20..9f75d705bf 100644 --- a/src/execution/__tests__/abstract-test.js +++ b/src/execution/__tests__/abstract-test.js @@ -1,11 +1,4 @@ -/** - * Copyright (c) Facebook, Inc. and its affiliates. - * - * This source code is licensed under the MIT license found in the - * LICENSE file in the root directory of this source tree. - * - * @flow strict - */ +// @flow strict import { expect } from 'chai'; import { describe, it } from 'mocha'; diff --git a/src/execution/__tests__/directives-test.js b/src/execution/__tests__/directives-test.js index e6dcb11ca8..3bafa0a430 100644 --- a/src/execution/__tests__/directives-test.js +++ b/src/execution/__tests__/directives-test.js @@ -1,11 +1,4 @@ -/** - * Copyright (c) Facebook, Inc. and its affiliates. - * - * This source code is licensed under the MIT license found in the - * LICENSE file in the root directory of this source tree. - * - * @flow strict - */ +// @flow strict import { expect } from 'chai'; import { execute } from '../execute'; diff --git a/src/execution/__tests__/executor-test.js b/src/execution/__tests__/executor-test.js index a8c0296c15..7a0fb9750a 100644 --- a/src/execution/__tests__/executor-test.js +++ b/src/execution/__tests__/executor-test.js @@ -1,11 +1,4 @@ -/** - * Copyright (c) Facebook, Inc. and its affiliates. - * - * This source code is licensed under the MIT license found in the - * LICENSE file in the root directory of this source tree. - * - * @flow strict - */ +// @flow strict import { expect } from 'chai'; import { describe, it } from 'mocha'; diff --git a/src/execution/__tests__/lists-test.js b/src/execution/__tests__/lists-test.js index fa3ab71d7e..2e9966b1dd 100644 --- a/src/execution/__tests__/lists-test.js +++ b/src/execution/__tests__/lists-test.js @@ -1,11 +1,4 @@ -/** - * Copyright (c) Facebook, Inc. and its affiliates. - * - * This source code is licensed under the MIT license found in the - * LICENSE file in the root directory of this source tree. - * - * @flow strict - */ +// @flow strict import { expect } from 'chai'; import { describe, it } from 'mocha'; diff --git a/src/execution/__tests__/mutations-test.js b/src/execution/__tests__/mutations-test.js index 508bec8799..d9f548b945 100644 --- a/src/execution/__tests__/mutations-test.js +++ b/src/execution/__tests__/mutations-test.js @@ -1,11 +1,4 @@ -/** - * Copyright (c) Facebook, Inc. and its affiliates. - * - * This source code is licensed under the MIT license found in the - * LICENSE file in the root directory of this source tree. - * - * @flow strict - */ +// @flow strict import { expect } from 'chai'; import { describe, it } from 'mocha'; diff --git a/src/execution/__tests__/nonnull-test.js b/src/execution/__tests__/nonnull-test.js index 5deaeb987e..f85f22a198 100644 --- a/src/execution/__tests__/nonnull-test.js +++ b/src/execution/__tests__/nonnull-test.js @@ -1,11 +1,4 @@ -/** - * Copyright (c) Facebook, Inc. and its affiliates. - * - * This source code is licensed under the MIT license found in the - * LICENSE file in the root directory of this source tree. - * - * @flow strict - */ +// @flow strict import { expect } from 'chai'; import { describe, it } from 'mocha'; diff --git a/src/execution/__tests__/resolve-test.js b/src/execution/__tests__/resolve-test.js index 8be2f215d8..8a161331fa 100644 --- a/src/execution/__tests__/resolve-test.js +++ b/src/execution/__tests__/resolve-test.js @@ -1,11 +1,4 @@ -/** - * Copyright (c) Facebook, Inc. and its affiliates. - * - * This source code is licensed under the MIT license found in the - * LICENSE file in the root directory of this source tree. - * - * @flow strict - */ +// @flow strict import { expect } from 'chai'; import { describe, it } from 'mocha'; diff --git a/src/execution/__tests__/schema-test.js b/src/execution/__tests__/schema-test.js index d5d5fb9140..a6d56989ff 100644 --- a/src/execution/__tests__/schema-test.js +++ b/src/execution/__tests__/schema-test.js @@ -1,11 +1,4 @@ -/** - * Copyright (c) Facebook, Inc. and its affiliates. - * - * This source code is licensed under the MIT license found in the - * LICENSE file in the root directory of this source tree. - * - * @flow strict - */ +// @flow strict import { expect } from 'chai'; import { describe, it } from 'mocha'; diff --git a/src/execution/__tests__/sync-test.js b/src/execution/__tests__/sync-test.js index 6ee8a004b2..c489e8d684 100644 --- a/src/execution/__tests__/sync-test.js +++ b/src/execution/__tests__/sync-test.js @@ -1,11 +1,4 @@ -/** - * Copyright (c) Facebook, Inc. and its affiliates. - * - * This source code is licensed under the MIT license found in the - * LICENSE file in the root directory of this source tree. - * - * @flow strict - */ +// @flow strict import { expect } from 'chai'; import { describe, it } from 'mocha'; diff --git a/src/execution/__tests__/union-interface-test.js b/src/execution/__tests__/union-interface-test.js index 6ada22ddd9..e462eb52f0 100644 --- a/src/execution/__tests__/union-interface-test.js +++ b/src/execution/__tests__/union-interface-test.js @@ -1,11 +1,4 @@ -/** - * Copyright (c) Facebook, Inc. and its affiliates. - * - * This source code is licensed under the MIT license found in the - * LICENSE file in the root directory of this source tree. - * - * @flow strict - */ +// @flow strict import { expect } from 'chai'; import { describe, it } from 'mocha'; diff --git a/src/execution/__tests__/variables-test.js b/src/execution/__tests__/variables-test.js index e7afe731e6..33fafeeb5d 100644 --- a/src/execution/__tests__/variables-test.js +++ b/src/execution/__tests__/variables-test.js @@ -1,11 +1,4 @@ -/** - * Copyright (c) Facebook, Inc. and its affiliates. - * - * This source code is licensed under the MIT license found in the - * LICENSE file in the root directory of this source tree. - * - * @flow strict - */ +// @flow strict import inspect from '../../jsutils/inspect'; import { expect } from 'chai'; diff --git a/src/execution/execute.js b/src/execution/execute.js index 6539617858..5742f22d6e 100644 --- a/src/execution/execute.js +++ b/src/execution/execute.js @@ -1,11 +1,4 @@ -/** - * Copyright (c) Facebook, Inc. and its affiliates. - * - * This source code is licensed under the MIT license found in the - * LICENSE file in the root directory of this source tree. - * - * @flow strict - */ +// @flow strict import { forEach, isCollection } from 'iterall'; import { GraphQLError } from '../error/GraphQLError'; diff --git a/src/execution/index.js b/src/execution/index.js index 27b6e0b805..3da79ecbe0 100644 --- a/src/execution/index.js +++ b/src/execution/index.js @@ -1,11 +1,4 @@ -/** - * Copyright (c) Facebook, Inc. and its affiliates. - * - * This source code is licensed under the MIT license found in the - * LICENSE file in the root directory of this source tree. - * - * @flow strict - */ +// @flow strict export { execute, diff --git a/src/execution/values.js b/src/execution/values.js index 3c88cf4a04..88381f1a4c 100644 --- a/src/execution/values.js +++ b/src/execution/values.js @@ -1,11 +1,4 @@ -/** - * Copyright (c) Facebook, Inc. and its affiliates. - * - * This source code is licensed under the MIT license found in the - * LICENSE file in the root directory of this source tree. - * - * @flow strict - */ +// @flow strict import find from '../polyfills/find'; import { GraphQLError } from '../error/GraphQLError'; diff --git a/src/graphql.js b/src/graphql.js index 5eb663379c..4690abbc95 100644 --- a/src/graphql.js +++ b/src/graphql.js @@ -1,11 +1,4 @@ -/** - * Copyright (c) Facebook, Inc. and its affiliates. - * - * This source code is licensed under the MIT license found in the - * LICENSE file in the root directory of this source tree. - * - * @flow strict - */ +// @flow strict import isPromise from './jsutils/isPromise'; import { validateSchema } from './type/validate'; diff --git a/src/index.js b/src/index.js index 940878896c..117a7a7c49 100644 --- a/src/index.js +++ b/src/index.js @@ -1,11 +1,4 @@ -/** - * Copyright (c) Facebook, Inc. and its affiliates. - * - * This source code is licensed under the MIT license found in the - * LICENSE file in the root directory of this source tree. - * - * @flow strict - */ +// @flow strict /** * GraphQL.js provides a reference implementation for the GraphQL specification diff --git a/src/jsutils/ObjMap.js b/src/jsutils/ObjMap.js index 1dfa984189..8ea39de7b9 100644 --- a/src/jsutils/ObjMap.js +++ b/src/jsutils/ObjMap.js @@ -1,10 +1,3 @@ -/** - * Copyright (c) Facebook, Inc. and its affiliates. - * - * This source code is licensed under the MIT license found in the - * LICENSE file in the root directory of this source tree. - * - * @flow strict - */ +// @flow strict export type ObjMap = { [key: string]: T, __proto__: null }; diff --git a/src/jsutils/PromiseOrValue.js b/src/jsutils/PromiseOrValue.js index cc4f0419fe..2d37412289 100644 --- a/src/jsutils/PromiseOrValue.js +++ b/src/jsutils/PromiseOrValue.js @@ -1,10 +1,3 @@ -/** - * Copyright (c) Facebook, Inc. and its affiliates. - * - * This source code is licensed under the MIT license found in the - * LICENSE file in the root directory of this source tree. - * - * @flow strict - */ +// @flow strict export type PromiseOrValue<+T> = Promise | T; diff --git a/src/jsutils/__tests__/dedent-test.js b/src/jsutils/__tests__/dedent-test.js index 38e9b04456..2c306664e4 100644 --- a/src/jsutils/__tests__/dedent-test.js +++ b/src/jsutils/__tests__/dedent-test.js @@ -1,11 +1,4 @@ -/** - * Copyright (c) Facebook, Inc. and its affiliates. - * - * This source code is licensed under the MIT license found in the - * LICENSE file in the root directory of this source tree. - * - * @flow strict - */ +// @flow strict import { expect } from 'chai'; import { describe, it } from 'mocha'; diff --git a/src/jsutils/__tests__/didYouMean-test.js b/src/jsutils/__tests__/didYouMean-test.js index 37dc0ce41f..8d06f35848 100644 --- a/src/jsutils/__tests__/didYouMean-test.js +++ b/src/jsutils/__tests__/didYouMean-test.js @@ -1,11 +1,4 @@ -/** - * Copyright (c) Facebook, Inc. and its affiliates. - * - * This source code is licensed under the MIT license found in the - * LICENSE file in the root directory of this source tree. - * - * @flow strict - */ +// @flow strict import { expect } from 'chai'; import { describe, it } from 'mocha'; diff --git a/src/jsutils/__tests__/identityFunc-test.js b/src/jsutils/__tests__/identityFunc-test.js index b6a51dee08..ecab946dd7 100644 --- a/src/jsutils/__tests__/identityFunc-test.js +++ b/src/jsutils/__tests__/identityFunc-test.js @@ -1,11 +1,4 @@ -/** - * Copyright (c) Facebook, Inc. and its affiliates. - * - * This source code is licensed under the MIT license found in the - * LICENSE file in the root directory of this source tree. - * - * @flow strict - */ +// @flow strict import { expect } from 'chai'; import { describe, it } from 'mocha'; diff --git a/src/jsutils/__tests__/inspect-test.js b/src/jsutils/__tests__/inspect-test.js index d1bfe89d25..120a4769fd 100644 --- a/src/jsutils/__tests__/inspect-test.js +++ b/src/jsutils/__tests__/inspect-test.js @@ -1,11 +1,4 @@ -/** - * Copyright (c) Facebook, Inc. and its affiliates. - * - * This source code is licensed under the MIT license found in the - * LICENSE file in the root directory of this source tree. - * - * @flow strict - */ +// @flow strict import { expect } from 'chai'; import { describe, it } from 'mocha'; diff --git a/src/jsutils/__tests__/instanceOf-test.js b/src/jsutils/__tests__/instanceOf-test.js index e5d0bb2010..01d24bac8e 100644 --- a/src/jsutils/__tests__/instanceOf-test.js +++ b/src/jsutils/__tests__/instanceOf-test.js @@ -1,11 +1,4 @@ -/** - * Copyright (c) Facebook, Inc. and its affiliates. - * - * This source code is licensed under the MIT license found in the - * LICENSE file in the root directory of this source tree. - * - * @flow strict - */ +// @flow strict import { expect } from 'chai'; import { describe, it } from 'mocha'; diff --git a/src/jsutils/__tests__/suggestionList-test.js b/src/jsutils/__tests__/suggestionList-test.js index c5c6713157..4a70272e1f 100644 --- a/src/jsutils/__tests__/suggestionList-test.js +++ b/src/jsutils/__tests__/suggestionList-test.js @@ -1,11 +1,4 @@ -/** - * Copyright (c) Facebook, Inc. and its affiliates. - * - * This source code is licensed under the MIT license found in the - * LICENSE file in the root directory of this source tree. - * - * @flow strict - */ +// @flow strict import { expect } from 'chai'; import { describe, it } from 'mocha'; diff --git a/src/jsutils/dedent.js b/src/jsutils/dedent.js index ee6dff8f0e..0301f99972 100644 --- a/src/jsutils/dedent.js +++ b/src/jsutils/dedent.js @@ -1,11 +1,4 @@ -/** - * Copyright (c) Facebook, Inc. and its affiliates. - * - * This source code is licensed under the MIT license found in the - * LICENSE file in the root directory of this source tree. - * - * @flow strict - */ +// @flow strict import invariant from './invariant'; diff --git a/src/jsutils/defineToJSON.js b/src/jsutils/defineToJSON.js index 095b1c3f7f..2d64c912c4 100644 --- a/src/jsutils/defineToJSON.js +++ b/src/jsutils/defineToJSON.js @@ -1,11 +1,4 @@ -/** - * Copyright (c) Facebook, Inc. and its affiliates. - * - * This source code is licensed under the MIT license found in the - * LICENSE file in the root directory of this source tree. - * - * @flow strict - */ +// @flow strict import nodejsCustomInspectSymbol from './nodejsCustomInspectSymbol'; diff --git a/src/jsutils/defineToStringTag.js b/src/jsutils/defineToStringTag.js index 98f1489767..f14c3308ba 100644 --- a/src/jsutils/defineToStringTag.js +++ b/src/jsutils/defineToStringTag.js @@ -1,11 +1,4 @@ -/** - * Copyright (c) Facebook, Inc. and its affiliates. - * - * This source code is licensed under the MIT license found in the - * LICENSE file in the root directory of this source tree. - * - * @flow strict - */ +// @flow strict /** * The `defineToStringTag()` function checks first to see if the runtime diff --git a/src/jsutils/didYouMean.js b/src/jsutils/didYouMean.js index 5a9da1b84a..c000dd20e7 100644 --- a/src/jsutils/didYouMean.js +++ b/src/jsutils/didYouMean.js @@ -1,11 +1,4 @@ -/** - * Copyright (c) Facebook, Inc. and its affiliates. - * - * This source code is licensed under the MIT license found in the - * LICENSE file in the root directory of this source tree. - * - * @flow strict - */ +// @flow strict const MAX_SUGGESTIONS = 5; diff --git a/src/jsutils/identityFunc.js b/src/jsutils/identityFunc.js index dbdb90cbd1..5cf7c4c33b 100644 --- a/src/jsutils/identityFunc.js +++ b/src/jsutils/identityFunc.js @@ -1,11 +1,4 @@ -/** - * Copyright (c) Facebook, Inc. and its affiliates. - * - * This source code is licensed under the MIT license found in the - * LICENSE file in the root directory of this source tree. - * - * @flow strict - */ +// @flow strict /** * Returns the first argument it receives. diff --git a/src/jsutils/inspect.js b/src/jsutils/inspect.js index c5642b4d03..ac279d1681 100644 --- a/src/jsutils/inspect.js +++ b/src/jsutils/inspect.js @@ -1,11 +1,4 @@ -/** - * Copyright (c) Facebook, Inc. and its affiliates. - * - * This source code is licensed under the MIT license found in the - * LICENSE file in the root directory of this source tree. - * - * @flow strict - */ +// @flow strict import nodejsCustomInspectSymbol from './nodejsCustomInspectSymbol'; diff --git a/src/jsutils/instanceOf.js b/src/jsutils/instanceOf.js index 1aeee379f9..967969ab21 100644 --- a/src/jsutils/instanceOf.js +++ b/src/jsutils/instanceOf.js @@ -1,11 +1,4 @@ -/** - * Copyright (c) Facebook, Inc. and its affiliates. - * - * This source code is licensed under the MIT license found in the - * LICENSE file in the root directory of this source tree. - * - * @flow strict - */ +// @flow strict /** * A replacement for instanceof which includes an error warning when multi-realm diff --git a/src/jsutils/invariant.js b/src/jsutils/invariant.js index 350cff5b86..083c6b0997 100644 --- a/src/jsutils/invariant.js +++ b/src/jsutils/invariant.js @@ -1,11 +1,4 @@ -/** - * Copyright (c) Facebook, Inc. and its affiliates. - * - * This source code is licensed under the MIT license found in the - * LICENSE file in the root directory of this source tree. - * - * @flow strict - */ +// @flow strict export default function invariant(condition: mixed, message: string) { const booleanCondition = Boolean(condition); diff --git a/src/jsutils/isInvalid.js b/src/jsutils/isInvalid.js index 40a239c9de..5aa7799a32 100644 --- a/src/jsutils/isInvalid.js +++ b/src/jsutils/isInvalid.js @@ -1,11 +1,4 @@ -/** - * Copyright (c) Facebook, Inc. and its affiliates. - * - * This source code is licensed under the MIT license found in the - * LICENSE file in the root directory of this source tree. - * - * @flow strict - */ +// @flow strict /** * Returns true if a value is undefined, or NaN. diff --git a/src/jsutils/isNullish.js b/src/jsutils/isNullish.js index dc9f4e49b9..8026ee83a3 100644 --- a/src/jsutils/isNullish.js +++ b/src/jsutils/isNullish.js @@ -1,11 +1,4 @@ -/** - * Copyright (c) Facebook, Inc. and its affiliates. - * - * This source code is licensed under the MIT license found in the - * LICENSE file in the root directory of this source tree. - * - * @flow strict - */ +// @flow strict /** * Returns true if a value is null, undefined, or NaN. diff --git a/src/jsutils/isPromise.js b/src/jsutils/isPromise.js index 368e9a03d4..f1d5add8a6 100644 --- a/src/jsutils/isPromise.js +++ b/src/jsutils/isPromise.js @@ -1,11 +1,4 @@ -/** - * Copyright (c) Facebook, Inc. and its affiliates. - * - * This source code is licensed under the MIT license found in the - * LICENSE file in the root directory of this source tree. - * - * @flow strict - */ +// @flow strict /** * Returns true if the value acts like a Promise, i.e. has a "then" function, diff --git a/src/jsutils/keyMap.js b/src/jsutils/keyMap.js index d181b2de3f..410dad4370 100644 --- a/src/jsutils/keyMap.js +++ b/src/jsutils/keyMap.js @@ -1,11 +1,4 @@ -/** - * Copyright (c) Facebook, Inc. and its affiliates. - * - * This source code is licensed under the MIT license found in the - * LICENSE file in the root directory of this source tree. - * - * @flow strict - */ +// @flow strict import { type ObjMap } from './ObjMap'; diff --git a/src/jsutils/keyValMap.js b/src/jsutils/keyValMap.js index 772b43b00b..6f6e703aaa 100644 --- a/src/jsutils/keyValMap.js +++ b/src/jsutils/keyValMap.js @@ -1,11 +1,4 @@ -/** - * Copyright (c) Facebook, Inc. and its affiliates. - * - * This source code is licensed under the MIT license found in the - * LICENSE file in the root directory of this source tree. - * - * @flow strict - */ +// @flow strict import { type ObjMap } from './ObjMap'; diff --git a/src/jsutils/mapValue.js b/src/jsutils/mapValue.js index 7661b14885..1f2d4aae38 100644 --- a/src/jsutils/mapValue.js +++ b/src/jsutils/mapValue.js @@ -1,11 +1,4 @@ -/** - * Copyright (c) Facebook, Inc. and its affiliates. - * - * This source code is licensed under the MIT license found in the - * LICENSE file in the root directory of this source tree. - * - * @flow strict - */ +// @flow strict import { type ObjMap } from './ObjMap'; import objectEntries from '../polyfills/objectEntries'; diff --git a/src/jsutils/memoize3.js b/src/jsutils/memoize3.js index 53ee23df6b..366be493fc 100644 --- a/src/jsutils/memoize3.js +++ b/src/jsutils/memoize3.js @@ -1,11 +1,4 @@ -/** - * Copyright (c) Facebook, Inc. and its affiliates. - * - * This source code is licensed under the MIT license found in the - * LICENSE file in the root directory of this source tree. - * - * @flow strict - */ +// @flow strict /** * Memoizes the provided three-argument function. diff --git a/src/jsutils/nodejsCustomInspectSymbol.js b/src/jsutils/nodejsCustomInspectSymbol.js index 8b587d8763..e98fece618 100644 --- a/src/jsutils/nodejsCustomInspectSymbol.js +++ b/src/jsutils/nodejsCustomInspectSymbol.js @@ -1,11 +1,4 @@ -/** - * Copyright (c) Facebook, Inc. and its affiliates. - * - * This source code is licensed under the MIT license found in the - * LICENSE file in the root directory of this source tree. - * - * @flow strict - */ +// @flow strict const nodejsCustomInspectSymbol = typeof Symbol === 'function' diff --git a/src/jsutils/promiseForObject.js b/src/jsutils/promiseForObject.js index ed5b15de7e..b0afd8b679 100644 --- a/src/jsutils/promiseForObject.js +++ b/src/jsutils/promiseForObject.js @@ -1,11 +1,4 @@ -/** - * Copyright (c) Facebook, Inc. and its affiliates. - * - * This source code is licensed under the MIT license found in the - * LICENSE file in the root directory of this source tree. - * - * @flow strict - */ +// @flow strict import { type ObjMap } from './ObjMap'; diff --git a/src/jsutils/promiseReduce.js b/src/jsutils/promiseReduce.js index 4be5341c6a..22abbd55af 100644 --- a/src/jsutils/promiseReduce.js +++ b/src/jsutils/promiseReduce.js @@ -1,11 +1,4 @@ -/** - * Copyright (c) Facebook, Inc. and its affiliates. - * - * This source code is licensed under the MIT license found in the - * LICENSE file in the root directory of this source tree. - * - * @flow strict - */ +// @flow strict import isPromise from './isPromise'; import { type PromiseOrValue } from './PromiseOrValue'; diff --git a/src/jsutils/suggestionList.js b/src/jsutils/suggestionList.js index 7e6bcbeb4a..c42dff8f02 100644 --- a/src/jsutils/suggestionList.js +++ b/src/jsutils/suggestionList.js @@ -1,11 +1,4 @@ -/** - * Copyright (c) Facebook, Inc. and its affiliates. - * - * This source code is licensed under the MIT license found in the - * LICENSE file in the root directory of this source tree. - * - * @flow strict - */ +// @flow strict /** * Given an invalid input string and a list of valid options, returns a filtered diff --git a/src/language/__tests__/blockString-test.js b/src/language/__tests__/blockString-test.js index baced7f70d..ed478d6812 100644 --- a/src/language/__tests__/blockString-test.js +++ b/src/language/__tests__/blockString-test.js @@ -1,11 +1,4 @@ -/** - * Copyright (c) Facebook, Inc. and its affiliates. - * - * This source code is licensed under the MIT license found in the - * LICENSE file in the root directory of this source tree. - * - * @flow strict - */ +// @flow strict import { expect } from 'chai'; import { describe, it } from 'mocha'; diff --git a/src/language/__tests__/lexer-test.js b/src/language/__tests__/lexer-test.js index 50da874763..6c1b23c554 100644 --- a/src/language/__tests__/lexer-test.js +++ b/src/language/__tests__/lexer-test.js @@ -1,11 +1,4 @@ -/** - * Copyright (c) Facebook, Inc. and its affiliates. - * - * This source code is licensed under the MIT license found in the - * LICENSE file in the root directory of this source tree. - * - * @flow strict - */ +// @flow strict import { inspect as nodeInspect } from 'util'; diff --git a/src/language/__tests__/parser-benchmark.js b/src/language/__tests__/parser-benchmark.js index 69902a03ca..9f301af59e 100644 --- a/src/language/__tests__/parser-benchmark.js +++ b/src/language/__tests__/parser-benchmark.js @@ -1,11 +1,4 @@ -/** - * Copyright (c) Facebook, Inc. and its affiliates. - * - * This source code is licensed under the MIT license found in the - * LICENSE file in the root directory of this source tree. - * - * @flow strict - */ +// @flow strict import { kitchenSinkQuery } from '../../__fixtures__'; import { parse } from '../parser'; diff --git a/src/language/__tests__/parser-test.js b/src/language/__tests__/parser-test.js index 9729b7d656..7e879659e2 100644 --- a/src/language/__tests__/parser-test.js +++ b/src/language/__tests__/parser-test.js @@ -1,11 +1,4 @@ -/** - * Copyright (c) Facebook, Inc. and its affiliates. - * - * This source code is licensed under the MIT license found in the - * LICENSE file in the root directory of this source tree. - * - * @flow strict - */ +// @flow strict import { inspect as nodeInspect } from 'util'; diff --git a/src/language/__tests__/printer-test.js b/src/language/__tests__/printer-test.js index 4da0702484..4c8a236b9f 100644 --- a/src/language/__tests__/printer-test.js +++ b/src/language/__tests__/printer-test.js @@ -1,11 +1,4 @@ -/** - * Copyright (c) Facebook, Inc. and its affiliates. - * - * This source code is licensed under the MIT license found in the - * LICENSE file in the root directory of this source tree. - * - * @flow strict - */ +// @flow strict import { expect } from 'chai'; import { describe, it } from 'mocha'; diff --git a/src/language/__tests__/schema-parser-test.js b/src/language/__tests__/schema-parser-test.js index 66d920a5be..f25749406d 100644 --- a/src/language/__tests__/schema-parser-test.js +++ b/src/language/__tests__/schema-parser-test.js @@ -1,11 +1,4 @@ -/** - * Copyright (c) Facebook, Inc. and its affiliates. - * - * This source code is licensed under the MIT license found in the - * LICENSE file in the root directory of this source tree. - * - * @flow strict - */ +// @flow strict import { expect } from 'chai'; import { describe, it } from 'mocha'; diff --git a/src/language/__tests__/schema-printer-test.js b/src/language/__tests__/schema-printer-test.js index ecc529648f..08224de981 100644 --- a/src/language/__tests__/schema-printer-test.js +++ b/src/language/__tests__/schema-printer-test.js @@ -1,11 +1,4 @@ -/** - * Copyright (c) Facebook, Inc. and its affiliates. - * - * This source code is licensed under the MIT license found in the - * LICENSE file in the root directory of this source tree. - * - * @flow strict - */ +// @flow strict import { expect } from 'chai'; import { describe, it } from 'mocha'; diff --git a/src/language/__tests__/source-test.js b/src/language/__tests__/source-test.js index 028aae3d5e..f287d12168 100644 --- a/src/language/__tests__/source-test.js +++ b/src/language/__tests__/source-test.js @@ -1,11 +1,4 @@ -/** - * Copyright (c) Facebook, Inc. and its affiliates. - * - * This source code is licensed under the MIT license found in the - * LICENSE file in the root directory of this source tree. - * - * @flow strict - */ +// @flow strict import { expect } from 'chai'; import { describe, it } from 'mocha'; diff --git a/src/language/__tests__/toJSONDeep.js b/src/language/__tests__/toJSONDeep.js index 4b0c3042f7..ea50fac23f 100644 --- a/src/language/__tests__/toJSONDeep.js +++ b/src/language/__tests__/toJSONDeep.js @@ -1,11 +1,4 @@ -/** - * Copyright (c) Facebook, Inc. and its affiliates. - * - * This source code is licensed under the MIT license found in the - * LICENSE file in the root directory of this source tree. - * - * @flow strict - */ +// @flow strict /** * Deeply transforms an arbitrary value to a JSON-safe value by calling toJSON diff --git a/src/language/__tests__/visitor-test.js b/src/language/__tests__/visitor-test.js index f14eaf8d91..b488ea2d45 100644 --- a/src/language/__tests__/visitor-test.js +++ b/src/language/__tests__/visitor-test.js @@ -1,11 +1,4 @@ -/** - * Copyright (c) Facebook, Inc. and its affiliates. - * - * This source code is licensed under the MIT license found in the - * LICENSE file in the root directory of this source tree. - * - * @flow strict - */ +// @flow strict import { expect } from 'chai'; import { describe, it } from 'mocha'; diff --git a/src/language/ast.js b/src/language/ast.js index c682f529d6..9d7e1f511f 100644 --- a/src/language/ast.js +++ b/src/language/ast.js @@ -1,11 +1,4 @@ -/** - * Copyright (c) Facebook, Inc. and its affiliates. - * - * This source code is licensed under the MIT license found in the - * LICENSE file in the root directory of this source tree. - * - * @flow strict - */ +// @flow strict import { type Source } from './source'; import { type TokenKindEnum } from './lexer'; diff --git a/src/language/blockString.js b/src/language/blockString.js index 42736483aa..ac5023d15d 100644 --- a/src/language/blockString.js +++ b/src/language/blockString.js @@ -1,11 +1,4 @@ -/** - * Copyright (c) Facebook, Inc. and its affiliates. - * - * This source code is licensed under the MIT license found in the - * LICENSE file in the root directory of this source tree. - * - * @flow strict - */ +// @flow strict /** * Produces the value of a block string from its parsed raw value, similar to diff --git a/src/language/directiveLocation.js b/src/language/directiveLocation.js index 7cc9d31832..6529898869 100644 --- a/src/language/directiveLocation.js +++ b/src/language/directiveLocation.js @@ -1,11 +1,4 @@ -/** - * Copyright (c) Facebook, Inc. and its affiliates. - * - * This source code is licensed under the MIT license found in the - * LICENSE file in the root directory of this source tree. - * - * @flow strict - */ +// @flow strict /** * The set of allowed directive location values. diff --git a/src/language/index.js b/src/language/index.js index 532cf2a24a..7cb97111c3 100644 --- a/src/language/index.js +++ b/src/language/index.js @@ -1,11 +1,4 @@ -/** - * Copyright (c) Facebook, Inc. and its affiliates. - * - * This source code is licensed under the MIT license found in the - * LICENSE file in the root directory of this source tree. - * - * @flow strict - */ +// @flow strict export { Source } from './source'; diff --git a/src/language/kinds.js b/src/language/kinds.js index f431e502f9..d3292b203b 100644 --- a/src/language/kinds.js +++ b/src/language/kinds.js @@ -1,11 +1,4 @@ -/** - * Copyright (c) Facebook, Inc. and its affiliates. - * - * This source code is licensed under the MIT license found in the - * LICENSE file in the root directory of this source tree. - * - * @flow strict - */ +// @flow strict /** * The set of allowed kind values for AST nodes. diff --git a/src/language/lexer.js b/src/language/lexer.js index 6f9f9d33c5..8c8b99953e 100644 --- a/src/language/lexer.js +++ b/src/language/lexer.js @@ -1,11 +1,4 @@ -/** - * Copyright (c) Facebook, Inc. and its affiliates. - * - * This source code is licensed under the MIT license found in the - * LICENSE file in the root directory of this source tree. - * - * @flow strict - */ +// @flow strict import defineToJSON from '../jsutils/defineToJSON'; import { type Token } from './ast'; diff --git a/src/language/location.js b/src/language/location.js index bb127daa00..3918513007 100644 --- a/src/language/location.js +++ b/src/language/location.js @@ -1,11 +1,4 @@ -/** - * Copyright (c) Facebook, Inc. and its affiliates. - * - * This source code is licensed under the MIT license found in the - * LICENSE file in the root directory of this source tree. - * - * @flow strict - */ +// @flow strict import { type Source } from './source'; diff --git a/src/language/parser.js b/src/language/parser.js index f0fa0e1a87..a03ba23a07 100644 --- a/src/language/parser.js +++ b/src/language/parser.js @@ -1,11 +1,4 @@ -/** - * Copyright (c) Facebook, Inc. and its affiliates. - * - * This source code is licensed under the MIT license found in the - * LICENSE file in the root directory of this source tree. - * - * @flow strict - */ +// @flow strict import inspect from '../jsutils/inspect'; import defineToJSON from '../jsutils/defineToJSON'; diff --git a/src/language/predicates.js b/src/language/predicates.js index 70a37d914b..02583c6b88 100644 --- a/src/language/predicates.js +++ b/src/language/predicates.js @@ -1,11 +1,4 @@ -/** - * Copyright (c) Facebook, Inc. and its affiliates. - * - * This source code is licensed under the MIT license found in the - * LICENSE file in the root directory of this source tree. - * - * @flow strict - */ +// @flow strict import { type ASTNode } from './ast'; import { Kind } from './kinds'; diff --git a/src/language/printer.js b/src/language/printer.js index 7aac9f020f..b4c2636b4b 100644 --- a/src/language/printer.js +++ b/src/language/printer.js @@ -1,11 +1,4 @@ -/** - * Copyright (c) Facebook, Inc. and its affiliates. - * - * This source code is licensed under the MIT license found in the - * LICENSE file in the root directory of this source tree. - * - * @flow strict - */ +// @flow strict import { type ASTNode } from './ast'; import { visit } from './visitor'; diff --git a/src/language/source.js b/src/language/source.js index 6525558822..914e490616 100644 --- a/src/language/source.js +++ b/src/language/source.js @@ -1,11 +1,4 @@ -/** - * Copyright (c) Facebook, Inc. and its affiliates. - * - * This source code is licensed under the MIT license found in the - * LICENSE file in the root directory of this source tree. - * - * @flow strict - */ +// @flow strict import invariant from '../jsutils/invariant'; import defineToStringTag from '../jsutils/defineToStringTag'; diff --git a/src/language/visitor.js b/src/language/visitor.js index 00954ae47f..a57baab5c6 100644 --- a/src/language/visitor.js +++ b/src/language/visitor.js @@ -1,11 +1,4 @@ -/** - * Copyright (c) Facebook, Inc. and its affiliates. - * - * This source code is licensed under the MIT license found in the - * LICENSE file in the root directory of this source tree. - * - * @flow strict - */ +// @flow strict import inspect from '../jsutils/inspect'; import { type ASTNode, type ASTKindToNode } from './ast'; diff --git a/src/polyfills/find.js b/src/polyfills/find.js index 238004bbac..feb0fca36d 100644 --- a/src/polyfills/find.js +++ b/src/polyfills/find.js @@ -1,11 +1,4 @@ -/** - * Copyright (c) Facebook, Inc. and its affiliates. - * - * This source code is licensed under the MIT license found in the - * LICENSE file in the root directory of this source tree. - * - * @flow strict - */ +// @flow strict declare function find( list: $ReadOnlyArray, diff --git a/src/polyfills/flatMap.js b/src/polyfills/flatMap.js index 24f3a5e637..3dd212a101 100644 --- a/src/polyfills/flatMap.js +++ b/src/polyfills/flatMap.js @@ -1,11 +1,4 @@ -/** - * Copyright (c) Facebook, Inc. and its affiliates. - * - * This source code is licensed under the MIT license found in the - * LICENSE file in the root directory of this source tree. - * - * @flow strict - */ +// @flow strict declare function flatMap( list: $ReadOnlyArray, diff --git a/src/polyfills/isFinite.js b/src/polyfills/isFinite.js index 5b5a67b888..62edbac5c3 100644 --- a/src/polyfills/isFinite.js +++ b/src/polyfills/isFinite.js @@ -1,11 +1,4 @@ -/** - * Copyright (c) Facebook, Inc. and its affiliates. - * - * This source code is licensed under the MIT license found in the - * LICENSE file in the root directory of this source tree. - * - * @flow strict - */ +// @flow strict declare function isFinite(value: mixed): boolean %checks(typeof value === 'number'); diff --git a/src/polyfills/isInteger.js b/src/polyfills/isInteger.js index b7e4e1eda0..f4c4639ca6 100644 --- a/src/polyfills/isInteger.js +++ b/src/polyfills/isInteger.js @@ -1,11 +1,4 @@ -/** - * Copyright (c) Facebook, Inc. and its affiliates. - * - * This source code is licensed under the MIT license found in the - * LICENSE file in the root directory of this source tree. - * - * @flow strict - */ +// @flow strict declare function isInteger(value: mixed): boolean %checks(typeof value === 'number'); diff --git a/src/polyfills/objectEntries.js b/src/polyfills/objectEntries.js index 6b93762cce..ba4f5e1e7b 100644 --- a/src/polyfills/objectEntries.js +++ b/src/polyfills/objectEntries.js @@ -1,11 +1,4 @@ -/** - * Copyright (c) Facebook, Inc. and its affiliates. - * - * This source code is licensed under the MIT license found in the - * LICENSE file in the root directory of this source tree. - * - * @flow strict - */ +// @flow strict import { type ObjMap } from '../jsutils/ObjMap'; diff --git a/src/polyfills/objectValues.js b/src/polyfills/objectValues.js index dd84b6c6fc..8f1d65f525 100644 --- a/src/polyfills/objectValues.js +++ b/src/polyfills/objectValues.js @@ -1,11 +1,4 @@ -/** - * Copyright (c) Facebook, Inc. and its affiliates. - * - * This source code is licensed under the MIT license found in the - * LICENSE file in the root directory of this source tree. - * - * @flow strict - */ +// @flow strict import { type ObjMap } from '../jsutils/ObjMap'; diff --git a/src/subscription/__tests__/asyncIteratorReject-test.js b/src/subscription/__tests__/asyncIteratorReject-test.js index 088c244c78..d5e89dd0db 100644 --- a/src/subscription/__tests__/asyncIteratorReject-test.js +++ b/src/subscription/__tests__/asyncIteratorReject-test.js @@ -1,11 +1,4 @@ -/** - * Copyright (c) Facebook, Inc. and its affiliates. - * - * This source code is licensed under the MIT license found in the - * LICENSE file in the root directory of this source tree. - * - * @flow strict - */ +// @flow strict import { expect } from 'chai'; import { describe, it } from 'mocha'; diff --git a/src/subscription/__tests__/eventEmitterAsyncIterator-test.js b/src/subscription/__tests__/eventEmitterAsyncIterator-test.js index d430e903b0..23a38a1545 100644 --- a/src/subscription/__tests__/eventEmitterAsyncIterator-test.js +++ b/src/subscription/__tests__/eventEmitterAsyncIterator-test.js @@ -1,11 +1,4 @@ -/** - * Copyright (c) Facebook, Inc. and its affiliates. - * - * This source code is licensed under the MIT license found in the - * LICENSE file in the root directory of this source tree. - * - * @flow strict - */ +// @flow strict import { expect } from 'chai'; import { describe, it } from 'mocha'; diff --git a/src/subscription/__tests__/eventEmitterAsyncIterator.js b/src/subscription/__tests__/eventEmitterAsyncIterator.js index a342d81f06..ea0d0d30ca 100644 --- a/src/subscription/__tests__/eventEmitterAsyncIterator.js +++ b/src/subscription/__tests__/eventEmitterAsyncIterator.js @@ -1,11 +1,4 @@ -/** - * Copyright (c) Facebook, Inc. and its affiliates. - * - * This source code is licensed under the MIT license found in the - * LICENSE file in the root directory of this source tree. - * - * @flow strict - */ +// @flow strict import type EventEmitter from 'events'; import { $$asyncIterator } from 'iterall'; diff --git a/src/subscription/__tests__/mapAsyncIterator-test.js b/src/subscription/__tests__/mapAsyncIterator-test.js index f1b51e91c5..91caad28d2 100644 --- a/src/subscription/__tests__/mapAsyncIterator-test.js +++ b/src/subscription/__tests__/mapAsyncIterator-test.js @@ -1,11 +1,4 @@ -/** - * Copyright (c) Facebook, Inc. and its affiliates. - * - * This source code is licensed under the MIT license found in the - * LICENSE file in the root directory of this source tree. - * - * @flow strict - */ +// @flow strict import { expect } from 'chai'; import { describe, it } from 'mocha'; diff --git a/src/subscription/__tests__/subscribe-test.js b/src/subscription/__tests__/subscribe-test.js index acf4ecec7e..f299a178de 100644 --- a/src/subscription/__tests__/subscribe-test.js +++ b/src/subscription/__tests__/subscribe-test.js @@ -1,11 +1,4 @@ -/** - * Copyright (c) Facebook, Inc. and its affiliates. - * - * This source code is licensed under the MIT license found in the - * LICENSE file in the root directory of this source tree. - * - * @flow strict - */ +// @flow strict import { expect } from 'chai'; import { describe, it } from 'mocha'; diff --git a/src/subscription/asyncIteratorReject.js b/src/subscription/asyncIteratorReject.js index 0770b0d7ed..4dad88da40 100644 --- a/src/subscription/asyncIteratorReject.js +++ b/src/subscription/asyncIteratorReject.js @@ -1,11 +1,4 @@ -/** - * Copyright (c) Facebook, Inc. and its affiliates. - * - * This source code is licensed under the MIT license found in the - * LICENSE file in the root directory of this source tree. - * - * @flow strict - */ +// @flow strict import { $$asyncIterator } from 'iterall'; diff --git a/src/subscription/index.js b/src/subscription/index.js index 2f88e1d10f..45645edb8e 100644 --- a/src/subscription/index.js +++ b/src/subscription/index.js @@ -1,11 +1,4 @@ -/** - * Copyright (c) Facebook, Inc. and its affiliates. - * - * This source code is licensed under the MIT license found in the - * LICENSE file in the root directory of this source tree. - * - * @flow strict - */ +// @flow strict export { subscribe, createSourceEventStream } from './subscribe'; export type { SubscriptionArgs } from './subscribe'; diff --git a/src/subscription/mapAsyncIterator.js b/src/subscription/mapAsyncIterator.js index 5773474c1e..d28bcd7895 100644 --- a/src/subscription/mapAsyncIterator.js +++ b/src/subscription/mapAsyncIterator.js @@ -1,11 +1,4 @@ -/** - * Copyright (c) Facebook, Inc. and its affiliates. - * - * This source code is licensed under the MIT license found in the - * LICENSE file in the root directory of this source tree. - * - * @flow strict - */ +// @flow strict import { $$asyncIterator, getAsyncIterator } from 'iterall'; import { type PromiseOrValue } from '../jsutils/PromiseOrValue'; diff --git a/src/subscription/subscribe.js b/src/subscription/subscribe.js index 2a4f52538b..ceb55f9d69 100644 --- a/src/subscription/subscribe.js +++ b/src/subscription/subscribe.js @@ -1,11 +1,4 @@ -/** - * Copyright (c) Facebook, Inc. and its affiliates. - * - * This source code is licensed under the MIT license found in the - * LICENSE file in the root directory of this source tree. - * - * @flow strict - */ +// @flow strict import { isAsyncIterable } from 'iterall'; import inspect from '../jsutils/inspect'; diff --git a/src/type/__tests__/definition-test.js b/src/type/__tests__/definition-test.js index 4828968a30..5f5b9bf717 100644 --- a/src/type/__tests__/definition-test.js +++ b/src/type/__tests__/definition-test.js @@ -1,11 +1,4 @@ -/** - * Copyright (c) Facebook, Inc. and its affiliates. - * - * This source code is licensed under the MIT license found in the - * LICENSE file in the root directory of this source tree. - * - * @flow strict - */ +// @flow strict import { describe, it } from 'mocha'; import { expect } from 'chai'; diff --git a/src/type/__tests__/directive-test.js b/src/type/__tests__/directive-test.js index bcb8edbd27..a69817d69a 100644 --- a/src/type/__tests__/directive-test.js +++ b/src/type/__tests__/directive-test.js @@ -1,11 +1,4 @@ -/** - * Copyright (c) Facebook, Inc. and its affiliates. - * - * This source code is licensed under the MIT license found in the - * LICENSE file in the root directory of this source tree. - * - * @flow strict - */ +// @flow strict import { describe, it } from 'mocha'; import { expect } from 'chai'; diff --git a/src/type/__tests__/enumType-test.js b/src/type/__tests__/enumType-test.js index 4bcb6f013e..88e36c2c95 100644 --- a/src/type/__tests__/enumType-test.js +++ b/src/type/__tests__/enumType-test.js @@ -1,11 +1,4 @@ -/** - * Copyright (c) Facebook, Inc. and its affiliates. - * - * This source code is licensed under the MIT license found in the - * LICENSE file in the root directory of this source tree. - * - * @flow - */ +// @flow strict import { describe, it } from 'mocha'; import { expect } from 'chai'; diff --git a/src/type/__tests__/introspection-test.js b/src/type/__tests__/introspection-test.js index 6f03b891f4..d7863e61a7 100644 --- a/src/type/__tests__/introspection-test.js +++ b/src/type/__tests__/introspection-test.js @@ -1,11 +1,4 @@ -/** - * Copyright (c) Facebook, Inc. and its affiliates. - * - * This source code is licensed under the MIT license found in the - * LICENSE file in the root directory of this source tree. - * - * @flow strict - */ +// @flow strict import { expect } from 'chai'; import { describe, it } from 'mocha'; diff --git a/src/type/__tests__/predicate-test.js b/src/type/__tests__/predicate-test.js index bc895833a7..460c5f0b4a 100644 --- a/src/type/__tests__/predicate-test.js +++ b/src/type/__tests__/predicate-test.js @@ -1,11 +1,4 @@ -/** - * Copyright (c) Facebook, Inc. and its affiliates. - * - * This source code is licensed under the MIT license found in the - * LICENSE file in the root directory of this source tree. - * - * @flow strict - */ +// @flow strict import { describe, it } from 'mocha'; import { expect } from 'chai'; diff --git a/src/type/__tests__/schema-test.js b/src/type/__tests__/schema-test.js index dde39861d2..e9b91f90fa 100644 --- a/src/type/__tests__/schema-test.js +++ b/src/type/__tests__/schema-test.js @@ -1,11 +1,4 @@ -/** - * Copyright (c) Facebook, Inc. and its affiliates. - * - * This source code is licensed under the MIT license found in the - * LICENSE file in the root directory of this source tree. - * - * @flow strict - */ +// @flow strict import { describe, it } from 'mocha'; import { expect } from 'chai'; diff --git a/src/type/__tests__/serialization-test.js b/src/type/__tests__/serialization-test.js index 58316b9415..40e6cd46a6 100644 --- a/src/type/__tests__/serialization-test.js +++ b/src/type/__tests__/serialization-test.js @@ -1,11 +1,4 @@ -/** - * Copyright (c) Facebook, Inc. and its affiliates. - * - * This source code is licensed under the MIT license found in the - * LICENSE file in the root directory of this source tree. - * - * @flow strict - */ +// @flow strict import { GraphQLInt, diff --git a/src/type/__tests__/validation-test.js b/src/type/__tests__/validation-test.js index 2e63a0ab8c..94f11ec7a2 100644 --- a/src/type/__tests__/validation-test.js +++ b/src/type/__tests__/validation-test.js @@ -1,11 +1,4 @@ -/** - * Copyright (c) Facebook, Inc. and its affiliates. - * - * This source code is licensed under the MIT license found in the - * LICENSE file in the root directory of this source tree. - * - * @flow strict - */ +// @flow strict import { describe, it } from 'mocha'; import { expect } from 'chai'; diff --git a/src/type/definition.js b/src/type/definition.js index a8de46dbe0..b26da834cd 100644 --- a/src/type/definition.js +++ b/src/type/definition.js @@ -1,11 +1,4 @@ -/** - * Copyright (c) Facebook, Inc. and its affiliates. - * - * This source code is licensed under the MIT license found in the - * LICENSE file in the root directory of this source tree. - * - * @flow strict - */ +// @flow strict import objectEntries from '../polyfills/objectEntries'; import defineToJSON from '../jsutils/defineToJSON'; diff --git a/src/type/directives.js b/src/type/directives.js index 41cca50b58..5fe64ab4e8 100644 --- a/src/type/directives.js +++ b/src/type/directives.js @@ -1,11 +1,4 @@ -/** - * Copyright (c) Facebook, Inc. and its affiliates. - * - * This source code is licensed under the MIT license found in the - * LICENSE file in the root directory of this source tree. - * - * @flow strict - */ +// @flow strict import objectEntries from '../polyfills/objectEntries'; import { diff --git a/src/type/index.js b/src/type/index.js index 6044550b55..c3b899b423 100644 --- a/src/type/index.js +++ b/src/type/index.js @@ -1,11 +1,4 @@ -/** - * Copyright (c) Facebook, Inc. and its affiliates. - * - * This source code is licensed under the MIT license found in the - * LICENSE file in the root directory of this source tree. - * - * @flow strict - */ +// @flow strict export { // Predicate diff --git a/src/type/introspection.js b/src/type/introspection.js index 32ab5aea83..3bb6a62105 100644 --- a/src/type/introspection.js +++ b/src/type/introspection.js @@ -1,11 +1,4 @@ -/** - * Copyright (c) Facebook, Inc. and its affiliates. - * - * This source code is licensed under the MIT license found in the - * LICENSE file in the root directory of this source tree. - * - * @flow strict - */ +// @flow strict import objectValues from '../polyfills/objectValues'; import inspect from '../jsutils/inspect'; diff --git a/src/type/scalars.js b/src/type/scalars.js index 5c50426527..83963ef701 100644 --- a/src/type/scalars.js +++ b/src/type/scalars.js @@ -1,11 +1,4 @@ -/** - * Copyright (c) Facebook, Inc. and its affiliates. - * - * This source code is licensed under the MIT license found in the - * LICENSE file in the root directory of this source tree. - * - * @flow strict - */ +// @flow strict import isFinite from '../polyfills/isFinite'; import isInteger from '../polyfills/isInteger'; diff --git a/src/type/schema.js b/src/type/schema.js index 550298b010..abe8896b8d 100644 --- a/src/type/schema.js +++ b/src/type/schema.js @@ -1,11 +1,4 @@ -/** - * Copyright (c) Facebook, Inc. and its affiliates. - * - * This source code is licensed under the MIT license found in the - * LICENSE file in the root directory of this source tree. - * - * @flow strict - */ +// @flow strict import find from '../polyfills/find'; import objectValues from '../polyfills/objectValues'; diff --git a/src/type/validate.js b/src/type/validate.js index 9738b762f4..87f0919f4d 100644 --- a/src/type/validate.js +++ b/src/type/validate.js @@ -1,11 +1,4 @@ -/** - * Copyright (c) Facebook, Inc. and its affiliates. - * - * This source code is licensed under the MIT license found in the - * LICENSE file in the root directory of this source tree. - * - * @flow strict - */ +// @flow strict import find from '../polyfills/find'; import flatMap from '../polyfills/flatMap'; diff --git a/src/utilities/TypeInfo.js b/src/utilities/TypeInfo.js index 95df418c06..1f2c8d8873 100644 --- a/src/utilities/TypeInfo.js +++ b/src/utilities/TypeInfo.js @@ -1,11 +1,4 @@ -/** - * Copyright (c) Facebook, Inc. and its affiliates. - * - * This source code is licensed under the MIT license found in the - * LICENSE file in the root directory of this source tree. - * - * @flow strict - */ +// @flow strict import find from '../polyfills/find'; import { Kind } from '../language/kinds'; diff --git a/src/utilities/__tests__/assertValidName-test.js b/src/utilities/__tests__/assertValidName-test.js index 21d1f6d8cf..c2f3d5b14d 100644 --- a/src/utilities/__tests__/assertValidName-test.js +++ b/src/utilities/__tests__/assertValidName-test.js @@ -1,11 +1,4 @@ -/** - * Copyright (c) Facebook, Inc. and its affiliates. - * - * This source code is licensed under the MIT license found in the - * LICENSE file in the root directory of this source tree. - * - * @flow strict - */ +// @flow strict import { describe, it } from 'mocha'; import { expect } from 'chai'; diff --git a/src/utilities/__tests__/astFromValue-test.js b/src/utilities/__tests__/astFromValue-test.js index 34095f3729..fa4dde3743 100644 --- a/src/utilities/__tests__/astFromValue-test.js +++ b/src/utilities/__tests__/astFromValue-test.js @@ -1,11 +1,4 @@ -/** - * Copyright (c) Facebook, Inc. and its affiliates. - * - * This source code is licensed under the MIT license found in the - * LICENSE file in the root directory of this source tree. - * - * @flow strict - */ +// @flow strict import { describe, it } from 'mocha'; import { expect } from 'chai'; diff --git a/src/utilities/__tests__/buildASTSchema-benchmark.js b/src/utilities/__tests__/buildASTSchema-benchmark.js index 2ef97b3654..31beb30d12 100644 --- a/src/utilities/__tests__/buildASTSchema-benchmark.js +++ b/src/utilities/__tests__/buildASTSchema-benchmark.js @@ -1,11 +1,4 @@ -/** - * Copyright (c) Facebook, Inc. and its affiliates. - * - * This source code is licensed under the MIT license found in the - * LICENSE file in the root directory of this source tree. - * - * @flow strict - */ +// @flow strict import { bigSchemaSDL } from '../../__fixtures__'; diff --git a/src/utilities/__tests__/buildASTSchema-test.js b/src/utilities/__tests__/buildASTSchema-test.js index b444f47354..65a0a014cb 100644 --- a/src/utilities/__tests__/buildASTSchema-test.js +++ b/src/utilities/__tests__/buildASTSchema-test.js @@ -1,11 +1,4 @@ -/** - * Copyright (c) Facebook, Inc. and its affiliates. - * - * This source code is licensed under the MIT license found in the - * LICENSE file in the root directory of this source tree. - * - * @flow strict - */ +// @flow strict import { expect } from 'chai'; import { describe, it } from 'mocha'; diff --git a/src/utilities/__tests__/buildClientSchema-benchmark.js b/src/utilities/__tests__/buildClientSchema-benchmark.js index 1760f8b17d..c566f563c9 100644 --- a/src/utilities/__tests__/buildClientSchema-benchmark.js +++ b/src/utilities/__tests__/buildClientSchema-benchmark.js @@ -1,11 +1,4 @@ -/** - * Copyright (c) Facebook, Inc. and its affiliates. - * - * This source code is licensed under the MIT license found in the - * LICENSE file in the root directory of this source tree. - * - * @flow strict - */ +// @flow strict import { bigSchemaIntrospectionResult } from '../../__fixtures__'; diff --git a/src/utilities/__tests__/buildClientSchema-test.js b/src/utilities/__tests__/buildClientSchema-test.js index 936a91614c..a8f4955f2a 100644 --- a/src/utilities/__tests__/buildClientSchema-test.js +++ b/src/utilities/__tests__/buildClientSchema-test.js @@ -1,11 +1,4 @@ -/** - * Copyright (c) Facebook, Inc. and its affiliates. - * - * This source code is licensed under the MIT license found in the - * LICENSE file in the root directory of this source tree. - * - * @flow strict - */ +// @flow strict import { describe, it } from 'mocha'; import { expect } from 'chai'; diff --git a/src/utilities/__tests__/coerceValue-test.js b/src/utilities/__tests__/coerceValue-test.js index 2f85aa5590..ae53957ebb 100644 --- a/src/utilities/__tests__/coerceValue-test.js +++ b/src/utilities/__tests__/coerceValue-test.js @@ -1,11 +1,4 @@ -/** - * Copyright (c) Facebook, Inc. and its affiliates. - * - * This source code is licensed under the MIT license found in the - * LICENSE file in the root directory of this source tree. - * - * @flow strict - */ +// @flow strict import { describe, it } from 'mocha'; import { expect } from 'chai'; diff --git a/src/utilities/__tests__/concatAST-test.js b/src/utilities/__tests__/concatAST-test.js index 22cf135764..3b8e47f6a3 100644 --- a/src/utilities/__tests__/concatAST-test.js +++ b/src/utilities/__tests__/concatAST-test.js @@ -1,11 +1,4 @@ -/** - * Copyright (c) Facebook, Inc. and its affiliates. - * - * This source code is licensed under the MIT license found in the - * LICENSE file in the root directory of this source tree. - * - * @flow strict - */ +// @flow strict import { describe, it } from 'mocha'; import { expect } from 'chai'; diff --git a/src/utilities/__tests__/extendSchema-test.js b/src/utilities/__tests__/extendSchema-test.js index 682929b2a0..fb4944506e 100644 --- a/src/utilities/__tests__/extendSchema-test.js +++ b/src/utilities/__tests__/extendSchema-test.js @@ -1,11 +1,4 @@ -/** - * Copyright (c) Facebook, Inc. and its affiliates. - * - * This source code is licensed under the MIT license found in the - * LICENSE file in the root directory of this source tree. - * - * @flow strict - */ +// @flow strict import { describe, it } from 'mocha'; import { expect } from 'chai'; diff --git a/src/utilities/__tests__/findBreakingChanges-test.js b/src/utilities/__tests__/findBreakingChanges-test.js index f9dad88584..b2073dbafe 100644 --- a/src/utilities/__tests__/findBreakingChanges-test.js +++ b/src/utilities/__tests__/findBreakingChanges-test.js @@ -1,11 +1,4 @@ -/** - * Copyright (c) Facebook, Inc. and its affiliates. - * - * This source code is licensed under the MIT license found in the - * LICENSE file in the root directory of this source tree. - * - * @flow strict - */ +// @flow strict import { expect } from 'chai'; import { describe, it } from 'mocha'; diff --git a/src/utilities/__tests__/findDeprecatedUsages-test.js b/src/utilities/__tests__/findDeprecatedUsages-test.js index 2a1517d5a8..a59571b52e 100644 --- a/src/utilities/__tests__/findDeprecatedUsages-test.js +++ b/src/utilities/__tests__/findDeprecatedUsages-test.js @@ -1,11 +1,4 @@ -/** - * Copyright (c) Facebook, Inc. and its affiliates. - * - * This source code is licensed under the MIT license found in the - * LICENSE file in the root directory of this source tree. - * - * @flow strict - */ +// @flow strict import { expect } from 'chai'; import { describe, it } from 'mocha'; diff --git a/src/utilities/__tests__/getOperationAST-test.js b/src/utilities/__tests__/getOperationAST-test.js index 08692580a7..96719de334 100644 --- a/src/utilities/__tests__/getOperationAST-test.js +++ b/src/utilities/__tests__/getOperationAST-test.js @@ -1,11 +1,4 @@ -/** - * Copyright (c) Facebook, Inc. and its affiliates. - * - * This source code is licensed under the MIT license found in the - * LICENSE file in the root directory of this source tree. - * - * @flow strict - */ +// @flow strict import { expect } from 'chai'; import { describe, it } from 'mocha'; diff --git a/src/utilities/__tests__/getOperationRootType-test.js b/src/utilities/__tests__/getOperationRootType-test.js index 000d0ba343..cfaa617397 100644 --- a/src/utilities/__tests__/getOperationRootType-test.js +++ b/src/utilities/__tests__/getOperationRootType-test.js @@ -1,11 +1,4 @@ -/** - * Copyright (c) Facebook, Inc. and its affiliates. - * - * This source code is licensed under the MIT license found in the - * LICENSE file in the root directory of this source tree. - * - * @flow strict - */ +// @flow strict import { expect } from 'chai'; import { describe, it } from 'mocha'; diff --git a/src/utilities/__tests__/introspectionFromSchema-benchmark.js b/src/utilities/__tests__/introspectionFromSchema-benchmark.js index abe448ce4c..4d1b79bbcf 100644 --- a/src/utilities/__tests__/introspectionFromSchema-benchmark.js +++ b/src/utilities/__tests__/introspectionFromSchema-benchmark.js @@ -1,11 +1,4 @@ -/** - * Copyright (c) Facebook, Inc. and its affiliates. - * - * This source code is licensed under the MIT license found in the - * LICENSE file in the root directory of this source tree. - * - * @flow strict - */ +// @flow strict import { bigSchemaSDL } from '../../__fixtures__'; diff --git a/src/utilities/__tests__/introspectionFromSchema-test.js b/src/utilities/__tests__/introspectionFromSchema-test.js index c11c06acc7..d237ef2745 100644 --- a/src/utilities/__tests__/introspectionFromSchema-test.js +++ b/src/utilities/__tests__/introspectionFromSchema-test.js @@ -1,11 +1,4 @@ -/** - * Copyright (c) Facebook, Inc. and its affiliates. - * - * This source code is licensed under the MIT license found in the - * LICENSE file in the root directory of this source tree. - * - * @flow strict - */ +// @flow strict import { describe, it } from 'mocha'; import { expect } from 'chai'; diff --git a/src/utilities/__tests__/isValidLiteralValue-test.js b/src/utilities/__tests__/isValidLiteralValue-test.js index 2f8516f74b..83cf49f09f 100644 --- a/src/utilities/__tests__/isValidLiteralValue-test.js +++ b/src/utilities/__tests__/isValidLiteralValue-test.js @@ -1,11 +1,4 @@ -/** - * Copyright (c) Facebook, Inc. and its affiliates. - * - * This source code is licensed under the MIT license found in the - * LICENSE file in the root directory of this source tree. - * - * @flow strict - */ +// @flow strict import { expect } from 'chai'; import { describe, it } from 'mocha'; diff --git a/src/utilities/__tests__/lexicographicSortSchema-test.js b/src/utilities/__tests__/lexicographicSortSchema-test.js index 02e65e258d..739a36ef33 100644 --- a/src/utilities/__tests__/lexicographicSortSchema-test.js +++ b/src/utilities/__tests__/lexicographicSortSchema-test.js @@ -1,11 +1,4 @@ -/** - * Copyright (c) Facebook, Inc. and its affiliates. - * - * This source code is licensed under the MIT license found in the - * LICENSE file in the root directory of this source tree. - * - * @flow strict - */ +// @flow strict import { describe, it } from 'mocha'; import { expect } from 'chai'; diff --git a/src/utilities/__tests__/schemaPrinter-test.js b/src/utilities/__tests__/schemaPrinter-test.js index 5db099994d..51470111cd 100644 --- a/src/utilities/__tests__/schemaPrinter-test.js +++ b/src/utilities/__tests__/schemaPrinter-test.js @@ -1,11 +1,4 @@ -/** - * Copyright (c) Facebook, Inc. and its affiliates. - * - * This source code is licensed under the MIT license found in the - * LICENSE file in the root directory of this source tree. - * - * @flow strict - */ +// @flow strict import { describe, it } from 'mocha'; import { expect } from 'chai'; diff --git a/src/utilities/__tests__/separateOperations-test.js b/src/utilities/__tests__/separateOperations-test.js index 2867dce003..3ed8d61774 100644 --- a/src/utilities/__tests__/separateOperations-test.js +++ b/src/utilities/__tests__/separateOperations-test.js @@ -1,11 +1,4 @@ -/** - * Copyright (c) Facebook, Inc. and its affiliates. - * - * This source code is licensed under the MIT license found in the - * LICENSE file in the root directory of this source tree. - * - * @flow strict - */ +// @flow strict import { describe, it } from 'mocha'; import { expect } from 'chai'; diff --git a/src/utilities/__tests__/stripIgnoredCharacters-test.js b/src/utilities/__tests__/stripIgnoredCharacters-test.js index be5787e138..44f7868fa4 100644 --- a/src/utilities/__tests__/stripIgnoredCharacters-test.js +++ b/src/utilities/__tests__/stripIgnoredCharacters-test.js @@ -1,11 +1,4 @@ -/** - * Copyright (c) Facebook, Inc. and its affiliates. - * - * This source code is licensed under the MIT license found in the - * LICENSE file in the root directory of this source tree. - * - * @flow strict - */ +// @flow strict import { expect } from 'chai'; import { describe, it } from 'mocha'; diff --git a/src/utilities/__tests__/typeComparators-test.js b/src/utilities/__tests__/typeComparators-test.js index fe8cf7c427..f6b3c80d6f 100644 --- a/src/utilities/__tests__/typeComparators-test.js +++ b/src/utilities/__tests__/typeComparators-test.js @@ -1,11 +1,4 @@ -/** - * Copyright (c) Facebook, Inc. and its affiliates. - * - * This source code is licensed under the MIT license found in the - * LICENSE file in the root directory of this source tree. - * - * @flow strict - */ +// @flow strict import { describe, it } from 'mocha'; import { expect } from 'chai'; diff --git a/src/utilities/__tests__/valueFromAST-test.js b/src/utilities/__tests__/valueFromAST-test.js index 4dc96f07e6..b937d42708 100644 --- a/src/utilities/__tests__/valueFromAST-test.js +++ b/src/utilities/__tests__/valueFromAST-test.js @@ -1,11 +1,4 @@ -/** - * Copyright (c) Facebook, Inc. and its affiliates. - * - * This source code is licensed under the MIT license found in the - * LICENSE file in the root directory of this source tree. - * - * @flow strict - */ +// @flow strict import { describe, it } from 'mocha'; import { expect } from 'chai'; diff --git a/src/utilities/__tests__/valueFromASTUntyped-test.js b/src/utilities/__tests__/valueFromASTUntyped-test.js index cbaac8846a..d18e4e877c 100644 --- a/src/utilities/__tests__/valueFromASTUntyped-test.js +++ b/src/utilities/__tests__/valueFromASTUntyped-test.js @@ -1,11 +1,4 @@ -/** - * Copyright (c) Facebook, Inc. and its affiliates. - * - * This source code is licensed under the MIT license found in the - * LICENSE file in the root directory of this source tree. - * - * @flow strict - */ +// @flow strict import { describe, it } from 'mocha'; import { expect } from 'chai'; diff --git a/src/utilities/assertValidName.js b/src/utilities/assertValidName.js index eafed3be68..632b2230d8 100644 --- a/src/utilities/assertValidName.js +++ b/src/utilities/assertValidName.js @@ -1,11 +1,4 @@ -/** - * Copyright (c) Facebook, Inc. and its affiliates. - * - * This source code is licensed under the MIT license found in the - * LICENSE file in the root directory of this source tree. - * - * @flow strict - */ +// @flow strict import { GraphQLError } from '../error/GraphQLError'; import { type ASTNode } from '../language/ast'; diff --git a/src/utilities/astFromValue.js b/src/utilities/astFromValue.js index dd805141d2..d365047597 100644 --- a/src/utilities/astFromValue.js +++ b/src/utilities/astFromValue.js @@ -1,11 +1,4 @@ -/** - * Copyright (c) Facebook, Inc. and its affiliates. - * - * This source code is licensed under the MIT license found in the - * LICENSE file in the root directory of this source tree. - * - * @flow strict - */ +// @flow strict import { forEach, isCollection } from 'iterall'; diff --git a/src/utilities/buildASTSchema.js b/src/utilities/buildASTSchema.js index dadca0d409..df111cefe9 100644 --- a/src/utilities/buildASTSchema.js +++ b/src/utilities/buildASTSchema.js @@ -1,11 +1,4 @@ -/** - * Copyright (c) Facebook, Inc. and its affiliates. - * - * This source code is licensed under the MIT license found in the - * LICENSE file in the root directory of this source tree. - * - * @flow strict - */ +// @flow strict import objectValues from '../polyfills/objectValues'; import inspect from '../jsutils/inspect'; diff --git a/src/utilities/buildClientSchema.js b/src/utilities/buildClientSchema.js index f10daebf4e..f99b02ed01 100644 --- a/src/utilities/buildClientSchema.js +++ b/src/utilities/buildClientSchema.js @@ -1,11 +1,4 @@ -/** - * Copyright (c) Facebook, Inc. and its affiliates. - * - * This source code is licensed under the MIT license found in the - * LICENSE file in the root directory of this source tree. - * - * @flow strict - */ +// @flow strict import objectValues from '../polyfills/objectValues'; import inspect from '../jsutils/inspect'; diff --git a/src/utilities/coerceValue.js b/src/utilities/coerceValue.js index 101e95c0f1..2618915096 100644 --- a/src/utilities/coerceValue.js +++ b/src/utilities/coerceValue.js @@ -1,11 +1,4 @@ -/** - * Copyright (c) Facebook, Inc. and its affiliates. - * - * This source code is licensed under the MIT license found in the - * LICENSE file in the root directory of this source tree. - * - * @flow strict - */ +// @flow strict import { forEach, isCollection } from 'iterall'; import objectValues from '../polyfills/objectValues'; diff --git a/src/utilities/concatAST.js b/src/utilities/concatAST.js index 16c1e1b019..bc9904eed8 100644 --- a/src/utilities/concatAST.js +++ b/src/utilities/concatAST.js @@ -1,11 +1,4 @@ -/** - * Copyright (c) Facebook, Inc. and its affiliates. - * - * This source code is licensed under the MIT license found in the - * LICENSE file in the root directory of this source tree. - * - * @flow strict - */ +// @flow strict import flatMap from '../polyfills/flatMap'; import { type DocumentNode } from '../language/ast'; diff --git a/src/utilities/extendSchema.js b/src/utilities/extendSchema.js index 279c4a932f..123a1c0ab0 100644 --- a/src/utilities/extendSchema.js +++ b/src/utilities/extendSchema.js @@ -1,11 +1,4 @@ -/** - * Copyright (c) Facebook, Inc. and its affiliates. - * - * This source code is licensed under the MIT license found in the - * LICENSE file in the root directory of this source tree. - * - * @flow strict - */ +// @flow strict import flatMap from '../polyfills/flatMap'; import objectValues from '../polyfills/objectValues'; diff --git a/src/utilities/findBreakingChanges.js b/src/utilities/findBreakingChanges.js index c764ba66f9..38b1ef2689 100644 --- a/src/utilities/findBreakingChanges.js +++ b/src/utilities/findBreakingChanges.js @@ -1,11 +1,4 @@ -/** - * Copyright (c) Facebook, Inc. and its affiliates. - * - * This source code is licensed under the MIT license found in the - * LICENSE file in the root directory of this source tree. - * - * @flow strict - */ +// @flow strict import objectValues from '../polyfills/objectValues'; import keyMap from '../jsutils/keyMap'; diff --git a/src/utilities/findDeprecatedUsages.js b/src/utilities/findDeprecatedUsages.js index 92c17a73d5..7be101eaee 100644 --- a/src/utilities/findDeprecatedUsages.js +++ b/src/utilities/findDeprecatedUsages.js @@ -1,11 +1,4 @@ -/** - * Copyright (c) Facebook, Inc. and its affiliates. - * - * This source code is licensed under the MIT license found in the - * LICENSE file in the root directory of this source tree. - * - * @flow strict - */ +// @flow strict import { GraphQLError } from '../error/GraphQLError'; import { visit, visitWithTypeInfo } from '../language/visitor'; diff --git a/src/utilities/getOperationAST.js b/src/utilities/getOperationAST.js index 2e8dacf0ee..5cb9986eb3 100644 --- a/src/utilities/getOperationAST.js +++ b/src/utilities/getOperationAST.js @@ -1,11 +1,4 @@ -/** - * Copyright (c) Facebook, Inc. and its affiliates. - * - * This source code is licensed under the MIT license found in the - * LICENSE file in the root directory of this source tree. - * - * @flow strict - */ +// @flow strict import { Kind } from '../language/kinds'; import { diff --git a/src/utilities/getOperationRootType.js b/src/utilities/getOperationRootType.js index d6b4cf0017..9ac9c03130 100644 --- a/src/utilities/getOperationRootType.js +++ b/src/utilities/getOperationRootType.js @@ -1,11 +1,4 @@ -/** - * Copyright (c) Facebook, Inc. and its affiliates. - * - * This source code is licensed under the MIT license found in the - * LICENSE file in the root directory of this source tree. - * - * @flow strict - */ +// @flow strict import { GraphQLError } from '../error/GraphQLError'; import { diff --git a/src/utilities/index.js b/src/utilities/index.js index aa0daafe15..636c98dad1 100644 --- a/src/utilities/index.js +++ b/src/utilities/index.js @@ -1,11 +1,4 @@ -/** - * Copyright (c) Facebook, Inc. and its affiliates. - * - * This source code is licensed under the MIT license found in the - * LICENSE file in the root directory of this source tree. - * - * @flow strict - */ +// @flow strict // The GraphQL query recommended for a full schema introspection. export { diff --git a/src/utilities/introspectionFromSchema.js b/src/utilities/introspectionFromSchema.js index 8f2006ea09..c67ec78b0a 100644 --- a/src/utilities/introspectionFromSchema.js +++ b/src/utilities/introspectionFromSchema.js @@ -1,11 +1,4 @@ -/** - * Copyright (c) Facebook, Inc. and its affiliates. - * - * This source code is licensed under the MIT license found in the - * LICENSE file in the root directory of this source tree. - * - * @flow strict - */ +// @flow strict import invariant from '../jsutils/invariant'; import isPromise from '../jsutils/isPromise'; diff --git a/src/utilities/introspectionQuery.js b/src/utilities/introspectionQuery.js index 50b66e90fe..337a4bed72 100644 --- a/src/utilities/introspectionQuery.js +++ b/src/utilities/introspectionQuery.js @@ -1,11 +1,4 @@ -/** - * Copyright (c) Facebook, Inc. and its affiliates. - * - * This source code is licensed under the MIT license found in the - * LICENSE file in the root directory of this source tree. - * - * @flow strict - */ +// @flow strict import { type DirectiveLocationEnum } from '../language/directiveLocation'; diff --git a/src/utilities/isValidJSValue.js b/src/utilities/isValidJSValue.js index c6002a42ba..5d0a84bf36 100644 --- a/src/utilities/isValidJSValue.js +++ b/src/utilities/isValidJSValue.js @@ -1,11 +1,4 @@ -/** - * Copyright (c) Facebook, Inc. and its affiliates. - * - * This source code is licensed under the MIT license found in the - * LICENSE file in the root directory of this source tree. - * - * @flow strict - */ +// @flow strict /* istanbul ignore file */ import { coerceValue } from './coerceValue'; diff --git a/src/utilities/isValidLiteralValue.js b/src/utilities/isValidLiteralValue.js index fb946aef82..24cdefd007 100644 --- a/src/utilities/isValidLiteralValue.js +++ b/src/utilities/isValidLiteralValue.js @@ -1,11 +1,4 @@ -/** - * Copyright (c) Facebook, Inc. and its affiliates. - * - * This source code is licensed under the MIT license found in the - * LICENSE file in the root directory of this source tree. - * - * @flow strict - */ +// @flow strict import { TypeInfo } from './TypeInfo'; import { type GraphQLError } from '../error/GraphQLError'; diff --git a/src/utilities/lexicographicSortSchema.js b/src/utilities/lexicographicSortSchema.js index 99ea0eb625..665bf4958b 100644 --- a/src/utilities/lexicographicSortSchema.js +++ b/src/utilities/lexicographicSortSchema.js @@ -1,11 +1,4 @@ -/** - * Copyright (c) Facebook, Inc. and its affiliates. - * - * This source code is licensed under the MIT license found in the - * LICENSE file in the root directory of this source tree. - * - * @flow strict - */ +// @flow strict import objectValues from '../polyfills/objectValues'; import inspect from '../jsutils/inspect'; diff --git a/src/utilities/schemaPrinter.js b/src/utilities/schemaPrinter.js index e037ca012a..634712ea81 100644 --- a/src/utilities/schemaPrinter.js +++ b/src/utilities/schemaPrinter.js @@ -1,11 +1,4 @@ -/** - * Copyright (c) Facebook, Inc. and its affiliates. - * - * This source code is licensed under the MIT license found in the - * LICENSE file in the root directory of this source tree. - * - * @flow strict - */ +// @flow strict import flatMap from '../polyfills/flatMap'; import objectValues from '../polyfills/objectValues'; diff --git a/src/utilities/separateOperations.js b/src/utilities/separateOperations.js index 17d4505059..8961396a1a 100644 --- a/src/utilities/separateOperations.js +++ b/src/utilities/separateOperations.js @@ -1,11 +1,4 @@ -/** - * Copyright (c) Facebook, Inc. and its affiliates. - * - * This source code is licensed under the MIT license found in the - * LICENSE file in the root directory of this source tree. - * - * @flow strict - */ +// @flow strict import { visit } from '../language/visitor'; import { type ObjMap } from '../jsutils/ObjMap'; diff --git a/src/utilities/stripIgnoredCharacters.js b/src/utilities/stripIgnoredCharacters.js index 1ae74c9965..4efcc35f74 100644 --- a/src/utilities/stripIgnoredCharacters.js +++ b/src/utilities/stripIgnoredCharacters.js @@ -1,11 +1,4 @@ -/** - * Copyright (c) Facebook, Inc. and its affiliates. - * - * This source code is licensed under the MIT license found in the - * LICENSE file in the root directory of this source tree. - * - * @flow strict - */ +// @flow strict import inspect from '../jsutils/inspect'; import { Source } from '../language/source'; diff --git a/src/utilities/typeComparators.js b/src/utilities/typeComparators.js index e1da1fb0c5..cab64d1e3a 100644 --- a/src/utilities/typeComparators.js +++ b/src/utilities/typeComparators.js @@ -1,11 +1,4 @@ -/** - * Copyright (c) Facebook, Inc. and its affiliates. - * - * This source code is licensed under the MIT license found in the - * LICENSE file in the root directory of this source tree. - * - * @flow strict - */ +// @flow strict import { type GraphQLType, diff --git a/src/utilities/typeFromAST.js b/src/utilities/typeFromAST.js index 8251a55a09..76dd137f0e 100644 --- a/src/utilities/typeFromAST.js +++ b/src/utilities/typeFromAST.js @@ -1,11 +1,4 @@ -/** - * Copyright (c) Facebook, Inc. and its affiliates. - * - * This source code is licensed under the MIT license found in the - * LICENSE file in the root directory of this source tree. - * - * @flow strict - */ +// @flow strict import inspect from '../jsutils/inspect'; import { Kind } from '../language/kinds'; diff --git a/src/utilities/valueFromAST.js b/src/utilities/valueFromAST.js index 40f3c58d24..f2c2fb4769 100644 --- a/src/utilities/valueFromAST.js +++ b/src/utilities/valueFromAST.js @@ -1,11 +1,4 @@ -/** - * Copyright (c) Facebook, Inc. and its affiliates. - * - * This source code is licensed under the MIT license found in the - * LICENSE file in the root directory of this source tree. - * - * @flow strict - */ +// @flow strict import objectValues from '../polyfills/objectValues'; import inspect from '../jsutils/inspect'; diff --git a/src/utilities/valueFromASTUntyped.js b/src/utilities/valueFromASTUntyped.js index 4fe85b91b9..d57583b263 100644 --- a/src/utilities/valueFromASTUntyped.js +++ b/src/utilities/valueFromASTUntyped.js @@ -1,11 +1,4 @@ -/** - * Copyright (c) Facebook, Inc. and its affiliates. - * - * This source code is licensed under the MIT license found in the - * LICENSE file in the root directory of this source tree. - * - * @flow strict - */ +// @flow strict import inspect from '../jsutils/inspect'; import keyValMap from '../jsutils/keyValMap'; diff --git a/src/validation/ValidationContext.js b/src/validation/ValidationContext.js index baed70b4c2..8992f172a9 100644 --- a/src/validation/ValidationContext.js +++ b/src/validation/ValidationContext.js @@ -1,11 +1,4 @@ -/** - * Copyright (c) Facebook, Inc. and its affiliates. - * - * This source code is licensed under the MIT license found in the - * LICENSE file in the root directory of this source tree. - * - * @flow strict - */ +// @flow strict import { type ObjMap } from '../jsutils/ObjMap'; import { type GraphQLError } from '../error'; diff --git a/src/validation/__tests__/ExecutableDefinitions-test.js b/src/validation/__tests__/ExecutableDefinitions-test.js index 2a9849bf05..07f5e83f54 100644 --- a/src/validation/__tests__/ExecutableDefinitions-test.js +++ b/src/validation/__tests__/ExecutableDefinitions-test.js @@ -1,11 +1,4 @@ -/** - * Copyright (c) Facebook, Inc. and its affiliates. - * - * This source code is licensed under the MIT license found in the - * LICENSE file in the root directory of this source tree. - * - * @flow strict - */ +// @flow strict import { describe, it } from 'mocha'; import { expectValidationErrors } from './harness'; diff --git a/src/validation/__tests__/FieldsOnCorrectType-test.js b/src/validation/__tests__/FieldsOnCorrectType-test.js index 31758c0b49..9a0dcd4f0c 100644 --- a/src/validation/__tests__/FieldsOnCorrectType-test.js +++ b/src/validation/__tests__/FieldsOnCorrectType-test.js @@ -1,11 +1,4 @@ -/** - * Copyright (c) Facebook, Inc. and its affiliates. - * - * This source code is licensed under the MIT license found in the - * LICENSE file in the root directory of this source tree. - * - * @flow strict - */ +// @flow strict import { expect } from 'chai'; import { describe, it } from 'mocha'; diff --git a/src/validation/__tests__/FragmentsOnCompositeTypes-test.js b/src/validation/__tests__/FragmentsOnCompositeTypes-test.js index efc5e749ae..47159dccd2 100644 --- a/src/validation/__tests__/FragmentsOnCompositeTypes-test.js +++ b/src/validation/__tests__/FragmentsOnCompositeTypes-test.js @@ -1,11 +1,4 @@ -/** - * Copyright (c) Facebook, Inc. and its affiliates. - * - * This source code is licensed under the MIT license found in the - * LICENSE file in the root directory of this source tree. - * - * @flow strict - */ +// @flow strict import { describe, it } from 'mocha'; import { expectValidationErrors } from './harness'; diff --git a/src/validation/__tests__/KnownArgumentNames-test.js b/src/validation/__tests__/KnownArgumentNames-test.js index db7a8be6c3..ad02219ec3 100644 --- a/src/validation/__tests__/KnownArgumentNames-test.js +++ b/src/validation/__tests__/KnownArgumentNames-test.js @@ -1,11 +1,4 @@ -/** - * Copyright (c) Facebook, Inc. and its affiliates. - * - * This source code is licensed under the MIT license found in the - * LICENSE file in the root directory of this source tree. - * - * @flow strict - */ +// @flow strict import { describe, it } from 'mocha'; import { buildSchema } from '../../utilities'; diff --git a/src/validation/__tests__/KnownDirectives-test.js b/src/validation/__tests__/KnownDirectives-test.js index 0123a485a0..e3b4fae401 100644 --- a/src/validation/__tests__/KnownDirectives-test.js +++ b/src/validation/__tests__/KnownDirectives-test.js @@ -1,11 +1,4 @@ -/** - * Copyright (c) Facebook, Inc. and its affiliates. - * - * This source code is licensed under the MIT license found in the - * LICENSE file in the root directory of this source tree. - * - * @flow strict - */ +// @flow strict import { describe, it } from 'mocha'; import { buildSchema } from '../../utilities'; diff --git a/src/validation/__tests__/KnownFragmentNames-test.js b/src/validation/__tests__/KnownFragmentNames-test.js index 5ecae1ba7a..28b5bfb8f0 100644 --- a/src/validation/__tests__/KnownFragmentNames-test.js +++ b/src/validation/__tests__/KnownFragmentNames-test.js @@ -1,11 +1,4 @@ -/** - * Copyright (c) Facebook, Inc. and its affiliates. - * - * This source code is licensed under the MIT license found in the - * LICENSE file in the root directory of this source tree. - * - * @flow strict - */ +// @flow strict import { describe, it } from 'mocha'; import { expectValidationErrors } from './harness'; diff --git a/src/validation/__tests__/KnownTypeNames-test.js b/src/validation/__tests__/KnownTypeNames-test.js index ad696cf1ce..914f596948 100644 --- a/src/validation/__tests__/KnownTypeNames-test.js +++ b/src/validation/__tests__/KnownTypeNames-test.js @@ -1,11 +1,4 @@ -/** - * Copyright (c) Facebook, Inc. and its affiliates. - * - * This source code is licensed under the MIT license found in the - * LICENSE file in the root directory of this source tree. - * - * @flow strict - */ +// @flow strict import { describe, it } from 'mocha'; import { buildSchema } from '../../utilities'; diff --git a/src/validation/__tests__/LoneAnonymousOperation-test.js b/src/validation/__tests__/LoneAnonymousOperation-test.js index c7965f3307..725727ecac 100644 --- a/src/validation/__tests__/LoneAnonymousOperation-test.js +++ b/src/validation/__tests__/LoneAnonymousOperation-test.js @@ -1,11 +1,4 @@ -/** - * Copyright (c) Facebook, Inc. and its affiliates. - * - * This source code is licensed under the MIT license found in the - * LICENSE file in the root directory of this source tree. - * - * @flow strict - */ +// @flow strict import { describe, it } from 'mocha'; import { expectValidationErrors } from './harness'; diff --git a/src/validation/__tests__/LoneSchemaDefinition-test.js b/src/validation/__tests__/LoneSchemaDefinition-test.js index 3726773bfe..1948274980 100644 --- a/src/validation/__tests__/LoneSchemaDefinition-test.js +++ b/src/validation/__tests__/LoneSchemaDefinition-test.js @@ -1,11 +1,4 @@ -/** - * Copyright (c) Facebook, Inc. and its affiliates. - * - * This source code is licensed under the MIT license found in the - * LICENSE file in the root directory of this source tree. - * - * @flow strict - */ +// @flow strict import { describe, it } from 'mocha'; import { expectSDLValidationErrors } from './harness'; diff --git a/src/validation/__tests__/NoFragmentCycles-test.js b/src/validation/__tests__/NoFragmentCycles-test.js index 2f2614e06d..92faafcb4f 100644 --- a/src/validation/__tests__/NoFragmentCycles-test.js +++ b/src/validation/__tests__/NoFragmentCycles-test.js @@ -1,11 +1,4 @@ -/** - * Copyright (c) Facebook, Inc. and its affiliates. - * - * This source code is licensed under the MIT license found in the - * LICENSE file in the root directory of this source tree. - * - * @flow strict - */ +// @flow strict import { describe, it } from 'mocha'; import { expectValidationErrors } from './harness'; diff --git a/src/validation/__tests__/NoUndefinedVariables-test.js b/src/validation/__tests__/NoUndefinedVariables-test.js index f10f69d864..6d97b3d1cb 100644 --- a/src/validation/__tests__/NoUndefinedVariables-test.js +++ b/src/validation/__tests__/NoUndefinedVariables-test.js @@ -1,11 +1,4 @@ -/** - * Copyright (c) Facebook, Inc. and its affiliates. - * - * This source code is licensed under the MIT license found in the - * LICENSE file in the root directory of this source tree. - * - * @flow strict - */ +// @flow strict import { describe, it } from 'mocha'; import { expectValidationErrors } from './harness'; diff --git a/src/validation/__tests__/NoUnusedFragments-test.js b/src/validation/__tests__/NoUnusedFragments-test.js index 540fd6952a..10f3b3d1c9 100644 --- a/src/validation/__tests__/NoUnusedFragments-test.js +++ b/src/validation/__tests__/NoUnusedFragments-test.js @@ -1,11 +1,4 @@ -/** - * Copyright (c) Facebook, Inc. and its affiliates. - * - * This source code is licensed under the MIT license found in the - * LICENSE file in the root directory of this source tree. - * - * @flow strict - */ +// @flow strict import { describe, it } from 'mocha'; import { expectValidationErrors } from './harness'; diff --git a/src/validation/__tests__/NoUnusedVariables-test.js b/src/validation/__tests__/NoUnusedVariables-test.js index 6308dd7ffc..da202e73fa 100644 --- a/src/validation/__tests__/NoUnusedVariables-test.js +++ b/src/validation/__tests__/NoUnusedVariables-test.js @@ -1,11 +1,4 @@ -/** - * Copyright (c) Facebook, Inc. and its affiliates. - * - * This source code is licensed under the MIT license found in the - * LICENSE file in the root directory of this source tree. - * - * @flow strict - */ +// @flow strict import { describe, it } from 'mocha'; import { expectValidationErrors } from './harness'; diff --git a/src/validation/__tests__/OverlappingFieldsCanBeMerged-test.js b/src/validation/__tests__/OverlappingFieldsCanBeMerged-test.js index 58721d4727..97f708ea79 100644 --- a/src/validation/__tests__/OverlappingFieldsCanBeMerged-test.js +++ b/src/validation/__tests__/OverlappingFieldsCanBeMerged-test.js @@ -1,11 +1,4 @@ -/** - * Copyright (c) Facebook, Inc. and its affiliates. - * - * This source code is licensed under the MIT license found in the - * LICENSE file in the root directory of this source tree. - * - * @flow strict - */ +// @flow strict import { expect } from 'chai'; import { describe, it } from 'mocha'; diff --git a/src/validation/__tests__/PossibleFragmentSpreads-test.js b/src/validation/__tests__/PossibleFragmentSpreads-test.js index 3d6e1d6d26..42bc11ac60 100644 --- a/src/validation/__tests__/PossibleFragmentSpreads-test.js +++ b/src/validation/__tests__/PossibleFragmentSpreads-test.js @@ -1,11 +1,4 @@ -/** - * Copyright (c) Facebook, Inc. and its affiliates. - * - * This source code is licensed under the MIT license found in the - * LICENSE file in the root directory of this source tree. - * - * @flow strict - */ +// @flow strict import { describe, it } from 'mocha'; import { expectValidationErrors } from './harness'; diff --git a/src/validation/__tests__/PossibleTypeExtensions-test.js b/src/validation/__tests__/PossibleTypeExtensions-test.js index 115f5c57bc..8bf63a4651 100644 --- a/src/validation/__tests__/PossibleTypeExtensions-test.js +++ b/src/validation/__tests__/PossibleTypeExtensions-test.js @@ -1,11 +1,4 @@ -/** - * Copyright (c) Facebook, Inc. and its affiliates. - * - * This source code is licensed under the MIT license found in the - * LICENSE file in the root directory of this source tree. - * - * @flow strict - */ +// @flow strict import { describe, it } from 'mocha'; import { buildSchema } from '../../utilities'; diff --git a/src/validation/__tests__/ProvidedRequiredArguments-test.js b/src/validation/__tests__/ProvidedRequiredArguments-test.js index b30aa95087..5e7ca7cdc0 100644 --- a/src/validation/__tests__/ProvidedRequiredArguments-test.js +++ b/src/validation/__tests__/ProvidedRequiredArguments-test.js @@ -1,11 +1,4 @@ -/** - * Copyright (c) Facebook, Inc. and its affiliates. - * - * This source code is licensed under the MIT license found in the - * LICENSE file in the root directory of this source tree. - * - * @flow strict - */ +// @flow strict import { describe, it } from 'mocha'; import { buildSchema } from '../../utilities'; diff --git a/src/validation/__tests__/ScalarLeafs-test.js b/src/validation/__tests__/ScalarLeafs-test.js index 845319b664..9ce8f29f85 100644 --- a/src/validation/__tests__/ScalarLeafs-test.js +++ b/src/validation/__tests__/ScalarLeafs-test.js @@ -1,11 +1,4 @@ -/** - * Copyright (c) Facebook, Inc. and its affiliates. - * - * This source code is licensed under the MIT license found in the - * LICENSE file in the root directory of this source tree. - * - * @flow strict - */ +// @flow strict import { describe, it } from 'mocha'; import { expectValidationErrors } from './harness'; diff --git a/src/validation/__tests__/SingleFieldSubscriptions-test.js b/src/validation/__tests__/SingleFieldSubscriptions-test.js index 1e0a927777..603d5d96e4 100644 --- a/src/validation/__tests__/SingleFieldSubscriptions-test.js +++ b/src/validation/__tests__/SingleFieldSubscriptions-test.js @@ -1,11 +1,4 @@ -/** - * Copyright (c) Facebook, Inc. and its affiliates. - * - * This source code is licensed under the MIT license found in the - * LICENSE file in the root directory of this source tree. - * - * @flow strict - */ +// @flow strict import { describe, it } from 'mocha'; import { expectValidationErrors } from './harness'; diff --git a/src/validation/__tests__/UniqueArgumentNames-test.js b/src/validation/__tests__/UniqueArgumentNames-test.js index 48eb99300a..56d9130fca 100644 --- a/src/validation/__tests__/UniqueArgumentNames-test.js +++ b/src/validation/__tests__/UniqueArgumentNames-test.js @@ -1,11 +1,4 @@ -/** - * Copyright (c) Facebook, Inc. and its affiliates. - * - * This source code is licensed under the MIT license found in the - * LICENSE file in the root directory of this source tree. - * - * @flow strict - */ +// @flow strict import { describe, it } from 'mocha'; import { expectValidationErrors } from './harness'; diff --git a/src/validation/__tests__/UniqueDirectiveNames-test.js b/src/validation/__tests__/UniqueDirectiveNames-test.js index 28e37fa9e2..a724e24760 100644 --- a/src/validation/__tests__/UniqueDirectiveNames-test.js +++ b/src/validation/__tests__/UniqueDirectiveNames-test.js @@ -1,11 +1,4 @@ -/** - * Copyright (c) Facebook, Inc. and its affiliates. - * - * This source code is licensed under the MIT license found in the - * LICENSE file in the root directory of this source tree. - * - * @flow strict - */ +// @flow strict import { describe, it } from 'mocha'; import { buildSchema } from '../../utilities'; diff --git a/src/validation/__tests__/UniqueDirectivesPerLocation-test.js b/src/validation/__tests__/UniqueDirectivesPerLocation-test.js index 150810fcc5..8b72d97595 100644 --- a/src/validation/__tests__/UniqueDirectivesPerLocation-test.js +++ b/src/validation/__tests__/UniqueDirectivesPerLocation-test.js @@ -1,11 +1,4 @@ -/** - * Copyright (c) Facebook, Inc. and its affiliates. - * - * This source code is licensed under the MIT license found in the - * LICENSE file in the root directory of this source tree. - * - * @flow strict - */ +// @flow strict import { describe, it } from 'mocha'; import { diff --git a/src/validation/__tests__/UniqueEnumValueNames-test.js b/src/validation/__tests__/UniqueEnumValueNames-test.js index 85264a085e..4d92894672 100644 --- a/src/validation/__tests__/UniqueEnumValueNames-test.js +++ b/src/validation/__tests__/UniqueEnumValueNames-test.js @@ -1,11 +1,4 @@ -/** - * Copyright (c) Facebook, Inc. and its affiliates. - * - * This source code is licensed under the MIT license found in the - * LICENSE file in the root directory of this source tree. - * - * @flow strict - */ +// @flow strict import { describe, it } from 'mocha'; import { buildSchema } from '../../utilities'; diff --git a/src/validation/__tests__/UniqueFieldDefinitionNames-test.js b/src/validation/__tests__/UniqueFieldDefinitionNames-test.js index f24e28f565..cb2b8ca8a8 100644 --- a/src/validation/__tests__/UniqueFieldDefinitionNames-test.js +++ b/src/validation/__tests__/UniqueFieldDefinitionNames-test.js @@ -1,11 +1,4 @@ -/** - * Copyright (c) Facebook, Inc. and its affiliates. - * - * This source code is licensed under the MIT license found in the - * LICENSE file in the root directory of this source tree. - * - * @flow strict - */ +// @flow strict import { describe, it } from 'mocha'; import { buildSchema } from '../../utilities'; diff --git a/src/validation/__tests__/UniqueFragmentNames-test.js b/src/validation/__tests__/UniqueFragmentNames-test.js index f8241d96d2..1abfe4d2ff 100644 --- a/src/validation/__tests__/UniqueFragmentNames-test.js +++ b/src/validation/__tests__/UniqueFragmentNames-test.js @@ -1,11 +1,4 @@ -/** - * Copyright (c) Facebook, Inc. and its affiliates. - * - * This source code is licensed under the MIT license found in the - * LICENSE file in the root directory of this source tree. - * - * @flow strict - */ +// @flow strict import { describe, it } from 'mocha'; import { expectValidationErrors } from './harness'; diff --git a/src/validation/__tests__/UniqueInputFieldNames-test.js b/src/validation/__tests__/UniqueInputFieldNames-test.js index e9897eb1a6..efbdc14948 100644 --- a/src/validation/__tests__/UniqueInputFieldNames-test.js +++ b/src/validation/__tests__/UniqueInputFieldNames-test.js @@ -1,11 +1,4 @@ -/** - * Copyright (c) Facebook, Inc. and its affiliates. - * - * This source code is licensed under the MIT license found in the - * LICENSE file in the root directory of this source tree. - * - * @flow strict - */ +// @flow strict import { describe, it } from 'mocha'; import { expectValidationErrors } from './harness'; diff --git a/src/validation/__tests__/UniqueOperationNames-test.js b/src/validation/__tests__/UniqueOperationNames-test.js index 8f1e464235..c2bc2020e8 100644 --- a/src/validation/__tests__/UniqueOperationNames-test.js +++ b/src/validation/__tests__/UniqueOperationNames-test.js @@ -1,11 +1,4 @@ -/** - * Copyright (c) Facebook, Inc. and its affiliates. - * - * This source code is licensed under the MIT license found in the - * LICENSE file in the root directory of this source tree. - * - * @flow strict - */ +// @flow strict import { describe, it } from 'mocha'; import { expectValidationErrors } from './harness'; diff --git a/src/validation/__tests__/UniqueOperationTypes-test.js b/src/validation/__tests__/UniqueOperationTypes-test.js index d40f708ad5..b69a46f226 100644 --- a/src/validation/__tests__/UniqueOperationTypes-test.js +++ b/src/validation/__tests__/UniqueOperationTypes-test.js @@ -1,11 +1,4 @@ -/** - * Copyright (c) Facebook, Inc. and its affiliates. - * - * This source code is licensed under the MIT license found in the - * LICENSE file in the root directory of this source tree. - * - * @flow strict - */ +// @flow strict import { describe, it } from 'mocha'; import { buildSchema } from '../../utilities'; diff --git a/src/validation/__tests__/UniqueTypeNames-test.js b/src/validation/__tests__/UniqueTypeNames-test.js index ee8482c3b7..b153ab1065 100644 --- a/src/validation/__tests__/UniqueTypeNames-test.js +++ b/src/validation/__tests__/UniqueTypeNames-test.js @@ -1,11 +1,4 @@ -/** - * Copyright (c) Facebook, Inc. and its affiliates. - * - * This source code is licensed under the MIT license found in the - * LICENSE file in the root directory of this source tree. - * - * @flow strict - */ +// @flow strict import { describe, it } from 'mocha'; import { buildSchema } from '../../utilities'; diff --git a/src/validation/__tests__/UniqueVariableNames-test.js b/src/validation/__tests__/UniqueVariableNames-test.js index fa2f594803..5a3ecc83b6 100644 --- a/src/validation/__tests__/UniqueVariableNames-test.js +++ b/src/validation/__tests__/UniqueVariableNames-test.js @@ -1,11 +1,4 @@ -/** - * Copyright (c) Facebook, Inc. and its affiliates. - * - * This source code is licensed under the MIT license found in the - * LICENSE file in the root directory of this source tree. - * - * @flow strict - */ +// @flow strict import { describe, it } from 'mocha'; import { expectValidationErrors } from './harness'; diff --git a/src/validation/__tests__/ValuesOfCorrectType-test.js b/src/validation/__tests__/ValuesOfCorrectType-test.js index 13a4726fda..44dde4b150 100644 --- a/src/validation/__tests__/ValuesOfCorrectType-test.js +++ b/src/validation/__tests__/ValuesOfCorrectType-test.js @@ -1,11 +1,4 @@ -/** - * Copyright (c) Facebook, Inc. and its affiliates. - * - * This source code is licensed under the MIT license found in the - * LICENSE file in the root directory of this source tree. - * - * @flow strict - */ +// @flow strict import { describe, it } from 'mocha'; import { expectValidationErrors } from './harness'; diff --git a/src/validation/__tests__/VariablesAreInputTypes-test.js b/src/validation/__tests__/VariablesAreInputTypes-test.js index f7e5f3dcbf..5cbe35dc86 100644 --- a/src/validation/__tests__/VariablesAreInputTypes-test.js +++ b/src/validation/__tests__/VariablesAreInputTypes-test.js @@ -1,11 +1,4 @@ -/** - * Copyright (c) Facebook, Inc. and its affiliates. - * - * This source code is licensed under the MIT license found in the - * LICENSE file in the root directory of this source tree. - * - * @flow strict - */ +// @flow strict import { describe, it } from 'mocha'; import { expectValidationErrors } from './harness'; diff --git a/src/validation/__tests__/VariablesInAllowedPosition-test.js b/src/validation/__tests__/VariablesInAllowedPosition-test.js index ad7dd0640b..7cc06b7a2d 100644 --- a/src/validation/__tests__/VariablesInAllowedPosition-test.js +++ b/src/validation/__tests__/VariablesInAllowedPosition-test.js @@ -1,11 +1,4 @@ -/** - * Copyright (c) Facebook, Inc. and its affiliates. - * - * This source code is licensed under the MIT license found in the - * LICENSE file in the root directory of this source tree. - * - * @flow strict - */ +// @flow strict import { describe, it } from 'mocha'; import { expectValidationErrors } from './harness'; diff --git a/src/validation/__tests__/harness.js b/src/validation/__tests__/harness.js index cfeb35a7a5..7529c9ce6e 100644 --- a/src/validation/__tests__/harness.js +++ b/src/validation/__tests__/harness.js @@ -1,11 +1,4 @@ -/** - * Copyright (c) Facebook, Inc. and its affiliates. - * - * This source code is licensed under the MIT license found in the - * LICENSE file in the root directory of this source tree. - * - * @flow strict - */ +// @flow strict import { expect } from 'chai'; import inspect from '../../jsutils/inspect'; diff --git a/src/validation/__tests__/validateGQL-benchmark.js b/src/validation/__tests__/validateGQL-benchmark.js index bbb0c68d2a..f12d7d5f28 100644 --- a/src/validation/__tests__/validateGQL-benchmark.js +++ b/src/validation/__tests__/validateGQL-benchmark.js @@ -1,11 +1,4 @@ -/** - * Copyright (c) Facebook, Inc. and its affiliates. - * - * This source code is licensed under the MIT license found in the - * LICENSE file in the root directory of this source tree. - * - * @flow strict - */ +// @flow strict import { bigSchemaSDL } from '../../__fixtures__'; diff --git a/src/validation/__tests__/validateSDL-benchmark.js b/src/validation/__tests__/validateSDL-benchmark.js index be293f24e9..8d1eaadbdc 100644 --- a/src/validation/__tests__/validateSDL-benchmark.js +++ b/src/validation/__tests__/validateSDL-benchmark.js @@ -1,11 +1,4 @@ -/** - * Copyright (c) Facebook, Inc. and its affiliates. - * - * This source code is licensed under the MIT license found in the - * LICENSE file in the root directory of this source tree. - * - * @flow strict - */ +// @flow strict import { bigSchemaSDL } from '../../__fixtures__'; diff --git a/src/validation/__tests__/validation-test.js b/src/validation/__tests__/validation-test.js index 5116b19679..60329601b4 100644 --- a/src/validation/__tests__/validation-test.js +++ b/src/validation/__tests__/validation-test.js @@ -1,11 +1,4 @@ -/** - * Copyright (c) Facebook, Inc. and its affiliates. - * - * This source code is licensed under the MIT license found in the - * LICENSE file in the root directory of this source tree. - * - * @flow strict - */ +// @flow strict import { describe, it } from 'mocha'; import { expect } from 'chai'; diff --git a/src/validation/index.js b/src/validation/index.js index f3e1ebfbce..16fc9bf2fa 100644 --- a/src/validation/index.js +++ b/src/validation/index.js @@ -1,11 +1,4 @@ -/** - * Copyright (c) Facebook, Inc. and its affiliates. - * - * This source code is licensed under the MIT license found in the - * LICENSE file in the root directory of this source tree. - * - * @flow strict - */ +// @flow strict export { validate } from './validate'; diff --git a/src/validation/rules/ExecutableDefinitions.js b/src/validation/rules/ExecutableDefinitions.js index bf5633ac6f..9b070d2cbb 100644 --- a/src/validation/rules/ExecutableDefinitions.js +++ b/src/validation/rules/ExecutableDefinitions.js @@ -1,11 +1,4 @@ -/** - * Copyright (c) Facebook, Inc. and its affiliates. - * - * This source code is licensed under the MIT license found in the - * LICENSE file in the root directory of this source tree. - * - * @flow strict - */ +// @flow strict import { type ASTValidationContext } from '../ValidationContext'; import { GraphQLError } from '../../error/GraphQLError'; diff --git a/src/validation/rules/FieldsOnCorrectType.js b/src/validation/rules/FieldsOnCorrectType.js index 9b35378f77..1f860c6a58 100644 --- a/src/validation/rules/FieldsOnCorrectType.js +++ b/src/validation/rules/FieldsOnCorrectType.js @@ -1,11 +1,4 @@ -/** - * Copyright (c) Facebook, Inc. and its affiliates. - * - * This source code is licensed under the MIT license found in the - * LICENSE file in the root directory of this source tree. - * - * @flow strict - */ +// @flow strict import { type ValidationContext } from '../ValidationContext'; import { GraphQLError } from '../../error/GraphQLError'; diff --git a/src/validation/rules/FragmentsOnCompositeTypes.js b/src/validation/rules/FragmentsOnCompositeTypes.js index b05815727e..d9a75033c2 100644 --- a/src/validation/rules/FragmentsOnCompositeTypes.js +++ b/src/validation/rules/FragmentsOnCompositeTypes.js @@ -1,11 +1,4 @@ -/** - * Copyright (c) Facebook, Inc. and its affiliates. - * - * This source code is licensed under the MIT license found in the - * LICENSE file in the root directory of this source tree. - * - * @flow strict - */ +// @flow strict import { type ValidationContext } from '../ValidationContext'; import { GraphQLError } from '../../error/GraphQLError'; diff --git a/src/validation/rules/KnownArgumentNames.js b/src/validation/rules/KnownArgumentNames.js index f474f59233..37cfad7efd 100644 --- a/src/validation/rules/KnownArgumentNames.js +++ b/src/validation/rules/KnownArgumentNames.js @@ -1,11 +1,4 @@ -/** - * Copyright (c) Facebook, Inc. and its affiliates. - * - * This source code is licensed under the MIT license found in the - * LICENSE file in the root directory of this source tree. - * - * @flow strict - */ +// @flow strict import { type ValidationContext, diff --git a/src/validation/rules/KnownDirectives.js b/src/validation/rules/KnownDirectives.js index cebf684920..b787f93100 100644 --- a/src/validation/rules/KnownDirectives.js +++ b/src/validation/rules/KnownDirectives.js @@ -1,11 +1,4 @@ -/** - * Copyright (c) Facebook, Inc. and its affiliates. - * - * This source code is licensed under the MIT license found in the - * LICENSE file in the root directory of this source tree. - * - * @flow strict - */ +// @flow strict import { type ValidationContext, diff --git a/src/validation/rules/KnownFragmentNames.js b/src/validation/rules/KnownFragmentNames.js index 6048dfcf36..4fd79361f0 100644 --- a/src/validation/rules/KnownFragmentNames.js +++ b/src/validation/rules/KnownFragmentNames.js @@ -1,11 +1,4 @@ -/** - * Copyright (c) Facebook, Inc. and its affiliates. - * - * This source code is licensed under the MIT license found in the - * LICENSE file in the root directory of this source tree. - * - * @flow strict - */ +// @flow strict import { type ValidationContext } from '../ValidationContext'; import { GraphQLError } from '../../error/GraphQLError'; diff --git a/src/validation/rules/KnownTypeNames.js b/src/validation/rules/KnownTypeNames.js index e6203180d8..40b03dd525 100644 --- a/src/validation/rules/KnownTypeNames.js +++ b/src/validation/rules/KnownTypeNames.js @@ -1,11 +1,4 @@ -/** - * Copyright (c) Facebook, Inc. and its affiliates. - * - * This source code is licensed under the MIT license found in the - * LICENSE file in the root directory of this source tree. - * - * @flow strict - */ +// @flow strict import { type ValidationContext, diff --git a/src/validation/rules/LoneAnonymousOperation.js b/src/validation/rules/LoneAnonymousOperation.js index a0febd5436..0b3001bbdf 100644 --- a/src/validation/rules/LoneAnonymousOperation.js +++ b/src/validation/rules/LoneAnonymousOperation.js @@ -1,11 +1,4 @@ -/** - * Copyright (c) Facebook, Inc. and its affiliates. - * - * This source code is licensed under the MIT license found in the - * LICENSE file in the root directory of this source tree. - * - * @flow strict - */ +// @flow strict import { type ASTValidationContext } from '../ValidationContext'; import { GraphQLError } from '../../error/GraphQLError'; diff --git a/src/validation/rules/LoneSchemaDefinition.js b/src/validation/rules/LoneSchemaDefinition.js index c01e172543..0fd6e8e245 100644 --- a/src/validation/rules/LoneSchemaDefinition.js +++ b/src/validation/rules/LoneSchemaDefinition.js @@ -1,11 +1,4 @@ -/** - * Copyright (c) Facebook, Inc. and its affiliates. - * - * This source code is licensed under the MIT license found in the - * LICENSE file in the root directory of this source tree. - * - * @flow strict - */ +// @flow strict import { type SDLValidationContext } from '../ValidationContext'; import { GraphQLError } from '../../error/GraphQLError'; diff --git a/src/validation/rules/NoFragmentCycles.js b/src/validation/rules/NoFragmentCycles.js index a9234a42aa..d89833cfbf 100644 --- a/src/validation/rules/NoFragmentCycles.js +++ b/src/validation/rules/NoFragmentCycles.js @@ -1,11 +1,4 @@ -/** - * Copyright (c) Facebook, Inc. and its affiliates. - * - * This source code is licensed under the MIT license found in the - * LICENSE file in the root directory of this source tree. - * - * @flow strict - */ +// @flow strict import { type ASTValidationContext } from '../ValidationContext'; import { GraphQLError } from '../../error/GraphQLError'; diff --git a/src/validation/rules/NoUndefinedVariables.js b/src/validation/rules/NoUndefinedVariables.js index 79a02e8a30..2fe80b1efa 100644 --- a/src/validation/rules/NoUndefinedVariables.js +++ b/src/validation/rules/NoUndefinedVariables.js @@ -1,11 +1,4 @@ -/** - * Copyright (c) Facebook, Inc. and its affiliates. - * - * This source code is licensed under the MIT license found in the - * LICENSE file in the root directory of this source tree. - * - * @flow strict - */ +// @flow strict import { type ValidationContext } from '../ValidationContext'; import { GraphQLError } from '../../error/GraphQLError'; diff --git a/src/validation/rules/NoUnusedFragments.js b/src/validation/rules/NoUnusedFragments.js index b542ab4969..7845e6d84b 100644 --- a/src/validation/rules/NoUnusedFragments.js +++ b/src/validation/rules/NoUnusedFragments.js @@ -1,11 +1,4 @@ -/** - * Copyright (c) Facebook, Inc. and its affiliates. - * - * This source code is licensed under the MIT license found in the - * LICENSE file in the root directory of this source tree. - * - * @flow strict - */ +// @flow strict import { type ASTValidationContext } from '../ValidationContext'; import { GraphQLError } from '../../error/GraphQLError'; diff --git a/src/validation/rules/NoUnusedVariables.js b/src/validation/rules/NoUnusedVariables.js index 151964e82a..72ed34d8a6 100644 --- a/src/validation/rules/NoUnusedVariables.js +++ b/src/validation/rules/NoUnusedVariables.js @@ -1,11 +1,4 @@ -/** - * Copyright (c) Facebook, Inc. and its affiliates. - * - * This source code is licensed under the MIT license found in the - * LICENSE file in the root directory of this source tree. - * - * @flow strict - */ +// @flow strict import { type ValidationContext } from '../ValidationContext'; import { GraphQLError } from '../../error/GraphQLError'; diff --git a/src/validation/rules/OverlappingFieldsCanBeMerged.js b/src/validation/rules/OverlappingFieldsCanBeMerged.js index dcf6407dfe..a0e91af7ad 100644 --- a/src/validation/rules/OverlappingFieldsCanBeMerged.js +++ b/src/validation/rules/OverlappingFieldsCanBeMerged.js @@ -1,11 +1,4 @@ -/** - * Copyright (c) Facebook, Inc. and its affiliates. - * - * This source code is licensed under the MIT license found in the - * LICENSE file in the root directory of this source tree. - * - * @flow strict - */ +// @flow strict import find from '../../polyfills/find'; import objectEntries from '../../polyfills/objectEntries'; diff --git a/src/validation/rules/PossibleFragmentSpreads.js b/src/validation/rules/PossibleFragmentSpreads.js index 44a0dad3c4..4367d70fe9 100644 --- a/src/validation/rules/PossibleFragmentSpreads.js +++ b/src/validation/rules/PossibleFragmentSpreads.js @@ -1,11 +1,4 @@ -/** - * Copyright (c) Facebook, Inc. and its affiliates. - * - * This source code is licensed under the MIT license found in the - * LICENSE file in the root directory of this source tree. - * - * @flow strict - */ +// @flow strict import inspect from '../../jsutils/inspect'; import { type ValidationContext } from '../ValidationContext'; diff --git a/src/validation/rules/PossibleTypeExtensions.js b/src/validation/rules/PossibleTypeExtensions.js index 4d70b20c07..8542a62c82 100644 --- a/src/validation/rules/PossibleTypeExtensions.js +++ b/src/validation/rules/PossibleTypeExtensions.js @@ -1,11 +1,4 @@ -/** - * Copyright (c) Facebook, Inc. and its affiliates. - * - * This source code is licensed under the MIT license found in the - * LICENSE file in the root directory of this source tree. - * - * @flow strict - */ +// @flow strict import didYouMean from '../../jsutils/didYouMean'; import suggestionList from '../../jsutils/suggestionList'; diff --git a/src/validation/rules/ProvidedRequiredArguments.js b/src/validation/rules/ProvidedRequiredArguments.js index 82fba59e7e..a23fe83735 100644 --- a/src/validation/rules/ProvidedRequiredArguments.js +++ b/src/validation/rules/ProvidedRequiredArguments.js @@ -1,11 +1,4 @@ -/** - * Copyright (c) Facebook, Inc. and its affiliates. - * - * This source code is licensed under the MIT license found in the - * LICENSE file in the root directory of this source tree. - * - * @flow strict - */ +// @flow strict import { type ValidationContext, diff --git a/src/validation/rules/ScalarLeafs.js b/src/validation/rules/ScalarLeafs.js index d1168d075c..373367ca78 100644 --- a/src/validation/rules/ScalarLeafs.js +++ b/src/validation/rules/ScalarLeafs.js @@ -1,11 +1,4 @@ -/** - * Copyright (c) Facebook, Inc. and its affiliates. - * - * This source code is licensed under the MIT license found in the - * LICENSE file in the root directory of this source tree. - * - * @flow strict - */ +// @flow strict import inspect from '../../jsutils/inspect'; import { type ValidationContext } from '../ValidationContext'; diff --git a/src/validation/rules/SingleFieldSubscriptions.js b/src/validation/rules/SingleFieldSubscriptions.js index 9c13cbb504..1bc3c5bb90 100644 --- a/src/validation/rules/SingleFieldSubscriptions.js +++ b/src/validation/rules/SingleFieldSubscriptions.js @@ -1,11 +1,4 @@ -/** - * Copyright (c) Facebook, Inc. and its affiliates. - * - * This source code is licensed under the MIT license found in the - * LICENSE file in the root directory of this source tree. - * - * @flow strict - */ +// @flow strict import { type ASTValidationContext } from '../ValidationContext'; import { GraphQLError } from '../../error/GraphQLError'; diff --git a/src/validation/rules/UniqueArgumentNames.js b/src/validation/rules/UniqueArgumentNames.js index 72f192c325..a3a2a51c4b 100644 --- a/src/validation/rules/UniqueArgumentNames.js +++ b/src/validation/rules/UniqueArgumentNames.js @@ -1,11 +1,4 @@ -/** - * Copyright (c) Facebook, Inc. and its affiliates. - * - * This source code is licensed under the MIT license found in the - * LICENSE file in the root directory of this source tree. - * - * @flow strict - */ +// @flow strict import { type ASTValidationContext } from '../ValidationContext'; import { GraphQLError } from '../../error/GraphQLError'; diff --git a/src/validation/rules/UniqueDirectiveNames.js b/src/validation/rules/UniqueDirectiveNames.js index 89bb6f1b78..11f9bf0aa6 100644 --- a/src/validation/rules/UniqueDirectiveNames.js +++ b/src/validation/rules/UniqueDirectiveNames.js @@ -1,11 +1,4 @@ -/** - * Copyright (c) Facebook, Inc. and its affiliates. - * - * This source code is licensed under the MIT license found in the - * LICENSE file in the root directory of this source tree. - * - * @flow strict - */ +// @flow strict import { type SDLValidationContext } from '../ValidationContext'; import { GraphQLError } from '../../error/GraphQLError'; diff --git a/src/validation/rules/UniqueDirectivesPerLocation.js b/src/validation/rules/UniqueDirectivesPerLocation.js index bc00d97c3d..f93fb2303a 100644 --- a/src/validation/rules/UniqueDirectivesPerLocation.js +++ b/src/validation/rules/UniqueDirectivesPerLocation.js @@ -1,11 +1,4 @@ -/** - * Copyright (c) Facebook, Inc. and its affiliates. - * - * This source code is licensed under the MIT license found in the - * LICENSE file in the root directory of this source tree. - * - * @flow strict - */ +// @flow strict import { type SDLValidationContext, diff --git a/src/validation/rules/UniqueEnumValueNames.js b/src/validation/rules/UniqueEnumValueNames.js index a76186870b..19d5f106be 100644 --- a/src/validation/rules/UniqueEnumValueNames.js +++ b/src/validation/rules/UniqueEnumValueNames.js @@ -1,11 +1,4 @@ -/** - * Copyright (c) Facebook, Inc. and its affiliates. - * - * This source code is licensed under the MIT license found in the - * LICENSE file in the root directory of this source tree. - * - * @flow strict - */ +// @flow strict import { type SDLValidationContext } from '../ValidationContext'; import { GraphQLError } from '../../error/GraphQLError'; diff --git a/src/validation/rules/UniqueFieldDefinitionNames.js b/src/validation/rules/UniqueFieldDefinitionNames.js index dd7f63fa2a..6eaa3c97b2 100644 --- a/src/validation/rules/UniqueFieldDefinitionNames.js +++ b/src/validation/rules/UniqueFieldDefinitionNames.js @@ -1,11 +1,4 @@ -/** - * Copyright (c) Facebook, Inc. and its affiliates. - * - * This source code is licensed under the MIT license found in the - * LICENSE file in the root directory of this source tree. - * - * @flow strict - */ +// @flow strict import { type SDLValidationContext } from '../ValidationContext'; import { GraphQLError } from '../../error/GraphQLError'; diff --git a/src/validation/rules/UniqueFragmentNames.js b/src/validation/rules/UniqueFragmentNames.js index e95f1e3529..6d256a706b 100644 --- a/src/validation/rules/UniqueFragmentNames.js +++ b/src/validation/rules/UniqueFragmentNames.js @@ -1,11 +1,4 @@ -/** - * Copyright (c) Facebook, Inc. and its affiliates. - * - * This source code is licensed under the MIT license found in the - * LICENSE file in the root directory of this source tree. - * - * @flow strict - */ +// @flow strict import { type ASTValidationContext } from '../ValidationContext'; import { GraphQLError } from '../../error/GraphQLError'; diff --git a/src/validation/rules/UniqueInputFieldNames.js b/src/validation/rules/UniqueInputFieldNames.js index 8cd6de092f..b43adce0c6 100644 --- a/src/validation/rules/UniqueInputFieldNames.js +++ b/src/validation/rules/UniqueInputFieldNames.js @@ -1,11 +1,4 @@ -/** - * Copyright (c) Facebook, Inc. and its affiliates. - * - * This source code is licensed under the MIT license found in the - * LICENSE file in the root directory of this source tree. - * - * @flow strict - */ +// @flow strict import { type ASTValidationContext } from '../ValidationContext'; import { GraphQLError } from '../../error/GraphQLError'; diff --git a/src/validation/rules/UniqueOperationNames.js b/src/validation/rules/UniqueOperationNames.js index 4b94c18b3b..cd3cf2a55c 100644 --- a/src/validation/rules/UniqueOperationNames.js +++ b/src/validation/rules/UniqueOperationNames.js @@ -1,11 +1,4 @@ -/** - * Copyright (c) Facebook, Inc. and its affiliates. - * - * This source code is licensed under the MIT license found in the - * LICENSE file in the root directory of this source tree. - * - * @flow strict - */ +// @flow strict import { type ASTValidationContext } from '../ValidationContext'; import { GraphQLError } from '../../error/GraphQLError'; diff --git a/src/validation/rules/UniqueOperationTypes.js b/src/validation/rules/UniqueOperationTypes.js index 34ef1d30e4..393b916c83 100644 --- a/src/validation/rules/UniqueOperationTypes.js +++ b/src/validation/rules/UniqueOperationTypes.js @@ -1,11 +1,4 @@ -/** - * Copyright (c) Facebook, Inc. and its affiliates. - * - * This source code is licensed under the MIT license found in the - * LICENSE file in the root directory of this source tree. - * - * @flow strict - */ +// @flow strict import { type SDLValidationContext } from '../ValidationContext'; import { GraphQLError } from '../../error/GraphQLError'; diff --git a/src/validation/rules/UniqueTypeNames.js b/src/validation/rules/UniqueTypeNames.js index 3726c5e2f2..0ede9dc889 100644 --- a/src/validation/rules/UniqueTypeNames.js +++ b/src/validation/rules/UniqueTypeNames.js @@ -1,11 +1,4 @@ -/** - * Copyright (c) Facebook, Inc. and its affiliates. - * - * This source code is licensed under the MIT license found in the - * LICENSE file in the root directory of this source tree. - * - * @flow strict - */ +// @flow strict import { type SDLValidationContext } from '../ValidationContext'; import { GraphQLError } from '../../error/GraphQLError'; diff --git a/src/validation/rules/UniqueVariableNames.js b/src/validation/rules/UniqueVariableNames.js index 106d5d96b8..42fb16688c 100644 --- a/src/validation/rules/UniqueVariableNames.js +++ b/src/validation/rules/UniqueVariableNames.js @@ -1,11 +1,4 @@ -/** - * Copyright (c) Facebook, Inc. and its affiliates. - * - * This source code is licensed under the MIT license found in the - * LICENSE file in the root directory of this source tree. - * - * @flow strict - */ +// @flow strict import { type ASTValidationContext } from '../ValidationContext'; import { type VariableDefinitionNode } from '../../language/ast'; diff --git a/src/validation/rules/ValuesOfCorrectType.js b/src/validation/rules/ValuesOfCorrectType.js index 92dc2274ea..1ea88a7a8b 100644 --- a/src/validation/rules/ValuesOfCorrectType.js +++ b/src/validation/rules/ValuesOfCorrectType.js @@ -1,11 +1,4 @@ -/** - * Copyright (c) Facebook, Inc. and its affiliates. - * - * This source code is licensed under the MIT license found in the - * LICENSE file in the root directory of this source tree. - * - * @flow strict - */ +// @flow strict import objectValues from '../../polyfills/objectValues'; import { type ValidationContext } from '../ValidationContext'; diff --git a/src/validation/rules/VariablesAreInputTypes.js b/src/validation/rules/VariablesAreInputTypes.js index 9e749db71a..92ede76741 100644 --- a/src/validation/rules/VariablesAreInputTypes.js +++ b/src/validation/rules/VariablesAreInputTypes.js @@ -1,11 +1,4 @@ -/** - * Copyright (c) Facebook, Inc. and its affiliates. - * - * This source code is licensed under the MIT license found in the - * LICENSE file in the root directory of this source tree. - * - * @flow strict - */ +// @flow strict import { type ValidationContext } from '../ValidationContext'; import { GraphQLError } from '../../error/GraphQLError'; diff --git a/src/validation/rules/VariablesInAllowedPosition.js b/src/validation/rules/VariablesInAllowedPosition.js index 445b4c524d..b29c5665fa 100644 --- a/src/validation/rules/VariablesInAllowedPosition.js +++ b/src/validation/rules/VariablesInAllowedPosition.js @@ -1,11 +1,4 @@ -/** - * Copyright (c) Facebook, Inc. and its affiliates. - * - * This source code is licensed under the MIT license found in the - * LICENSE file in the root directory of this source tree. - * - * @flow strict - */ +// @flow strict import inspect from '../../jsutils/inspect'; import { type ValidationContext } from '../ValidationContext'; diff --git a/src/validation/specifiedRules.js b/src/validation/specifiedRules.js index 93a5524f27..1d0c48788b 100644 --- a/src/validation/specifiedRules.js +++ b/src/validation/specifiedRules.js @@ -1,11 +1,4 @@ -/** - * Copyright (c) Facebook, Inc. and its affiliates. - * - * This source code is licensed under the MIT license found in the - * LICENSE file in the root directory of this source tree. - * - * @flow strict - */ +// @flow strict // Spec Section: "Executable Definitions" import { ExecutableDefinitions } from './rules/ExecutableDefinitions'; diff --git a/src/validation/validate.js b/src/validation/validate.js index bc80f47643..4baec2e84b 100644 --- a/src/validation/validate.js +++ b/src/validation/validate.js @@ -1,11 +1,4 @@ -/** - * Copyright (c) Facebook, Inc. and its affiliates. - * - * This source code is licensed under the MIT license found in the - * LICENSE file in the root directory of this source tree. - * - * @flow strict - */ +// @flow strict import invariant from '../jsutils/invariant'; import { type GraphQLError } from '../error'; diff --git a/src/version.js b/src/version.js index 90647ffb73..a5654311ad 100644 --- a/src/version.js +++ b/src/version.js @@ -1,11 +1,4 @@ -/** - * Copyright (c) Facebook, Inc. and its affiliates. - * - * This source code is licensed under the MIT license found in the - * LICENSE file in the root directory of this source tree. - * - * @flow strict - */ +// @flow strict /** * Note: This file is autogenerated using "resources/gen-version.js" script and