Skip to content

Commit 6f85b83

Browse files
authored
cleanup(repo): format all files (#33902)
Format all files after Prettier v3 was merged.
1 parent a5fc0d6 commit 6f85b83

302 files changed

Lines changed: 2486 additions & 1589 deletions

File tree

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

astro-docs/README.md

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -66,13 +66,11 @@ The site uses custom content loaders to dynamically generate documentation:
6666
### Content Types
6767

6868
1. **Regular Documentation** (`src/content/docs/`)
69-
7069
- Written in `.mdoc` (Markdoc) or `.mdx` (MDX) format
7170
- Organized by sections: getting-started, concepts, guides, api
7271
- File-based routing (filename = URL path)
7372

7473
2. **Dynamic Plugin Documentation**
75-
7674
- Auto-generated from Nx packages
7775
- Includes generators, executors, and migrations
7876
- Updated during build process

astro-docs/src/components/PluginDirectory.tsx

Lines changed: 5 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -266,12 +266,11 @@ function OrderButton({
266266

267267
return (
268268
<button
269-
className={`flex items-center gap-1 rounded border px-1.5 py-0.5 font-medium transition
270-
${
271-
isActive
272-
? 'border-blue-500 bg-blue-50 text-blue-700 dark:border-blue-400 dark:bg-blue-900/30 dark:text-blue-300'
273-
: 'border-slate-200 bg-white hover:bg-slate-100 dark:border-slate-700 dark:bg-slate-800 dark:hover:bg-slate-700'
274-
}`}
269+
className={`flex items-center gap-1 rounded border px-1.5 py-0.5 font-medium transition ${
270+
isActive
271+
? 'border-blue-500 bg-blue-50 text-blue-700 dark:border-blue-400 dark:bg-blue-900/30 dark:text-blue-300'
272+
: 'border-slate-200 bg-white hover:bg-slate-100 dark:border-slate-700 dark:bg-slate-800 dark:hover:bg-slate-700'
273+
}`}
275274
onClick={() => onClick(orderKey)}
276275
>
277276
{icon}

astro-docs/src/plugins/utils/generate-plugin-markdown.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -214,7 +214,7 @@ nx generate ${fullItemName} [options]
214214
const positionalArgs: string[] = [];
215215
for (const [propName, prop] of Object.entries(properties) as [
216216
string,
217-
any
217+
any,
218218
][]) {
219219
if (
220220
prop.$default &&

astro-docs/src/styles/global.css

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -96,7 +96,8 @@
9696
/* Custom font for code blocks */
9797
@font-face {
9898
font-family: 'Input Mono';
99-
src: url('/docs/fonts/InputMono-Regular.woff2') format('woff2'),
99+
src:
100+
url('/docs/fonts/InputMono-Regular.woff2') format('woff2'),
100101
url('/docs/fonts/InputMono-Regular.woff') format('woff');
101102
font-weight: normal;
102103
font-style: normal;

docs/blog/2023-08-10-create-your-own-create-react-app-cli.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -96,7 +96,7 @@ main();
9696
9797
```
9898

99-
The main chunk of code is `` createWorkspace(`my-own-react@${presetVersion}`) ``. This function creates an Nx workspace with the `my-own-react` plugin installed.
99+
The main chunk of code is ``createWorkspace(`my-own-react@${presetVersion}`)``. This function creates an Nx workspace with the `my-own-react` plugin installed.
100100

101101
2. `createWorkspace` will also generate the preset generator defined by `my-own-react` located at `src/generators/preset/generator.ts`. This is the logic which scaffolds a project which uses your technology.
102102

e2e/next/src/next-legacy.test.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -200,8 +200,8 @@ describe('@nx/next (legacy)', () => {
200200
201201
const TestComponent = dynamic(
202202
() => import('@${proj}/${nextLib}').then(d => d.${capitalize(
203-
nextLib
204-
)})
203+
nextLib
204+
)})
205205
);
206206
${content.replace(
207207
`</h2>`,

e2e/plugin/src/nx-plugin.test.ts

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -208,9 +208,8 @@ describe('Nx Plugin', () => {
208208
updateFile(`${plugin}/generators.json`, (f) => {
209209
const json = JSON.parse(f);
210210
// @proj/plugin:plugin has an invalid implementation path
211-
json.generators[
212-
badFactoryPath
213-
].factory = `./generators/${plugin}/bad-path`;
211+
json.generators[badFactoryPath].factory =
212+
`./generators/${plugin}/bad-path`;
214213
// @proj/plugin:non-existant has a missing implementation path amd schema
215214
json.generators['non-existant-generator'] = {};
216215
return JSON.stringify(json);

e2e/react/src/cypress-component-tests.test.ts

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -280,9 +280,8 @@ ${content}`;
280280
`
281281
);
282282
updateJson(join('apps', appName, 'project.json'), (config) => {
283-
config.targets[
284-
'build'
285-
].options.webpackConfig = `apps/${appName}/webpack.config.js`;
283+
config.targets['build'].options.webpackConfig =
284+
`apps/${appName}/webpack.config.js`;
286285

287286
return config;
288287
});

e2e/react/src/module-federation/dynamic-federation.rspack.test.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -77,8 +77,8 @@ describe('Dynamic Module Federation', () => {
7777
7878
it('should navigate to /${remote} from /', () => {
7979
cy.get('a').contains('${remote[0].toUpperCase()}${remote.slice(
80-
1
81-
)}').click();
80+
1
81+
)}').click();
8282
cy.url().should('include', '/${remote}');
8383
getGreeting().contains('Welcome ${remote}');
8484
});

e2e/react/src/module-federation/dynamic-federation.webpack.test.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -76,8 +76,8 @@ describe('Dynamic Module Federation', () => {
7676
7777
it('should navigate to /${remote} from /', () => {
7878
cy.get('a').contains('${remote[0].toUpperCase()}${remote.slice(
79-
1
80-
)}').click();
79+
1
80+
)}').click();
8181
cy.url().should('include', '/${remote}');
8282
getGreeting().contains('Welcome ${remote}');
8383
});

0 commit comments

Comments
 (0)