From 7dbb9d1671382dae0037f2d733853ed22d938bb7 Mon Sep 17 00:00:00 2001 From: Ike Saunders Date: Thu, 25 Jan 2024 16:44:31 -0500 Subject: [PATCH] =?UTF-8?q?=F0=9F=90=9D=20run=20biome=20format=20--write?= =?UTF-8?q?=20on=20project?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- _routes.json | 6 +- adminSiteClient/EditorBasicTab.tsx | 3 +- adminSiteClient/EditorColorScaleSection.tsx | 4 +- adminSiteClient/EditorTextTab.tsx | 5 +- adminSiteClient/GdocsPreviewPage.tsx | 4 +- adminSiteClient/PostsIndexPage.tsx | 14 +- adminSiteClient/SaveButtons.tsx | 4 +- adminSiteServer/adminRouter.tsx | 10 +- adminSiteServer/apiRouter.ts | 10 +- adminSiteServer/testPageRouter.tsx | 4 +- baker/formatWordpressPost.tsx | 1 - baker/siteRenderers.tsx | 24 +- datapage/Datapage.ts | 4 +- db/contentGraph.test.ts | 16 +- db/migration/1701450183524-TagTopicSlug.ts | 2 +- db/model/Chart.ts | 15 +- db/model/ChartRevision.ts | 10 +- db/model/Dataset.ts | 5 +- db/model/Gdoc/GdocBase.ts | 5 +- db/model/Gdoc/enrichedToMarkdown.ts | 12 +- db/model/Gdoc/rawToEnriched.ts | 11 +- db/model/Link.ts | 6 +- db/model/User.ts | 20 +- devTools/cypress/cypress.json | 2 +- devTools/cypress/fixtures/example.json | 6 +- devTools/schemaProcessor/columns.json | 1606 +-- devTools/svgTester/utils.ts | 8 +- explorer/ExplorerControls.tsx | 4 +- explorer/ExplorerProgram.test.ts | 9 +- gitCms/GitCmsServer.ts | 4 +- gridLang/GridCell.ts | 8 +- lerna.json | 6 +- nx.json | 28 +- .../components/src/TextWrap/TextWrap.tsx | 4 +- .../core-table/src/CoreTable.ts | 4 +- .../core-table/src/OwidTable.test.ts | 3 +- .../@ourworldindata/grapher/src/axis/Axis.ts | 8 +- .../grapher/src/axis/AxisViews.tsx | 8 +- .../src/barCharts/DiscreteBarChart.tsx | 8 +- .../grapher/src/color/ColorScaleConfig.ts | 4 +- .../src/controls/EntitySelectionToggle.tsx | 24 +- .../grapher/src/controls/SettingsMenu.tsx | 8 +- .../src/controls/settings/AbsRelToggle.tsx | 4 +- .../settings/FacetStrategySelector.tsx | 4 +- .../grapher/src/core/Grapher.jsdom.test.ts | 3 +- .../grapher/src/dataTable/DataTable.tsx | 8 +- .../grapher/src/facetChart/FacetChart.tsx | 7 +- .../grapher/src/footer/Footer.tsx | 8 +- .../HorizontalColorLegends.tsx | 4 +- .../grapher/src/lineCharts/LineChart.tsx | 8 +- .../grapher/src/mapCharts/MapChart.tsx | 4 +- .../grapher/src/mapCharts/MapTopology.ts | 10707 ++++++++++++++-- .../src/scatterCharts/ScatterPlotChart.tsx | 10 +- .../scatterCharts/ScatterPointsWithLabels.tsx | 8 +- .../grapher/src/scatterCharts/ScatterUtils.ts | 20 +- .../grapher/src/slopeCharts/SlopeChart.tsx | 4 +- .../src/stackedCharts/MarimekkoChart.tsx | 21 +- .../src/stackedCharts/StackedAreaChart.tsx | 4 +- .../stackedCharts/StackedDiscreteBarChart.tsx | 4 +- .../src/timeline/TimelineController.ts | 4 +- .../grapher/src/tooltip/TooltipContents.tsx | 8 +- .../@ourworldindata/grapher/tsconfig.src.json | 10 +- .../grapher/tsconfig.test.json | 14 +- packages/@ourworldindata/utils/src/Bounds.ts | 14 +- .../@ourworldindata/utils/src/TimeBounds.ts | 4 +- packages/@ourworldindata/utils/src/Util.ts | 4 +- .../utils/src/metadataHelpers.ts | 8 +- .../@ourworldindata/utils/src/regions.json | 5082 ++++---- .../@ourworldindata/utils/src/urls/Url.ts | 4 +- site/DataPageV2Content.tsx | 4 +- site/Lightbox.tsx | 4 +- site/gdocs/components/ArticleBlock.tsx | 2 +- site/gdocs/components/Table.tsx | 4 +- site/search/Autocomplete.tsx | 4 +- tsconfig.client.json | 8 +- .../app/plugins/owid/src/AllCharts/block.json | 12 +- .../plugins/owid/src/CodeSnippet/block.json | 12 +- .../owid/src/ExpandableParagraph/block.json | 12 +- .../plugins/owid/src/FrontMatter/block.json | 12 +- .../plugins/owid/src/KeyInsight/block.json | 36 +- .../owid/src/KeyInsightsSlider/block.json | 28 +- .../owid/src/ResearchAndWriting/block.json | 12 +- .../app/plugins/owid/src/StickyNav/block.json | 12 +- .../plugins/owid/src/TechnicalText/block.json | 12 +- .../web/app/themes/owid-theme/theme.json | 62 +- 85 files changed, 13670 insertions(+), 4493 deletions(-) diff --git a/_routes.json b/_routes.json index 65f7912a50e..4847213daf5 100644 --- a/_routes.json +++ b/_routes.json @@ -1,5 +1,5 @@ { - "version": 1, - "include": ["/grapher/*", "/donation/*"], - "exclude": ["/grapher/embedCharts.js", "/grapher/_grapherRedirects.json"] + "version": 1, + "include": ["/grapher/*", "/donation/*"], + "exclude": ["/grapher/embedCharts.js", "/grapher/_grapherRedirects.json"] } diff --git a/adminSiteClient/EditorBasicTab.tsx b/adminSiteClient/EditorBasicTab.tsx index 85e670a42ff..7101755b4fb 100644 --- a/adminSiteClient/EditorBasicTab.tsx +++ b/adminSiteClient/EditorBasicTab.tsx @@ -213,8 +213,7 @@ class DimensionSlotView extends React.Component<{ ? undefined : action( () => - (this.isSelectingVariables = - true) + (this.isSelectingVariables = true) ) } onRemove={ diff --git a/adminSiteClient/EditorColorScaleSection.tsx b/adminSiteClient/EditorColorScaleSection.tsx index e149cdf476d..b04e6ea07b6 100644 --- a/adminSiteClient/EditorColorScaleSection.tsx +++ b/adminSiteClient/EditorColorScaleSection.tsx @@ -469,8 +469,8 @@ class NumericBinView extends React.Component<{ {bin.props.isOpenLeft ? "≤" : bin.props.isFirst - ? "≥" - : ">"} + ? "≥" + : ">"} {bin.min} ⁠–⁠ {"≤"} { keys.forEach((key) => { const references = invalidDetailReferences[key] if (references.length) { - errorMessages[ - key - ] = `Invalid detail(s) specified: ${references.join(", ")}` + errorMessages[key] = + `Invalid detail(s) specified: ${references.join(", ")}` } }) return errorMessages diff --git a/adminSiteClient/GdocsPreviewPage.tsx b/adminSiteClient/GdocsPreviewPage.tsx index 9b2cc16df5e..dd5b28ad963 100644 --- a/adminSiteClient/GdocsPreviewPage.tsx +++ b/adminSiteClient/GdocsPreviewPage.tsx @@ -247,8 +247,8 @@ export const GdocsPreviewPage = ({ match, history }: GdocsMatchProps) => { hasErrors ? OwidGdocErrorMessageType.Error : hasWarnings - ? OwidGdocErrorMessageType.Warning - : null + ? OwidGdocErrorMessageType.Warning + : null } > {" "}