Skip to content

Commit 176cf5f

Browse files
committed
style: reformat with prettier
1 parent edc99cb commit 176cf5f

File tree

5 files changed

+31
-25
lines changed

5 files changed

+31
-25
lines changed

documentation/.prettierrc.mjs

+5
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,10 @@
11
/** @type {import("prettier").Config} */
22
export default {
3+
arrowParens: 'always',
4+
printWidth: 120,
5+
trailingComma: 'all',
6+
singleQuote: true,
7+
jsxSingleQuote: true,
38
plugins: ['prettier-plugin-astro'],
49
overrides: [
510
{

documentation/src/content/docs/guides/installation.mdx

+1-1
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ description: A guide how to use effector with patronum.
55

66
import { PackageManagers } from 'starlight-package-managers';
77

8-
<PackageManagers pkg="patronum" frame="none" />
8+
<PackageManagers pkg='patronum' frame='none' />
99

1010
## Usage
1111

documentation/src/content/docs/index.mdx

+11-12
Original file line numberDiff line numberDiff line change
@@ -25,20 +25,19 @@ import { Card, CardGrid } from '@astrojs/starlight/components';
2525
## Next steps
2626

2727
<CardGrid>
28-
<Card title="Powerful" icon="rocket">
29-
Patronum enhances your workflows with powerful, reusable operators that streamline
30-
complex state management tasks.
28+
<Card title='Powerful' icon='rocket'>
29+
Patronum enhances your workflows with powerful, reusable operators that streamline complex state management tasks.
3130
</Card>
32-
<Card title="Type-Safe" icon="seti:typescript">
33-
Leverage fully type-safe functions with effector patronum to ensure robustness and
34-
prevent runtime errors in your application.
31+
<Card title='Type-Safe' icon='seti:typescript'>
32+
Leverage fully type-safe functions with effector patronum to ensure robustness and prevent runtime errors in your
33+
application.
3534
</Card>
36-
<Card title="Seamless Integration" icon="setting">
37-
Patronum integrates effortlessly with your existing effector logic, adding
38-
modularity without the need for extensive refactoring.
35+
<Card title='Seamless Integration' icon='setting'>
36+
Patronum integrates effortlessly with your existing effector logic, adding modularity without the need for extensive
37+
refactoring.
3938
</Card>
40-
<Card title="Tree Shaking Friendly" icon="heart">
41-
Patronum is designed with tree shaking in mind, ensuring that your bundle size
42-
remains minimal by including only the code you actually use.
39+
<Card title='Tree Shaking Friendly' icon='heart'>
40+
Patronum is designed with tree shaking in mind, ensuring that your bundle size remains minimal by including only the
41+
code you actually use.
4342
</Card>
4443
</CardGrid>
+10-8
Original file line numberDiff line numberDiff line change
@@ -1,20 +1,22 @@
11
---
2-
import { getCollection, getEntry, render } from "astro:content";
3-
import StarlightPage from "@astrojs/starlight/components/StarlightPage.astro";
2+
import { getCollection, getEntry } from 'astro:content';
3+
import StarlightPage from '@astrojs/starlight/components/StarlightPage.astro';
44
55
export async function getStaticPaths() {
6-
const operators = await getCollection("operators");
6+
const operators = await getCollection('operators');
77
return operators.map((operator) => ({
88
params: { operator: operator.data.slug },
99
}));
1010
}
1111
12-
const operator = await getEntry("operators", Astro.params.operator);
12+
const operator = await getEntry('operators', Astro.params.operator);
1313
---
1414

15-
<meta http-equiv="refresh" content={`0;url=/operators/${operator.data.slug}`} />
16-
<meta name="robots" content="noindex" />
17-
<StarlightPage frontmatter={{...operator.data, pagefind: false}}>
15+
<meta http-equiv='refresh' content={`0;url=/operators/${operator.data.slug}`} />
16+
<meta name='robots' content='noindex' />
17+
<StarlightPage frontmatter={{ ...operator.data, pagefind: false }}>
1818
<!-- exclude this page from pagefind indexing -->
19-
<p>Redirecting to <a href="/operators/{operator.data.slug}">/operators/{operator.data.slug}</a></p>
19+
<p>
20+
Redirecting to <a href={`/operators/${operator.data.slug}`}>/operators/{operator.data.slug}</a>
21+
</p>
2022
</StarlightPage>

documentation/src/pages/operators/[operator].astro

+4-4
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,15 @@
11
---
2-
import { getCollection, getEntry, render } from "astro:content";
3-
import StarlightPage from "@astrojs/starlight/components/StarlightPage.astro";
2+
import { getCollection, getEntry, render } from 'astro:content';
3+
import StarlightPage from '@astrojs/starlight/components/StarlightPage.astro';
44
55
export async function getStaticPaths() {
6-
const operators = await getCollection("operators");
6+
const operators = await getCollection('operators');
77
return operators.map((operator) => ({
88
params: { operator: operator.data.slug },
99
}));
1010
}
1111
12-
const operator = await getEntry("operators", Astro.params.operator);
12+
const operator = await getEntry('operators', Astro.params.operator);
1313
const { Content, headings } = await render(operator);
1414
---
1515

0 commit comments

Comments
 (0)