Skip to content

Commit

Permalink
- move rimraf and prettier to the root package.json
Browse files Browse the repository at this point in the history
- run `npm run format`
  • Loading branch information
jasonbahl committed Sep 13, 2024
1 parent ac1085c commit 14ff396
Show file tree
Hide file tree
Showing 9 changed files with 12 additions and 568 deletions.
545 changes: 1 addition & 544 deletions package-lock.json

Large diffs are not rendered by default.

2 changes: 0 additions & 2 deletions packages/block-editor-utils/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -29,8 +29,6 @@
"@wordpress/jest-preset-default": "^11.14.0",
"jest": "29.7.0",
"jest-environment-jsdom": "29.7.0",
"prettier": "^3.3.3",
"rimraf": "^4.4.0",
"ts-jest": "29.1.1"
},
"scripts": {
Expand Down
4 changes: 1 addition & 3 deletions packages/blocks/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -16,9 +16,7 @@
"devDependencies": {
"@testing-library/jest-dom": "^5.16.5",
"@types/node": "^18.0.6",
"@types/react": "^17.0.34",
"prettier": "^3.3.3",
"rimraf": "^4.4.0"
"@types/react": "^17.0.34"
},
"scripts": {
"prebuild": "npm run clean",
Expand Down
2 changes: 1 addition & 1 deletion packages/blocks/src/blocks/CoreButton.tsx
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import { gql } from '@apollo/client';
import React from 'react';
import Link from 'next/link';
import Link from 'next/link.js';
import { useBlocksTheme } from '../components/WordPressBlocksProvider.js';
import { ContentBlock } from '../components/WordPressBlocksViewer.js';
import { getStyles } from '../utils/index.js';
Expand Down
12 changes: 4 additions & 8 deletions packages/blocks/src/utils/from-theme-json/getSluggedProps.ts
Original file line number Diff line number Diff line change
Expand Up @@ -12,12 +12,8 @@ export function getSluggedProps<T extends Slugged, Key extends keyof T>(
listProps: T[],
valueProp: Key,
): Record<string, unknown> {
const res = Object.entries(listProps).reduce(
(acc, [, value]) => {
acc[value.slug] = value[valueProp];
return acc;
},
{} as Record<string, unknown>,
);
return res;
return Object.entries(listProps).reduce((acc, [, value]) => {
acc[value.slug] = value[valueProp];
return acc;
}, {} as Record<string, unknown>);
}
2 changes: 0 additions & 2 deletions packages/faustwp-cli/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -19,8 +19,6 @@
"@types/prompt": "1.1.2",
"fetch-mock-jest": "^1.5.1",
"jest-environment-jsdom": "29.6.4",
"prettier": "^3.3.3",
"rimraf": "5.0.5",
"ts-jest": "^29.1.1",
"typescript": "^4.9.5"
},
Expand Down
2 changes: 0 additions & 2 deletions packages/faustwp-core/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -26,8 +26,6 @@
"concurrently": "^7.6.0",
"fetch-mock": "9.11.0",
"jest": "^27.3.1",
"prettier": "^3.3.3",
"rimraf": "^3.0.2",
"shx": "^0.3.4",
"ts-jest": "^27.0.7",
"ts-loader": "^9.2.6",
Expand Down
3 changes: 1 addition & 2 deletions packages/faustwp-core/src/styles/wpcore/_dashicons.scss

Large diffs are not rendered by default.

Original file line number Diff line number Diff line change
Expand Up @@ -79,7 +79,7 @@ describe('<WordPressTemplate />', () => {
() =>
({
query: clientQueryMock,
}) as any as ApolloClient<NormalizedCacheObject>,
} as any as ApolloClient<NormalizedCacheObject>),
);

delete (window as any).location;
Expand Down Expand Up @@ -117,7 +117,7 @@ describe('<WordPressTemplate />', () => {
() =>
({
query: clientQueryMock,
}) as any as ApolloClient<NormalizedCacheObject>,
} as any as ApolloClient<NormalizedCacheObject>),
);

delete (window as any).location;
Expand Down Expand Up @@ -249,7 +249,7 @@ describe('<WordPressTemplateInternal />', () => {
() =>
({
query: clientQueryMock,
}) as any as ApolloClient<NormalizedCacheObject>,
} as any as ApolloClient<NormalizedCacheObject>),
);
clientQueryMock.mockImplementation(() => ({
data: {
Expand Down Expand Up @@ -303,7 +303,7 @@ describe('<WordPressTemplateInternal />', () => {
() =>
({
query: clientQueryMock,
}) as any as ApolloClient<NormalizedCacheObject>,
} as any as ApolloClient<NormalizedCacheObject>),
);

clientQueryMock.mockImplementationOnce(() => ({
Expand Down

0 comments on commit 14ff396

Please sign in to comment.