From ba45aaa81bd5c4d768e315ff57520738b6b59777 Mon Sep 17 00:00:00 2001 From: Peter Johanson Date: Wed, 9 Jun 2021 14:55:33 +0000 Subject: chore(docs): Bump prettier, and reformat w/ it. * Bump to prettier 2.3.1. * Re-run prettier:format to apply updated format. --- docs/src/components/codes/Description.jsx | 3 ++- docs/src/pages/power-profiler.js | 6 ++---- 2 files changed, 4 insertions(+), 5 deletions(-) (limited to 'docs/src') diff --git a/docs/src/components/codes/Description.jsx b/docs/src/components/codes/Description.jsx index 6d8c5f6..7ad5fc2 100644 --- a/docs/src/components/codes/Description.jsx +++ b/docs/src/components/codes/Description.jsx @@ -7,7 +7,8 @@ import React from "react"; import PropTypes from "prop-types"; -const specialCharactersRegex = /(?:^|\s)((?:&(?:(?:\w+)|(?:#\d+));)|[_]|[^\w\s])(?:\s*\[([^[\]]+?)\])/g; +const specialCharactersRegex = + /(?:^|\s)((?:&(?:(?:\w+)|(?:#\d+));)|[_]|[^\w\s])(?:\s*\[([^[\]]+?)\])/g; function renderSpecialCharacters(description) { const matches = Array.from(description.matchAll(specialCharactersRegex)); diff --git a/docs/src/pages/power-profiler.js b/docs/src/pages/power-profiler.js index ca46f5c..fc803c5 100644 --- a/docs/src/pages/power-profiler.js +++ b/docs/src/pages/power-profiler.js @@ -30,10 +30,8 @@ function PowerProfiler() { const { value: psuType, bind: bindPsuType } = useInput(""); const { value: outputV, bind: bindOutputV } = useInput(3.3); const { value: quiescentMicroA, bind: bindQuiescentMicroA } = useInput(55); - const { - value: otherQuiescentMicroA, - bind: bindOtherQuiescentMicroA, - } = useInput(0); + const { value: otherQuiescentMicroA, bind: bindOtherQuiescentMicroA } = + useInput(0); const { value: efficiency, bind: bindEfficiency } = useInput(0.9); const { value: bondedQty, bind: bindBondedQty } = useInput(1); -- cgit v1.2.3