Renaming App to app, and including prettier deps

This commit is contained in:
Joel Thiessen 2021-03-30 09:26:02 -07:00
parent a320be734e
commit 322dc12755
4 changed files with 29 additions and 30 deletions

View File

@ -22,7 +22,9 @@
"devDependencies": { "devDependencies": {
"@woocommerce/dependency-extraction-webpack-plugin": "1.4.0", "@woocommerce/dependency-extraction-webpack-plugin": "1.4.0",
"@woocommerce/eslint-plugin": "1.1.0", "@woocommerce/eslint-plugin": "1.1.0",
"@wordpress/scripts": "^13.0.3" "@wordpress/prettier-config": "^1.0.1",
"@wordpress/scripts": "^13.0.3",
"prettier": "^2.2.1"
}, },
"dependencies": { "dependencies": {
"@woocommerce/data": "^1.1.1", "@woocommerce/data": "^1.1.1",

View File

@ -11,9 +11,7 @@ import { AdminNotes } from '../admin-notes';
import { Tools } from '../tools'; import { Tools } from '../tools';
import { default as Options } from '../options'; import { default as Options } from '../options';
const tabs = applyFilters( const tabs = applyFilters('woocommerce_admin_test_helper_tabs', [
'woocommerce_admin_test_helper_tabs',
[
{ {
name: 'options', name: 'options',
title: 'Options', title: 'Options',
@ -29,8 +27,7 @@ const tabs = applyFilters(
title: 'Tools', title: 'Tools',
content: <Tools />, content: <Tools />,
}, },
] ]);
);
export function App() { export function App() {
return ( return (

View File

@ -6,7 +6,7 @@ import { render } from '@wordpress/element';
/** /**
* Internal dependencies * Internal dependencies
*/ */
import { App } from './App'; import { App } from './app';
import './index.scss'; import './index.scss';
const appRoot = document.getElementById( const appRoot = document.getElementById(