Skip to content

Commit

Permalink
Tidy up license headers
Browse files Browse the repository at this point in the history
Reviewed By: cpojer

Differential Revision: D17947101

fbshipit-source-id: 0432558033d8f103e437cbe6b3930fb96b89db77
  • Loading branch information
zertosh authored and facebook-github-bot committed Oct 16, 2019
1 parent 9cece5d commit d9c556c
Show file tree
Hide file tree
Showing 49 changed files with 47 additions and 4 deletions.
1 change: 1 addition & 0 deletions .eslintrc.js
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@
*
* @format
*/

'use strict';

module.exports = {
Expand Down
1 change: 1 addition & 0 deletions flow-typed/console.js.flow
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@
* @flow
* @format
*/

'use strict';

declare module 'console' {
Expand Down
1 change: 1 addition & 0 deletions packages/metro-babel-register/src/babel-register.js
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@
*
* @format
*/

'use strict';

const escapeRegExp = require('escape-string-regexp');
Expand Down
1 change: 1 addition & 0 deletions packages/metro-babel-transformer/src/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@
* @flow
* @format
*/

'use strict';

const {parseSync, transformFromAstSync} = require('@babel/core');
Expand Down
1 change: 1 addition & 0 deletions packages/metro-config/src/defaults/blacklist.js
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@
*
* @format
*/

'use strict';

var path = require('path');
Expand Down
1 change: 1 addition & 0 deletions packages/metro-config/src/defaults/defaults.js
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@
* @flow strict
* @format
*/

'use strict';

const defaultCreateModuleIdFactory = require('metro/src/lib/createModuleIdFactory');
Expand Down
1 change: 1 addition & 0 deletions packages/metro-config/src/defaults/validConfig.js
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@
* @flow
* @format
*/

'use strict';

module.exports = (async () => {
Expand Down
1 change: 1 addition & 0 deletions packages/metro-config/src/oldConfig.js
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@
* @flow
* @format
*/

'use strict';

const blacklist = require('./defaults/blacklist');
Expand Down
1 change: 1 addition & 0 deletions packages/metro-core/src/__tests__/Logger-test.js
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@
* @emails oncall+js_foundation
* @flow strict-local
*/

'use strict';

const {
Expand Down
1 change: 1 addition & 0 deletions packages/metro-minify-uglify/__tests__/minify-test.js
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@
* @format
* @emails oncall+js_foundation
*/

'use strict';

import type {BasicSourceMap} from 'metro-source-map';
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@
*
* @format
*/

'use strict';

module.exports = function() {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@
* @flow
* @format
*/

'use strict';

/* eslint-disable no-multi-str */
Expand Down
1 change: 1 addition & 0 deletions packages/metro-source-map/src/composeSourceMaps.js
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@
* @flow
* @format
*/

'use strict';

// eslint-disable-next-line lint/sort-requires
Expand Down
2 changes: 1 addition & 1 deletion packages/metro-source-map/src/encode.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/**
* Copyright (c) Facebook, Inc. and its affiliates.
* Portions 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.
Expand Down
2 changes: 1 addition & 1 deletion packages/metro-source-map/src/generateFunctionMap.js
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,8 @@
*
* @flow
* @format
*
*/

'use strict';

const B64Builder = require('./B64Builder');
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@
* @emails oncall+metro_bundler
* @format
*/

'use strict';

const getDefaultConfig = require('metro-config/src/defaults');
Expand Down
1 change: 1 addition & 0 deletions packages/metro/src/JSTransformer/__mocks__/worker.js
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@
*
* @format
*/

'use strict';

module.exports = function(data, callback) {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@
* @emails oncall+js_foundation
* @format
*/

'use strict';

const importExportPlugin = require('../import-export-plugin');
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@
* @flow
* @format
*/

'use strict';

const inlinePlugin = require('../inline-plugin');
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@
* @emails oncall+metro_bundler
* @format
*/

'use strict';

jest
Expand Down
1 change: 1 addition & 0 deletions packages/metro/src/ModuleGraph/module.js
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@
* @flow strict-local
* @format
*/

'use strict';

import type {Module} from './types.flow';
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@
* @flow
* @format
*/

'use strict';

'use strict';
Expand Down
1 change: 1 addition & 0 deletions packages/metro/src/ModuleGraph/silent-console.js
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@
* @format
* @flow strict
*/

'use strict';

const {Console} = require('console');
Expand Down
1 change: 1 addition & 0 deletions packages/metro/src/ModuleGraph/test-helpers.js
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@
*
* @format
*/

'use strict';

const generate = require('@babel/generator').default;
Expand Down
1 change: 1 addition & 0 deletions packages/metro/src/ModuleGraph/types.flow.js
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@
* @flow
* @format
*/

'use strict';

import type {Ast} from '@babel/core';
Expand Down
1 change: 1 addition & 0 deletions packages/metro/src/Server/MultipartResponse.js
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@
*
* @format
*/

'use strict';

const CRLF = '\r\n';
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@
* @emails oncall+js_foundation
* @flow
*/

'use strict';

const MultipartResponse = require('../MultipartResponse');
Expand Down
1 change: 1 addition & 0 deletions packages/metro/src/Server/symbolicate.js
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@
* @flow strict-local
* @format
*/

'use strict';

const {greatestLowerBound} = require('metro-source-map/src/Consumer/search');
Expand Down
1 change: 1 addition & 0 deletions packages/metro/src/__mocks__/debug.js
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@
* @format
* @flow strict
*/

'use strict';

module.exports = () => () => {};
1 change: 1 addition & 0 deletions packages/metro/src/__tests__/HmrServer-test.js
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@
* @format
* @emails oncall+js_foundation
*/

'use strict';

const HmrServer = require('../HmrServer');
Expand Down
1 change: 1 addition & 0 deletions packages/metro/src/assetTransformer.js
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@
* @flow
* @format
*/

'use strict';

const path = require('path');
Expand Down
1 change: 0 additions & 1 deletion packages/metro/src/cli.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
#!/usr/bin/env node

/**
* Copyright (c) Facebook, Inc. and its affiliates.
*
Expand Down
1 change: 1 addition & 0 deletions packages/metro/src/lib/RamBundleParser.js
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@
* @format
* @flow strict
*/

'use strict';

const MAGIC_NUMBER = require('../shared/output/RamBundle/magic-number');
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@
* @emails oncall+js_foundation
* @flow strict
*/

'use strict';

const addParamsToDefineCall = require('../addParamsToDefineCall');
Expand Down
1 change: 1 addition & 0 deletions packages/metro/src/lib/bundle-modules/HMRClient.js
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@
* @flow strict-local
* @format
*/

'use strict';

const EventEmitter = require('eventemitter3');
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@
* @emails oncall+js_foundation
* @format
*/

'use strict';

const HMRClient = require('../HMRClient');
Expand Down
1 change: 1 addition & 0 deletions packages/metro/src/shared/output/RamBundle/as-assets.js
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@
* @flow
* @format
*/

'use strict';

const MAGIC_RAM_BUNDLE_NUMBER = require('./magic-number');
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@
* @flow
* @format
*/

'use strict';

const MAGIC_UNBUNDLE_FILE_HEADER = require('./magic-number');
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@
* @flow strict-local
* @format
*/

'use strict';

const {
Expand Down
1 change: 1 addition & 0 deletions packages/metro/src/shared/output/RamBundle/magic-number.js
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@
* @flow strict
* @format
*/

'use strict';

module.exports = 0xfb0bd1e5;
1 change: 1 addition & 0 deletions packages/metro/src/shared/output/RamBundle/util.js
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@
* @flow strict-local
* @format
*/

'use strict';

const invariant = require('invariant');
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@
* @flow strict-local
* @format
*/

'use strict';

const writeFile = require('../writeFile');
Expand Down
1 change: 1 addition & 0 deletions packages/metro/src/shared/output/__tests__/meta-test.js
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@
* @emails oncall+js_foundation
* @flow strict
*/

'use strict';

const meta = require('../meta');
Expand Down
1 change: 1 addition & 0 deletions packages/metro/src/shared/output/meta.js
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@
* @flow strict
* @format
*/

'use strict';

/* global Buffer: true */
Expand Down
1 change: 1 addition & 0 deletions packages/metro/src/shared/output/writeFile.js
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@
* @flow
* @format
*/

'use strict';

const denodeify = require('denodeify');
Expand Down
1 change: 1 addition & 0 deletions packages/metro/src/shared/types.flow.js
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@
* @flow strict-local
* @format
*/

'use strict';

import type {Options as DeltaBundlerOptions} from '../DeltaBundler/types.flow';
Expand Down
1 change: 1 addition & 0 deletions scripts/createSubpackage.js
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@
*
* @format
*/

'use strict';

const fs = require('fs');
Expand Down
1 change: 0 additions & 1 deletion scripts/mapCoverage.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,6 @@
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree.
*
*/

/**
Expand Down
1 change: 1 addition & 0 deletions scripts/setupJest.js
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@
*
* @format
*/

'use strict';

global.Promise = require('promise');

0 comments on commit d9c556c

Please sign in to comment.