[ez] Run copyright script
Lauren Tan committed
Nov 2, 2023 at 12:43 UTC
d49eb8b580b535ea234275e10aa166cae461cd74
21 files changed
+135
-1
compiler/apps/playground/babel.config.js
+7
@@ -1,3 +1,10 @@
1
+/**
2
+ * Copyright (c) Meta Platforms, Inc. and 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
+
8
module.exports = function (api) {
9
api.cache(true);
10
return {
compiler/apps/playground/components/Editor/index.tsx
+7
@@ -1,3 +1,10 @@
1
+/**
2
+ * Copyright (c) Meta Platforms, Inc. and 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
+
8
import dynamic from "next/dynamic";
9
10
// monaco-editor is currently not compatible with ssr
compiler/apps/playground/next-env.d.ts
+7
@@ -1,3 +1,10 @@
1
+/**
2
+ * Copyright (c) Meta Platforms, Inc. and 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
+
8
/// <reference types="next" />
9
/// <reference types="next/image-types/global" />
10
compiler/packages/babel-plugin-react-forget/rollup.config.js
+7
@@ -1,3 +1,10 @@
1
+/**
2
+ * Copyright (c) Meta Platforms, Inc. and 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
+
8
import typescript from "@rollup/plugin-typescript";
9
import { nodeResolve } from "@rollup/plugin-node-resolve";
10
import commonjs from "@rollup/plugin-commonjs";
compiler/packages/babel-plugin-react-forget/src/Entrypoint/Gating.ts
+7
@@ -1,3 +1,10 @@
1
+/**
2
+ * Copyright (c) Meta Platforms, Inc. and 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
+
8
import { NodePath } from "@babel/core";
9
import * as t from "@babel/types";
10
import { PluginOptions } from "./Options";
compiler/packages/babel-plugin-react-forget/src/Entrypoint/Imports.ts
+7
@@ -1,3 +1,10 @@
1
+/**
2
+ * Copyright (c) Meta Platforms, Inc. and 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
+
8
import { NodePath } from "@babel/core";
9
import * as t from "@babel/types";
10
import { CompilerError } from "../CompilerError";
compiler/packages/babel-plugin-react-forget/src/Entrypoint/index.ts
+7
@@ -1,3 +1,10 @@
1
+/**
2
+ * Copyright (c) Meta Platforms, Inc. and 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
+
8
export * from "./Gating";
9
export * from "./Imports";
10
export * from "./Instrumentation";
compiler/packages/babel-plugin-react-forget/src/HIR/FindContextIdentifiers.ts
+7
@@ -1,3 +1,10 @@
1
+/**
2
+ * Copyright (c) Meta Platforms, Inc. and 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
+
8
import type { NodePath } from "@babel/traverse";
9
import type * as t from "@babel/types";
10
import { CompilerError } from "../CompilerError";
compiler/packages/babel-plugin-react-forget/src/Inference/InlineImmediatelyInvokedFunctionExpressions.ts
+1
-1
@@ -1,5 +1,5 @@
1
/**
2
- * Copyright (c) Facebook, Inc. and its affiliates.
2
+ * Copyright (c) Meta Platforms, Inc. and 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.
compiler/packages/babel-plugin-react-forget/src/ReactiveScopes/PruneHoistedContexts.ts
+7
@@ -1,3 +1,10 @@
1
+/**
2
+ * Copyright (c) Meta Platforms, Inc. and 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
+
8
import {
9
Identifier,
10
InstructionKind,
compiler/packages/babel-plugin-react-forget/src/Utils/ComponentDeclaration.ts
+7
@@ -1,3 +1,10 @@
1
+/**
2
+ * Copyright (c) Meta Platforms, Inc. and 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
+
8
import * as t from "@babel/types";
9
10
export type ComponentDeclaration = t.FunctionDeclaration & {
compiler/packages/babel-plugin-react-forget/src/Validation/ValidateNoSetStateInRender.ts
+7
@@ -1,3 +1,10 @@
1
+/**
2
+ * Copyright (c) Meta Platforms, Inc. and 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
+
8
import { CompilerError, ErrorSeverity } from "../CompilerError";
9
import {
10
BlockId,
compiler/packages/eslint-plugin-react-forget/__tests__/ReactForgetDiagnostics-test.ts
+7
@@ -1,3 +1,10 @@
1
+/**
2
+ * Copyright (c) Meta Platforms, Inc. and 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
+
8
import BabelESLintParser from "@babel/eslint-parser";
9
import { RuleTester as ESLintTester } from "eslint";
10
import ReactForgetDiagnostics from "../src/rules/ReactForgetDiagnostics";
compiler/packages/eslint-plugin-react-forget/rollup.config.js
+7
@@ -1,3 +1,10 @@
1
+/**
2
+ * Copyright (c) Meta Platforms, Inc. and 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
+
8
import typescript from "@rollup/plugin-typescript";
9
import { nodeResolve } from "@rollup/plugin-node-resolve";
10
import commonjs from "@rollup/plugin-commonjs";
compiler/packages/eslint-plugin-react-forget/src/types/hermes-parser.d.ts
+7
@@ -1,3 +1,10 @@
1
+/**
2
+ * Copyright (c) Meta Platforms, Inc. and 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
+
8
// v0.12.1
9
declare module "hermes-parser" {
10
type HermesParserOptions = {
compiler/packages/fixture-test-utils/src/compiler-utils.ts
+7
@@ -1,3 +1,10 @@
1
+/**
2
+ * Copyright (c) Meta Platforms, Inc. and 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
+
8
import assert from "assert";
9
import type { runReactForgetBabelPlugin as RunReactForgetBabelPlugin } from "babel-plugin-react-forget/src/Babel/RunReactForgetBabelPlugin";
10
import { CompilationMode } from "babel-plugin-react-forget/src/Entrypoint";
compiler/packages/fixture-test-utils/src/constants.ts
+7
@@ -1,3 +1,10 @@
1
+/**
2
+ * Copyright (c) Meta Platforms, Inc. and 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
+
8
import path from "path";
9
10
// We assume this is run from `babel-plugin-react-forget`
compiler/packages/fixture-test-utils/src/fixture-utils.ts
+7
@@ -1,3 +1,10 @@
1
+/**
2
+ * Copyright (c) Meta Platforms, Inc. and 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
+
8
import fs from "fs/promises";
9
import glob from "glob";
10
import path from "path";
compiler/packages/fixture-test-utils/src/index.ts
+7
@@ -1,3 +1,10 @@
1
+/**
2
+ * Copyright (c) Meta Platforms, Inc. and 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
+
8
export * from "./constants";
9
export * from "./fixture-utils";
10
export * from "./compiler-utils";
compiler/packages/sprout/src/SproutTodoFilter.ts
+7
@@ -1,3 +1,10 @@
1
+/**
2
+ * Copyright (c) Meta Platforms, Inc. and 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
+
8
const skipFilter = new Set([
9
/**
10
* Category A:
compiler/packages/sprout/src/shared-runtime.ts
+1
@@ -4,6 +4,7 @@
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
+
8
import React from "react";
9
10
/**