From 0bc4a7ddb177b9ff800af8bcb192067c4ae05d39 Mon Sep 17 00:00:00 2001 From: Yangshun Tay Date: Tue, 9 Aug 2022 09:42:27 +0800 Subject: [PATCH] fix: revert "update FB template headers (#7842)" (#7926) Revert "chore: update FB template headers (#7842)" This reverts commit 9150c7aefc7bd871f449145bee5bc70767d09eca. --- .../create-docusaurus/templates/facebook/.eslintrc.js | 11 +++++++++-- .../templates/facebook/.stylelintrc.js | 5 +++-- .../templates/facebook/babel.config.js | 5 ++++- .../templates/facebook/docusaurus.config.js | 5 ++++- .../create-docusaurus/templates/facebook/sidebars.js | 5 ++++- .../templates/facebook/src/css/custom.css | 5 ++++- .../templates/facebook/src/pages/index.js | 5 ++++- .../templates/facebook/src/pages/styles.module.css | 5 ++++- 8 files changed, 36 insertions(+), 10 deletions(-) diff --git a/packages/create-docusaurus/templates/facebook/.eslintrc.js b/packages/create-docusaurus/templates/facebook/.eslintrc.js index fd0af9caef..8ccf3b17bd 100644 --- a/packages/create-docusaurus/templates/facebook/.eslintrc.js +++ b/packages/create-docusaurus/templates/facebook/.eslintrc.js @@ -1,5 +1,8 @@ /** - * (c) Meta Platforms, Inc. and affiliates. Confidential and proprietary. + * Copyright (c) Meta Platforms, Inc. and affiliates. + * + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. * * @format */ @@ -32,9 +35,13 @@ module.exports = { 'header/header': [ ERROR, 'block', + [ '*', - ' * (c) Meta Platforms, Inc. and affiliates. Confidential and proprietary.', + ' * Copyright (c) Meta Platforms, Inc. and affiliates.', + ' *', + ' * This source code is licensed under the MIT license found in the', + ' * LICENSE file in the root directory of this source tree.', ' *', // Unfortunately eslint-plugin-header doesn't support optional lines. // If you want to enforce your website JS files to have @flow or @format, diff --git a/packages/create-docusaurus/templates/facebook/.stylelintrc.js b/packages/create-docusaurus/templates/facebook/.stylelintrc.js index 193928a0bb..11b6ffb323 100644 --- a/packages/create-docusaurus/templates/facebook/.stylelintrc.js +++ b/packages/create-docusaurus/templates/facebook/.stylelintrc.js @@ -1,7 +1,8 @@ /** - * (c) Meta Platforms, Inc. and affiliates. Confidential and proprietary. + * Copyright (c) Meta Platforms, Inc. and affiliates. * - * @format + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. */ module.exports = { diff --git a/packages/create-docusaurus/templates/facebook/babel.config.js b/packages/create-docusaurus/templates/facebook/babel.config.js index ce409f0b51..84ad45acbd 100644 --- a/packages/create-docusaurus/templates/facebook/babel.config.js +++ b/packages/create-docusaurus/templates/facebook/babel.config.js @@ -1,5 +1,8 @@ /** - * (c) Meta Platforms, Inc. and affiliates. Confidential and proprietary. + * Copyright (c) Meta Platforms, Inc. and affiliates. + * + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. * * @format */ diff --git a/packages/create-docusaurus/templates/facebook/docusaurus.config.js b/packages/create-docusaurus/templates/facebook/docusaurus.config.js index 3e121344e8..c877fbcb04 100644 --- a/packages/create-docusaurus/templates/facebook/docusaurus.config.js +++ b/packages/create-docusaurus/templates/facebook/docusaurus.config.js @@ -1,5 +1,8 @@ /** - * (c) Meta Platforms, Inc. and affiliates. Confidential and proprietary. + * Copyright (c) Meta Platforms, Inc. and affiliates. + * + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. * * @format */ diff --git a/packages/create-docusaurus/templates/facebook/sidebars.js b/packages/create-docusaurus/templates/facebook/sidebars.js index 2cabe28c42..be7a480ce6 100644 --- a/packages/create-docusaurus/templates/facebook/sidebars.js +++ b/packages/create-docusaurus/templates/facebook/sidebars.js @@ -1,5 +1,8 @@ /** - * (c) Meta Platforms, Inc. and affiliates. Confidential and proprietary. + * Copyright (c) Meta Platforms, Inc. and affiliates. + * + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. * * @format */ diff --git a/packages/create-docusaurus/templates/facebook/src/css/custom.css b/packages/create-docusaurus/templates/facebook/src/css/custom.css index f5efd6d749..2396bcccdb 100644 --- a/packages/create-docusaurus/templates/facebook/src/css/custom.css +++ b/packages/create-docusaurus/templates/facebook/src/css/custom.css @@ -1,5 +1,8 @@ /** - * (c) Meta Platforms, Inc. and affiliates. Confidential and proprietary. + * Copyright (c) Meta Platforms, Inc. and affiliates. + * + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. * * @format */ diff --git a/packages/create-docusaurus/templates/facebook/src/pages/index.js b/packages/create-docusaurus/templates/facebook/src/pages/index.js index 64bfa0d62c..6b378cd9d9 100644 --- a/packages/create-docusaurus/templates/facebook/src/pages/index.js +++ b/packages/create-docusaurus/templates/facebook/src/pages/index.js @@ -1,5 +1,8 @@ /** - * (c) Meta Platforms, Inc. and affiliates. Confidential and proprietary. + * Copyright (c) Meta Platforms, Inc. and affiliates. + * + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. * * @format */ diff --git a/packages/create-docusaurus/templates/facebook/src/pages/styles.module.css b/packages/create-docusaurus/templates/facebook/src/pages/styles.module.css index 50c3bc11c3..e74559a806 100644 --- a/packages/create-docusaurus/templates/facebook/src/pages/styles.module.css +++ b/packages/create-docusaurus/templates/facebook/src/pages/styles.module.css @@ -1,5 +1,8 @@ /** - * (c) Meta Platforms, Inc. and affiliates. Confidential and proprietary. + * Copyright (c) Meta Platforms, Inc. and affiliates. + * + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. * * @format */