From a7dc8f6d7fba4d2835ff43bba52336f77076ba12 Mon Sep 17 00:00:00 2001 From: Jason Jean Date: Fri, 7 Jun 2024 16:10:22 -0400 Subject: [PATCH] chore(repo): fix file formatting (#26463) ## Current Behavior Files are unformatted. ## Expected Behavior Files are formatted. ## Related Issue(s) Fixes # --- e2e/angular/src/tailwind.test.ts | 8 ++--- e2e/utils/create-project-utils.ts | 2 +- .../feature-projects/panels/search-depth.tsx | 6 ++-- .../feature-projects/panels/tracing-panel.tsx | 10 +++--- .../src/app/feature-tasks/task-list.tsx | 4 +-- .../src/app/ui-tooltips/task-node-actions.tsx | 8 ++--- .../ui-code-block/src/lib/json-code-block.tsx | 6 ++-- .../src/lib/debounced-text-input.tsx | 2 +- graph/ui-components/src/lib/dropdown.tsx | 2 +- graph/ui-project-details/src/lib/pill.tsx | 4 +-- .../fading-collapsible.tsx | 2 +- .../tooltip-trigger-text.tsx | 2 +- .../ui-theme/src/lib/theme-panel.stories.tsx | 2 +- .../src/lib/project-edge-tooltip.tsx | 2 +- .../src/lib/project-node-tooltip.tsx | 4 +-- .../ui-tooltips/src/lib/task-node-tooltip.tsx | 4 +-- nx-dev/feature-ai/src/lib/feed-container.tsx | 2 +- .../feature-ai/src/lib/feed/feed-question.tsx | 4 +-- nx-dev/feature-ai/src/lib/feed/feed.tsx | 4 +-- nx-dev/feature-ai/src/lib/loading-state.tsx | 4 +-- nx-dev/feature-ai/src/lib/prompt.tsx | 8 ++--- .../lib/sidebar/activity-limit-reached.tsx | 2 +- .../src/lib/sidebar/sidebar-container.tsx | 2 +- .../src/lib/sidebar/warning-message.tsx | 2 +- .../src/lib/content.tsx | 2 +- .../src/lib/ui/headings.tsx | 6 ++-- .../src/lib/ui/package-reference.tsx | 2 +- .../src/lib/algolia-search.global.css | 12 +++---- nx-dev/nx-dev/pages/404.tsx | 2 +- nx-dev/nx-dev/pages/500.tsx | 2 +- nx-dev/nx-dev/pages/community.tsx | 2 +- nx-dev/nx-dev/pages/conf.tsx | 10 +++--- nx-dev/nx-dev/pages/launch-nx.tsx | 4 +-- nx-dev/ui-common/src/lib/champion-card.tsx | 6 ++-- nx-dev/ui-common/src/lib/champion-perks.tsx | 10 +++--- nx-dev/ui-common/src/lib/flip-card.tsx | 10 +++--- .../src/lib/headers/default-menu-item.tsx | 2 +- nx-dev/ui-common/src/lib/plugin-card.tsx | 2 +- .../ui-common/src/lib/youtube.component.tsx | 4 +-- .../ui-community/src/lib/plugin-directory.tsx | 36 +++++++++---------- .../src/lib/components/code-of-conduct.tsx | 4 +-- .../src/lib/components/schedule.tsx | 14 ++++---- .../src/lib/components/speakers.tsx | 2 +- .../ui-conference/src/lib/conf-location.tsx | 2 +- .../src/lib/conf-schedule-short.tsx | 2 +- .../ui-conference/src/lib/conf-sponsors.tsx | 2 +- .../ui-conference/src/lib/conf-workshop.tsx | 8 ++--- .../src/lib/launch-week/agenda.tsx | 6 ++-- .../src/lib/launch-week/announcements.tsx | 10 +++--- .../lib/launch-week/community-partners.tsx | 4 +-- .../src/lib/launch-week/intro.tsx | 8 ++--- nx-dev/ui-fence/src/lib/fence.tsx | 2 +- nx-dev/ui-fence/src/lib/selector.tsx | 6 ++-- .../src/lib/extensible-and-integrated.tsx | 4 +-- .../github-intergration-tab.tsx | 12 +++---- .../extensible-and-integrated/graph-tab.tsx | 6 ++-- .../ide-integration-tab.tsx | 12 +++---- nx-dev/ui-home/src/lib/getting-started.tsx | 4 +-- nx-dev/ui-home/src/lib/hero.tsx | 2 +- .../ui-home/src/lib/improve-worst-ci-case.tsx | 4 +-- nx-dev/ui-home/src/lib/migrate.tsx | 2 +- .../lib/migrations-and-code-generation.tsx | 2 +- nx-dev/ui-home/src/lib/monorepo-styles.tsx | 2 +- nx-dev/ui-home/src/lib/nx-statistics.tsx | 14 ++++---- nx-dev/ui-home/src/lib/nx-with-ci.tsx | 2 +- nx-dev/ui-home/src/lib/testimonials.tsx | 2 +- nx-dev/ui-home/src/lib/why-is-nx-fast.tsx | 4 +-- .../src/lib/nodes/heading.component.tsx | 2 +- .../src/lib/tags/disclosure.component.tsx | 6 ++-- .../lib/tags/github-repository.component.tsx | 2 +- .../src/lib/tags/graph.component.tsx | 2 +- .../src/lib/tags/pill.component.tsx | 2 +- .../ui-markdoc/src/lib/tags/short-embed.tsx | 20 +++++------ .../src/lib/tags/side-by-side.component.tsx | 2 +- .../lib/tags/stackblitz-button.component.tsx | 2 +- .../src/lib/tags/video-link.component.tsx | 10 +++--- .../src/lib/tags/video-loop.component.tsx | 4 +-- .../src/lib/theme-switcher.component.tsx | 2 +- .../bin/types/bundler-list.ts | 2 +- .../bin/types/framework-list.ts | 2 +- .../src/utils/nx/ab-testing.ts | 2 +- .../src/utils/package-manager.ts | 2 +- .../src/utils/convert-nx-executor.spec.ts | 3 +- packages/jest/src/utils/config/config-file.ts | 4 +-- .../release-version/release-version.ts | 2 +- .../nx/release/changelog-renderer/index.ts | 2 +- .../src/command-line/release/utils/github.ts | 2 +- .../nx/src/command-line/release/version.ts | 2 +- packages/nx/src/command-line/show/project.ts | 2 +- .../yargs-utils/shared-options.ts | 2 +- packages/nx/src/utils/ab-testing.ts | 2 +- .../nx/src/utils/find-matching-projects.ts | 2 +- 92 files changed, 218 insertions(+), 217 deletions(-) diff --git a/e2e/angular/src/tailwind.test.ts b/e2e/angular/src/tailwind.test.ts index 38c7b2ec98a90..135fb63d1204d 100644 --- a/e2e/angular/src/tailwind.test.ts +++ b/e2e/angular/src/tailwind.test.ts @@ -72,7 +72,7 @@ describe('Tailwind support', () => { const createTailwindConfigFile = ( tailwindConfigFile = 'tailwind.config.js', - libSpacing: typeof spacing['projectVariant1'] + libSpacing: (typeof spacing)['projectVariant1'] ) => { const tailwindConfig = `const { createGlobPatternsForDependencies } = require('@nx/angular/tailwind'); const { join } = require('path'); @@ -98,7 +98,7 @@ describe('Tailwind support', () => { const updateTailwindConfig = ( tailwindConfigPath: string, - projectSpacing: typeof spacing['root'] + projectSpacing: (typeof spacing)['root'] ) => { const tailwindConfig = readFile(tailwindConfigPath); @@ -173,7 +173,7 @@ describe('Tailwind support', () => { const assertLibComponentStyles = ( lib: string, - libSpacing: typeof spacing['root'] + libSpacing: (typeof spacing)['root'] ) => { const builtComponentContent = readFile( `dist/${lib}/esm2022/lib/foo.component.mjs` @@ -327,7 +327,7 @@ describe('Tailwind support', () => { const assertAppComponentStyles = ( outputPath: string, - appSpacing: typeof spacing['root'] + appSpacing: (typeof spacing)['root'] ) => { const mainBundlePath = listFiles(outputPath).find((file) => /^main[\.-]/.test(file) diff --git a/e2e/utils/create-project-utils.ts b/e2e/utils/create-project-utils.ts index 967d1250dcdeb..8ae7b096c35f1 100644 --- a/e2e/utils/create-project-utils.ts +++ b/e2e/utils/create-project-utils.ts @@ -65,7 +65,7 @@ const nxPackages = [ `@nx/expo`, ] as const; -type NxPackage = typeof nxPackages[number]; +type NxPackage = (typeof nxPackages)[number]; /** * Sets up a new project in the temporary project path diff --git a/graph/client/src/app/feature-projects/panels/search-depth.tsx b/graph/client/src/app/feature-projects/panels/search-depth.tsx index d1762110f325d..351d2702e2cbd 100644 --- a/graph/client/src/app/feature-projects/panels/search-depth.tsx +++ b/graph/client/src/app/feature-projects/panels/search-depth.tsx @@ -50,7 +50,7 @@ export const SearchDepth = memo( @@ -48,7 +48,7 @@ export const TracingPanel = memo( algorithm === 'all' ? 'border-blue-500 dark:border-sky-500' : 'border-slate-300 dark:border-slate-600' - } flex-1 rounded-r-md border bg-slate-50 py-2 px-4 text-slate-500 hover:bg-slate-100 dark:bg-slate-800 dark:text-slate-300 hover:dark:bg-slate-700`} + } flex-1 rounded-r-md border bg-slate-50 px-4 py-2 text-slate-500 hover:bg-slate-100 dark:bg-slate-800 dark:text-slate-300 hover:dark:bg-slate-700`} > All @@ -66,7 +66,7 @@ export const TracingPanel = memo( {start} -
+
Reset @@ -95,7 +95,7 @@ export const TracingPanel = memo( {end}
-
+
Reset diff --git a/graph/client/src/app/feature-tasks/task-list.tsx b/graph/client/src/app/feature-tasks/task-list.tsx index f682666065d31..1bd8935765858 100644 --- a/graph/client/src/app/feature-tasks/task-list.tsx +++ b/graph/client/src/app/feature-tasks/task-list.tsx @@ -87,11 +87,11 @@ function SubProjectList({ return ( <> {headerText !== '' ? ( -

+

{headerText}

) : null} -
    +
      {sortedProjects.map((project) => { return ( +
      setIsOpen(!isOpen)} data-cy="inputs-accordion" > @@ -53,11 +53,11 @@ function InputAccordion({ section, inputs }) { return [
    • setIsOpen(!isOpen)} data-cy="input-section-entry" > - {section} + {section} {isOpen ? ( diff --git a/graph/ui-code-block/src/lib/json-code-block.tsx b/graph/ui-code-block/src/lib/json-code-block.tsx index 67f257e7a2256..e335df75bdb82 100644 --- a/graph/ui-code-block/src/lib/json-code-block.tsx +++ b/graph/ui-code-block/src/lib/json-code-block.tsx @@ -47,7 +47,7 @@ export function JsonCodeBlock(props: JsonCodeBlockProps): JSX.Element { }, [copied]); return (
      -
      +
      { @@ -104,12 +104,12 @@ export function sourcesRenderer( } return ( {element} {sourceElement && ( - + {sourceElement} )} diff --git a/graph/ui-components/src/lib/debounced-text-input.tsx b/graph/ui-components/src/lib/debounced-text-input.tsx index 56b7079a372e6..5a625f399eb6b 100644 --- a/graph/ui-components/src/lib/debounced-text-input.tsx +++ b/graph/ui-components/src/lib/debounced-text-input.tsx @@ -75,7 +75,7 @@ export function DebouncedTextInput({ data-cy="textFilterReset" type="reset" onClick={resetClicked} - className="absolute top-1 right-1 inline-block rounded-md bg-slate-50 p-1 text-slate-400 dark:bg-slate-800" + className="absolute right-1 top-1 inline-block rounded-md bg-slate-50 p-1 text-slate-400 dark:bg-slate-800" > diff --git a/graph/ui-components/src/lib/dropdown.tsx b/graph/ui-components/src/lib/dropdown.tsx index f7a1d8323dabe..2954f258f4926 100644 --- a/graph/ui-components/src/lib/dropdown.tsx +++ b/graph/ui-components/src/lib/dropdown.tsx @@ -9,7 +9,7 @@ export function Dropdown(props: DropdownProps) { const { className, children, ...rest } = props; return (