From ce369fd1877d42e5b7f1e4e02accbf252efab1c9 Mon Sep 17 00:00:00 2001 From: George Mamadashvili Date: Mon, 22 Aug 2022 15:27:47 +0400 Subject: [PATCH] Remove duplicated 'dependency' comments --- packages/block-editor/src/components/rich-text/use-enter.js | 3 --- packages/components/src/dimension-control/index.js | 6 +----- .../components/src/navigator/navigator-back-button/hook.ts | 3 --- packages/components/src/navigator/navigator-button/hook.ts | 3 --- packages/e2e-test-utils-playwright/src/admin/index.ts | 3 --- .../edit-navigation/src/filters/add-menu-name-editor.js | 5 +++-- .../edit-site/src/components/header/mode-switcher/index.js | 3 --- .../interface/src/components/interface-skeleton/index.js | 3 --- 8 files changed, 4 insertions(+), 25 deletions(-) diff --git a/packages/block-editor/src/components/rich-text/use-enter.js b/packages/block-editor/src/components/rich-text/use-enter.js index 05dd3d3ae6d3c8..1c05a423da1400 100644 --- a/packages/block-editor/src/components/rich-text/use-enter.js +++ b/packages/block-editor/src/components/rich-text/use-enter.js @@ -1,6 +1,3 @@ -/** - * WordPress dependencies - */ /** * WordPress dependencies */ diff --git a/packages/components/src/dimension-control/index.js b/packages/components/src/dimension-control/index.js index 9c22ba7487c9e4..3e782e748a90d4 100644 --- a/packages/components/src/dimension-control/index.js +++ b/packages/components/src/dimension-control/index.js @@ -6,17 +6,13 @@ import classnames from 'classnames'; /** * WordPress dependencies */ -/** - * Internal dependencies - */ -import { Icon, SelectControl } from '../'; import { __ } from '@wordpress/i18n'; - import { Fragment } from '@wordpress/element'; /** * Internal dependencies */ +import { Icon, SelectControl } from '../'; import sizesTable, { findSizeBySlug } from './sizes'; export function DimensionControl( props ) { diff --git a/packages/components/src/navigator/navigator-back-button/hook.ts b/packages/components/src/navigator/navigator-back-button/hook.ts index 6e1e3240312aa0..5e7adabf3d9bb7 100644 --- a/packages/components/src/navigator/navigator-back-button/hook.ts +++ b/packages/components/src/navigator/navigator-back-button/hook.ts @@ -3,9 +3,6 @@ */ import { useCallback } from '@wordpress/element'; -/** - * Internal dependencies - */ /** * Internal dependencies */ diff --git a/packages/components/src/navigator/navigator-button/hook.ts b/packages/components/src/navigator/navigator-button/hook.ts index ccf6644ade5a0d..a892ab9456c8b7 100644 --- a/packages/components/src/navigator/navigator-button/hook.ts +++ b/packages/components/src/navigator/navigator-button/hook.ts @@ -4,9 +4,6 @@ import { useCallback } from '@wordpress/element'; import { escapeAttribute } from '@wordpress/escape-html'; -/** - * Internal dependencies - */ /** * Internal dependencies */ diff --git a/packages/e2e-test-utils-playwright/src/admin/index.ts b/packages/e2e-test-utils-playwright/src/admin/index.ts index ee7ebe406fc25f..5597e1fddc18c3 100644 --- a/packages/e2e-test-utils-playwright/src/admin/index.ts +++ b/packages/e2e-test-utils-playwright/src/admin/index.ts @@ -3,9 +3,6 @@ */ import type { Browser, Page, BrowserContext } from '@playwright/test'; -/** - * Internal dependencies - */ /** * Internal dependencies */ diff --git a/packages/edit-navigation/src/filters/add-menu-name-editor.js b/packages/edit-navigation/src/filters/add-menu-name-editor.js index 030fd7da961b6e..f69df77f8080fc 100644 --- a/packages/edit-navigation/src/filters/add-menu-name-editor.js +++ b/packages/edit-navigation/src/filters/add-menu-name-editor.js @@ -1,11 +1,12 @@ /** * WordPress dependencies */ +import { addFilter } from '@wordpress/hooks'; +import { createHigherOrderComponent } from '@wordpress/compose'; + /** * Internal dependencies */ -import { addFilter } from '@wordpress/hooks'; -import { createHigherOrderComponent } from '@wordpress/compose'; import NameDisplay from '../components/name-display'; const addMenuNameEditor = createHigherOrderComponent( diff --git a/packages/edit-site/src/components/header/mode-switcher/index.js b/packages/edit-site/src/components/header/mode-switcher/index.js index 98e04b64c23a4c..f4b63edfae6e80 100644 --- a/packages/edit-site/src/components/header/mode-switcher/index.js +++ b/packages/edit-site/src/components/header/mode-switcher/index.js @@ -6,9 +6,6 @@ import { MenuItemsChoice, MenuGroup } from '@wordpress/components'; import { useSelect, useDispatch } from '@wordpress/data'; import { store as keyboardShortcutsStore } from '@wordpress/keyboard-shortcuts'; -/** - * Internal dependencies - */ /** * Internal dependencies */ diff --git a/packages/interface/src/components/interface-skeleton/index.js b/packages/interface/src/components/interface-skeleton/index.js index b7b3864820b650..dc7b672f75325e 100644 --- a/packages/interface/src/components/interface-skeleton/index.js +++ b/packages/interface/src/components/interface-skeleton/index.js @@ -3,9 +3,6 @@ */ import classnames from 'classnames'; -/** - * WordPress dependencies - */ /** * WordPress dependencies */