refactor: add blank lines below all copyright headers (#6071)

This commit is contained in:
Joshua Chen 2021-12-09 11:53:46 +08:00 committed by GitHub
parent 9433dcbe60
commit fd966b5395
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
25 changed files with 23 additions and 12 deletions

View file

@ -4,6 +4,7 @@
* This source code is licensed under the MIT license found in the * This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree. * LICENSE file in the root directory of this source tree.
*/ */
import {Handler} from '@netlify/functions'; import {Handler} from '@netlify/functions';
import { import {

View file

@ -1,9 +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.
*/
import React from 'react'; import React from 'react';
import clsx from 'clsx'; import clsx from 'clsx';
import styles from './HomepageFeatures.module.css'; import styles from './HomepageFeatures.module.css';

View file

@ -1,9 +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.
*/
import React from 'react'; import React from 'react';
import clsx from 'clsx'; import clsx from 'clsx';
import styles from './HomepageFeatures.module.css'; import styles from './HomepageFeatures.module.css';

View file

@ -4,6 +4,7 @@
* This source code is licensed under the MIT license found in the * This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree. * LICENSE file in the root directory of this source tree.
*/ */
import fs from 'fs-extra'; import fs from 'fs-extra';
import path from 'path'; import path from 'path';

View file

@ -4,6 +4,7 @@
* This source code is licensed under the MIT license found in the * This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree. * LICENSE file in the root directory of this source tree.
*/ */
import type {PluginOptions} from './types'; import type {PluginOptions} from './types';
import { import {
Joi, Joi,

View file

@ -4,6 +4,7 @@
* This source code is licensed under the MIT license found in the * This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree. * LICENSE file in the root directory of this source tree.
*/ */
import {PluginOptions} from './types'; import {PluginOptions} from './types';
import { import {
Joi, Joi,

View file

@ -4,6 +4,7 @@
* This source code is licensed under the MIT license found in the * This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree. * LICENSE file in the root directory of this source tree.
*/ */
import {LoadContext, Plugin} from '@docusaurus/types'; import {LoadContext, Plugin} from '@docusaurus/types';
import type {PluginOptions} from '@docusaurus/plugin-ideal-image'; import type {PluginOptions} from '@docusaurus/plugin-ideal-image';
import {Configuration} from 'webpack'; import {Configuration} from 'webpack';

View file

@ -4,6 +4,7 @@
* This source code is licensed under the MIT license found in the * This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree. * LICENSE file in the root directory of this source tree.
*/ */
import path from 'path'; import path from 'path';
import {Joi} from '@docusaurus/utils-validation'; import {Joi} from '@docusaurus/utils-validation';
import type { import type {

View file

@ -4,6 +4,7 @@
* This source code is licensed under the MIT license found in the * This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree. * LICENSE file in the root directory of this source tree.
*/ */
import {createStorageSlot} from '@docusaurus/theme-common'; import {createStorageSlot} from '@docusaurus/theme-common';
// First: read the env variables (provided by Webpack) // First: read the env variables (provided by Webpack)

View file

@ -4,6 +4,7 @@
* This source code is licensed under the MIT license found in the * This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree. * LICENSE file in the root directory of this source tree.
*/ */
import React, { import React, {
createContext, createContext,
ReactNode, ReactNode,

View file

@ -4,6 +4,7 @@
* This source code is licensed under the MIT license found in the * This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree. * LICENSE file in the root directory of this source tree.
*/ */
import {useCallback} from 'react'; import {useCallback} from 'react';
import {useDocsPreferredVersionContext} from './DocsPreferredVersionProvider'; import {useDocsPreferredVersionContext} from './DocsPreferredVersionProvider';
import {useAllDocsData, useDocsData, GlobalVersion} from '@theme/hooks/useDocs'; import {useAllDocsData, useDocsData, GlobalVersion} from '@theme/hooks/useDocs';

View file

@ -4,6 +4,7 @@
* This source code is licensed under the MIT license found in the * This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree. * LICENSE file in the root directory of this source tree.
*/ */
import useDocusaurusContext from '@docusaurus/useDocusaurusContext'; import useDocusaurusContext from '@docusaurus/useDocusaurusContext';
export const useTitleFormatter = (title?: string | undefined): string => { export const useTitleFormatter = (title?: string | undefined): string => {

View file

@ -4,6 +4,7 @@
* This source code is licensed under the MIT license found in the * This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree. * LICENSE file in the root directory of this source tree.
*/ */
import {useAllDocsData, useActivePluginAndVersion} from '@theme/hooks/useDocs'; import {useAllDocsData, useActivePluginAndVersion} from '@theme/hooks/useDocs';
import {useDocsPreferredVersionByPluginId} from './docsPreferredVersion/useDocsPreferredVersion'; import {useDocsPreferredVersionByPluginId} from './docsPreferredVersion/useDocsPreferredVersion';
import {docVersionSearchTag, DEFAULT_SEARCH_TAG} from './searchUtils'; import {docVersionSearchTag, DEFAULT_SEARCH_TAG} from './searchUtils';

View file

@ -4,6 +4,7 @@
* This source code is licensed under the MIT license found in the * This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree. * LICENSE file in the root directory of this source tree.
*/ */
import useDocusaurusContext from '@docusaurus/useDocusaurusContext'; import useDocusaurusContext from '@docusaurus/useDocusaurusContext';
import {PrismTheme} from 'prism-react-renderer'; import {PrismTheme} from 'prism-react-renderer';
import {CSSProperties} from 'react'; import {CSSProperties} from 'react';

View file

@ -4,6 +4,7 @@
* This source code is licensed under the MIT license found in the * This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree. * LICENSE file in the root directory of this source tree.
*/ */
import path from 'path'; import path from 'path';
import fs from 'fs-extra'; import fs from 'fs-extra';
import { import {

View file

@ -4,6 +4,7 @@
* This source code is licensed under the MIT license found in the * This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree. * LICENSE file in the root directory of this source tree.
*/ */
import Joi from './Joi'; import Joi from './Joi';
import chalk from 'chalk'; import chalk from 'chalk';
import {PluginIdSchema} from './validationSchemas'; import {PluginIdSchema} from './validationSchemas';

View file

@ -4,6 +4,7 @@
* This source code is licensed under the MIT license found in the * This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree. * LICENSE file in the root directory of this source tree.
*/ */
import path from 'path'; import path from 'path';
import {ConfigAPI, TransformOptions} from '@babel/core'; import {ConfigAPI, TransformOptions} from '@babel/core';

View file

@ -4,6 +4,7 @@
* This source code is licensed under the MIT license found in the * This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree. * LICENSE file in the root directory of this source tree.
*/ */
import {ConfigOptions, InitializedPlugin} from '@docusaurus/types'; import {ConfigOptions, InitializedPlugin} from '@docusaurus/types';
import path from 'path'; import path from 'path';
import {loadContext, loadPluginConfigs} from '../server'; import {loadContext, loadPluginConfigs} from '../server';

View file

@ -4,6 +4,7 @@
* This source code is licensed under the MIT license found in the * This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree. * LICENSE file in the root directory of this source tree.
*/ */
import { import {
getAllDuplicateRoutes, getAllDuplicateRoutes,
getDuplicateRoutesMessage, getDuplicateRoutesMessage,

View file

@ -4,6 +4,7 @@
* This source code is licensed under the MIT license found in the * This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree. * LICENSE file in the root directory of this source tree.
*/ */
import {RouteConfig} from '@docusaurus/types'; import {RouteConfig} from '@docusaurus/types';
import {getAllFinalRoutes} from '../utils'; import {getAllFinalRoutes} from '../utils';

View file

@ -4,6 +4,7 @@
* This source code is licensed under the MIT license found in the * This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree. * LICENSE file in the root directory of this source tree.
*/ */
import {ReportingSeverity, RouteConfig} from '@docusaurus/types'; import {ReportingSeverity, RouteConfig} from '@docusaurus/types';
import {reportMessage} from '@docusaurus/utils'; import {reportMessage} from '@docusaurus/utils';
import {getAllFinalRoutes} from './utils'; import {getAllFinalRoutes} from './utils';

View file

@ -4,6 +4,7 @@
* This source code is licensed under the MIT license found in the * This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree. * LICENSE file in the root directory of this source tree.
*/ */
import {I18n, DocusaurusConfig, I18nLocaleConfig} from '@docusaurus/types'; import {I18n, DocusaurusConfig, I18nLocaleConfig} from '@docusaurus/types';
import path from 'path'; import path from 'path';
import {normalizeUrl, NODE_MAJOR_VERSION} from '@docusaurus/utils'; import {normalizeUrl, NODE_MAJOR_VERSION} from '@docusaurus/utils';

View file

@ -4,6 +4,7 @@
* This source code is licensed under the MIT license found in the * This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree. * LICENSE file in the root directory of this source tree.
*/ */
import path from 'path'; import path from 'path';
import fs from 'fs-extra'; import fs from 'fs-extra';
import {mapValues, difference} from 'lodash'; import {mapValues, difference} from 'lodash';

View file

@ -4,6 +4,7 @@
* This source code is licensed under the MIT license found in the * This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree. * LICENSE file in the root directory of this source tree.
*/ */
import fs from 'fs-extra'; import fs from 'fs-extra';
import traverse, {Node} from '@babel/traverse'; import traverse, {Node} from '@babel/traverse';
import generate from '@babel/generator'; import generate from '@babel/generator';

View file

@ -4,6 +4,7 @@
* This source code is licensed under the MIT license found in the * This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree. * LICENSE file in the root directory of this source tree.
*/ */
import WebpackBar from 'webpackbar'; import WebpackBar from 'webpackbar';
import {Compiler} from 'webpack'; import {Compiler} from 'webpack';
import formatWebpackMessages from 'react-dev-utils/formatWebpackMessages'; import formatWebpackMessages from 'react-dev-utils/formatWebpackMessages';