Skip to content

Commit

Permalink
Fix lint error and remove unused utils
Browse files Browse the repository at this point in the history
  • Loading branch information
louwie17 committed Mar 13, 2023
1 parent 62a6891 commit fdca43d
Show file tree
Hide file tree
Showing 4 changed files with 7 additions and 54 deletions.
Expand Up @@ -5,11 +5,6 @@ import { Template } from '@wordpress/blocks';
import { createElement, useMemo, useLayoutEffect } from '@wordpress/element';
import { Product } from '@woocommerce/data';
import { useSelect, select as WPSelect, useDispatch } from '@wordpress/data';
import {
// eslint-disable-next-line @typescript-eslint/ban-ts-comment
// @ts-ignore store should be included.
useEntityBlockEditor,
} from '@wordpress/core-data';
import { uploadMedia } from '@wordpress/media-utils';
import {
// eslint-disable-next-line @typescript-eslint/ban-ts-comment
Expand All @@ -27,6 +22,13 @@ import {
WritingFlow,
ObserveTyping,
} from '@wordpress/block-editor';
// It doesn't seem to notice the External dependency block whn @ts-ignore is added.
// eslint-disable-next-line @woocommerce/dependency-group
import {
// eslint-disable-next-line @typescript-eslint/ban-ts-comment
// @ts-ignore store should be included.
useEntityBlockEditor,
} from '@wordpress/core-data';

/**
* Internal dependencies
Expand Down
1 change: 0 additions & 1 deletion packages/js/product-editor/src/utils/index.ts
Expand Up @@ -20,7 +20,6 @@ import { preventLeavingProductForm } from './prevent-leaving-product-form';
export * from './create-ordered-children';
export * from './sort-fills-by-order';
export * from './init-blocks';
export * from './register-template';

export {
AUTO_DRAFT_NAME,
Expand Down
22 changes: 0 additions & 22 deletions packages/js/product-editor/src/utils/parse-product-to-blocks.ts

This file was deleted.

26 changes: 0 additions & 26 deletions packages/js/product-editor/src/utils/register-template.tsx

This file was deleted.

0 comments on commit fdca43d

Please sign in to comment.