Skip to content

Commit 35c68d4

Browse files
Update LICENSE and remove license header from source files (#1960)
1 parent b571812 commit 35c68d4

File tree

246 files changed

+245
-1949
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

246 files changed

+245
-1949
lines changed

.eslintrc.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ rules:
3434
flowtype/require-readonly-react-props: off
3535
flowtype/require-return-type: off
3636
flowtype/require-types-at-top: off
37-
flowtype/require-valid-file-annotation: [error, always, { annotationStyle: block }]
37+
flowtype/require-valid-file-annotation: [error, always, { annotationStyle: line }]
3838
flowtype/require-variable-type: off
3939
flowtype/sort-keys: off
4040
flowtype/spread-exact-type: off

LICENSE

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
MIT License
22

3-
Copyright (c) Facebook, Inc. and its affiliates.
3+
Copyright (c) 2019 GraphQL Contributors
44

55
Permission is hereby granted, free of charge, to any person obtaining a copy
66
of this software and associated documentation files (the "Software"), to deal

resources/benchmark.js

Lines changed: 1 addition & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,4 @@
1-
/**
2-
* Copyright (c) Facebook, Inc. and its affiliates.
3-
*
4-
* This source code is licensed under the MIT license found in the
5-
* LICENSE file in the root directory of this source tree.
6-
*
7-
* @noflow
8-
*/
1+
// @noflow
92

103
'use strict';
114

resources/build.js

Lines changed: 1 addition & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,4 @@
1-
/**
2-
* Copyright (c) Facebook, Inc. and its affiliates.
3-
*
4-
* This source code is licensed under the MIT license found in the
5-
* LICENSE file in the root directory of this source tree.
6-
*
7-
* @noflow
8-
*/
1+
// @noflow
92

103
'use strict';
114

resources/check-cover.js

Lines changed: 1 addition & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,4 @@
1-
/**
2-
* Copyright (c) Facebook, Inc. and its affiliates.
3-
*
4-
* This source code is licensed under the MIT license found in the
5-
* LICENSE file in the root directory of this source tree.
6-
*
7-
* @noflow
8-
*/
1+
// @noflow
92

103
'use strict';
114

resources/gen-changelog.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
/* @noflow */
1+
// @noflow
22

33
'use strict';
44

resources/gen-version.js

Lines changed: 2 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -1,26 +1,12 @@
1-
/**
2-
* Copyright (c) Facebook, Inc. and its affiliates.
3-
*
4-
* This source code is licensed under the MIT license found in the
5-
* LICENSE file in the root directory of this source tree.
6-
*
7-
* @noflow
8-
*/
1+
// @noflow
92

103
'use strict';
114

125
const { version } = require('../package.json');
136
const { writeFile, parseSemver } = require('./utils');
147

158
const versionInfo = parseSemver(version);
16-
const body = `/**
17-
* Copyright (c) Facebook, Inc. and its affiliates.
18-
*
19-
* This source code is licensed under the MIT license found in the
20-
* LICENSE file in the root directory of this source tree.
21-
*
22-
* @flow strict
23-
*/
9+
const body = `// @flow strict
2410
2511
/**
2612
* Note: This file is autogenerated using "resources/gen-version.js" script and

resources/inline-invariant.js

Lines changed: 1 addition & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,4 @@
1-
/**
2-
* Copyright (c) Facebook, Inc. and its affiliates.
3-
*
4-
* This source code is licensed under the MIT license found in the
5-
* LICENSE file in the root directory of this source tree.
6-
*
7-
* @noflow
8-
*/
1+
// @noflow
92

103
'use strict';
114

resources/utils.js

Lines changed: 1 addition & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,4 @@
1-
/**
2-
* Copyright (c) Facebook, Inc. and its affiliates.
3-
*
4-
* This source code is licensed under the MIT license found in the
5-
* LICENSE file in the root directory of this source tree.
6-
*
7-
* @noflow
8-
*/
1+
// @noflow
92

103
'use strict';
114

src/__fixtures__/index.js

Lines changed: 1 addition & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,4 @@
1-
/**
2-
* Copyright (c) Facebook, Inc. and its affiliates.
3-
*
4-
* This source code is licensed under the MIT license found in the
5-
* LICENSE file in the root directory of this source tree.
6-
*
7-
* @flow strict
8-
*/
1+
// @flow strict
92

103
import { join } from 'path';
114
import { readFileSync } from 'fs';

src/__fixtures__/kitchen-sink.graphql

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,3 @@
1-
# Copyright (c) Facebook, Inc. and its affiliates.
2-
#
3-
# This source code is licensed under the MIT license found in the
4-
# LICENSE file in the root directory of this source tree.
5-
61
query queryName($foo: ComplexType, $site: Site = MOBILE) @onQuery {
72
whoever123is: node(id: [123, 456]) {
83
id ,

src/__fixtures__/schema-kitchen-sink.graphql

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,3 @@
1-
# Copyright (c) Facebook, Inc. and its affiliates.
2-
#
3-
# This source code is licensed under the MIT license found in the
4-
# LICENSE file in the root directory of this source tree.
5-
61
schema {
72
query: QueryType
83
mutation: MutationType

src/__tests__/starWarsData.js

Lines changed: 1 addition & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,4 @@
1-
/**
2-
* Copyright (c) Facebook, Inc. and its affiliates.
3-
*
4-
* This source code is licensed under the MIT license found in the
5-
* LICENSE file in the root directory of this source tree.
6-
*
7-
* @flow strict
8-
*/
1+
// @flow strict
92

103
/**
114
* This defines a basic set of data for our Star Wars Schema.

src/__tests__/starWarsIntrospection-test.js

Lines changed: 1 addition & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,4 @@
1-
/**
2-
* Copyright (c) Facebook, Inc. and its affiliates.
3-
*
4-
* This source code is licensed under the MIT license found in the
5-
* LICENSE file in the root directory of this source tree.
6-
*
7-
* @flow strict
8-
*/
1+
// @flow strict
92

103
import { expect } from 'chai';
114
import { describe, it } from 'mocha';

src/__tests__/starWarsQuery-test.js

Lines changed: 1 addition & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,4 @@
1-
/**
2-
* Copyright (c) Facebook, Inc. and its affiliates.
3-
*
4-
* This source code is licensed under the MIT license found in the
5-
* LICENSE file in the root directory of this source tree.
6-
*
7-
* @flow strict
8-
*/
1+
// @flow strict
92

103
import { expect } from 'chai';
114
import { describe, it } from 'mocha';

src/__tests__/starWarsSchema.js

Lines changed: 1 addition & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,4 @@
1-
/**
2-
* Copyright (c) Facebook, Inc. and its affiliates.
3-
*
4-
* This source code is licensed under the MIT license found in the
5-
* LICENSE file in the root directory of this source tree.
6-
*
7-
* @flow strict
8-
*/
1+
// @flow strict
92

103
import {
114
GraphQLEnumType,

src/__tests__/starWarsValidation-test.js

Lines changed: 1 addition & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,4 @@
1-
/**
2-
* Copyright (c) Facebook, Inc. and its affiliates.
3-
*
4-
* This source code is licensed under the MIT license found in the
5-
* LICENSE file in the root directory of this source tree.
6-
*
7-
* @flow strict
8-
*/
1+
// @flow strict
92

103
import { expect } from 'chai';
114
import { describe, it } from 'mocha';

src/__tests__/version-test.js

Lines changed: 1 addition & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,4 @@
1-
/**
2-
* Copyright (c) Facebook, Inc. and its affiliates.
3-
*
4-
* This source code is licensed under the MIT license found in the
5-
* LICENSE file in the root directory of this source tree.
6-
*
7-
* @flow strict
8-
*/
1+
// @flow strict
92

103
import { expect } from 'chai';
114
import { describe, it } from 'mocha';

src/error/GraphQLError.js

Lines changed: 1 addition & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,4 @@
1-
/**
2-
* Copyright (c) Facebook, Inc. and its affiliates.
3-
*
4-
* This source code is licensed under the MIT license found in the
5-
* LICENSE file in the root directory of this source tree.
6-
*
7-
* @flow strict
8-
*/
1+
// @flow strict
92

103
import { printError } from './printError';
114
import { type ASTNode } from '../language/ast';

src/error/__tests__/GraphQLError-test.js

Lines changed: 1 addition & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,4 @@
1-
/**
2-
* Copyright (c) Facebook, Inc. and its affiliates.
3-
*
4-
* This source code is licensed under the MIT license found in the
5-
* LICENSE file in the root directory of this source tree.
6-
*
7-
* @flow strict
8-
*/
1+
// @flow strict
92

103
import { expect } from 'chai';
114
import { describe, it } from 'mocha';

src/error/__tests__/locatedError-test.js

Lines changed: 1 addition & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,4 @@
1-
/**
2-
* Copyright (c) Facebook, Inc. and its affiliates.
3-
*
4-
* This source code is licensed under the MIT license found in the
5-
* LICENSE file in the root directory of this source tree.
6-
*
7-
* @flow strict
8-
*/
1+
// @flow strict
92

103
import { expect } from 'chai';
114
import { describe, it } from 'mocha';

src/error/__tests__/printError-test.js

Lines changed: 1 addition & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,4 @@
1-
/**
2-
* Copyright (c) Facebook, Inc. and its affiliates.
3-
*
4-
* This source code is licensed under the MIT license found in the
5-
* LICENSE file in the root directory of this source tree.
6-
*
7-
* @flow strict
8-
*/
1+
// @flow strict
92

103
import { expect } from 'chai';
114
import { describe, it } from 'mocha';

src/error/formatError.js

Lines changed: 1 addition & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,4 @@
1-
/**
2-
* Copyright (c) Facebook, Inc. and its affiliates.
3-
*
4-
* This source code is licensed under the MIT license found in the
5-
* LICENSE file in the root directory of this source tree.
6-
*
7-
* @flow strict
8-
*/
1+
// @flow strict
92

103
import invariant from '../jsutils/invariant';
114
import { type GraphQLError } from './GraphQLError';

src/error/index.js

Lines changed: 1 addition & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,4 @@
1-
/**
2-
* Copyright (c) Facebook, Inc. and its affiliates.
3-
*
4-
* This source code is licensed under the MIT license found in the
5-
* LICENSE file in the root directory of this source tree.
6-
*
7-
* @flow strict
8-
*/
1+
// @flow strict
92

103
export { GraphQLError } from './GraphQLError';
114

src/error/locatedError.js

Lines changed: 1 addition & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,4 @@
1-
/**
2-
* Copyright (c) Facebook, Inc. and its affiliates.
3-
*
4-
* This source code is licensed under the MIT license found in the
5-
* LICENSE file in the root directory of this source tree.
6-
*
7-
* @flow strict
8-
*/
1+
// @flow strict
92

103
import { GraphQLError } from './GraphQLError';
114
import { type ASTNode } from '../language/ast';

src/error/printError.js

Lines changed: 1 addition & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,4 @@
1-
/**
2-
* Copyright (c) Facebook, Inc. and its affiliates.
3-
*
4-
* This source code is licensed under the MIT license found in the
5-
* LICENSE file in the root directory of this source tree.
6-
*
7-
* @flow strict
8-
*/
1+
// @flow strict
92

103
import { type SourceLocation, getLocation } from '../language/location';
114
import { type Source } from '../language/source';

src/error/syntaxError.js

Lines changed: 1 addition & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,4 @@
1-
/**
2-
* Copyright (c) Facebook, Inc. and its affiliates.
3-
*
4-
* This source code is licensed under the MIT license found in the
5-
* LICENSE file in the root directory of this source tree.
6-
*
7-
* @flow strict
8-
*/
1+
// @flow strict
92

103
import { type Source } from '../language/source';
114
import { GraphQLError } from './GraphQLError';

src/execution/__tests__/abstract-promise-test.js

Lines changed: 1 addition & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,4 @@
1-
/**
2-
* Copyright (c) Facebook, Inc. and its affiliates.
3-
*
4-
* This source code is licensed under the MIT license found in the
5-
* LICENSE file in the root directory of this source tree.
6-
*
7-
* @flow strict
8-
*/
1+
// @flow strict
92

103
import { expect } from 'chai';
114
import { describe, it } from 'mocha';

src/execution/__tests__/abstract-test.js

Lines changed: 1 addition & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,4 @@
1-
/**
2-
* Copyright (c) Facebook, Inc. and its affiliates.
3-
*
4-
* This source code is licensed under the MIT license found in the
5-
* LICENSE file in the root directory of this source tree.
6-
*
7-
* @flow strict
8-
*/
1+
// @flow strict
92

103
import { expect } from 'chai';
114
import { describe, it } from 'mocha';

src/execution/__tests__/directives-test.js

Lines changed: 1 addition & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,4 @@
1-
/**
2-
* Copyright (c) Facebook, Inc. and its affiliates.
3-
*
4-
* This source code is licensed under the MIT license found in the
5-
* LICENSE file in the root directory of this source tree.
6-
*
7-
* @flow strict
8-
*/
1+
// @flow strict
92

103
import { expect } from 'chai';
114
import { execute } from '../execute';

src/execution/__tests__/executor-test.js

Lines changed: 1 addition & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,4 @@
1-
/**
2-
* Copyright (c) Facebook, Inc. and its affiliates.
3-
*
4-
* This source code is licensed under the MIT license found in the
5-
* LICENSE file in the root directory of this source tree.
6-
*
7-
* @flow strict
8-
*/
1+
// @flow strict
92

103
import { expect } from 'chai';
114
import { describe, it } from 'mocha';

0 commit comments

Comments
 (0)