Skip to content

Commit

Permalink
Merge pull request ampproject#7600 from ampproject/add/eslint-plugin-…
Browse files Browse the repository at this point in the history
…prettier

Add `eslint-plugin-prettier`; Bump prettier from 2.8.8 to 3.0.2
  • Loading branch information
westonruter authored Aug 17, 2023
2 parents 1aa9a63 + bb489b9 commit aa2473e
Show file tree
Hide file tree
Showing 4 changed files with 319 additions and 16 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,8 @@ BlockEditWithToolbar.propTypes = {
* Filters the block edit function of all blocks.
*/
export const withAMPToolbarButton = createHigherOrderComponent(
(BlockEdit) => (props) =>
<BlockEditWithToolbar {...props} BlockEdit={BlockEdit} />,
(BlockEdit) => (props) => (
<BlockEditWithToolbar {...props} BlockEdit={BlockEdit} />
),
'BlockEditWithAMPToolbar'
);
11 changes: 5 additions & 6 deletions assets/src/onboarding-wizard/setup-wizard.js
Original file line number Diff line number Diff line change
Expand Up @@ -61,12 +61,11 @@ export function SetupWizard({ closeLink, finishLink, appRoot }) {
}, [fetchScannableUrls]);

const PageComponentWithSideEffects = useMemo(
() => () =>
(
<PageComponentSideEffects>
<PageComponent />
</PageComponentSideEffects>
),
() => () => (
<PageComponentSideEffects>
<PageComponent />
</PageComponentSideEffects>
),
// eslint-disable-next-line react-hooks/exhaustive-deps
[PageComponent]
);
Expand Down
Loading

0 comments on commit aa2473e

Please sign in to comment.