diff options
author | 2022-02-18 22:34:54 +0000 | |
---|---|---|
committer | 2022-02-18 22:34:54 +0000 | |
commit | 38fc7d64a7c9191ff90a094905e1c0e1223ed770 (patch) | |
tree | 58230f3dd8096469595928c442e1397f9cb5dbd5 | |
parent | 1d9f8a57f5863948eceda99a72da3fcdda986073 (diff) | |
download | astro-38fc7d64a7c9191ff90a094905e1c0e1223ed770.tar.gz astro-38fc7d64a7c9191ff90a094905e1c0e1223ed770.tar.zst astro-38fc7d64a7c9191ff90a094905e1c0e1223ed770.zip |
[ci] yarn format
-rw-r--r-- | packages/astro/CHANGELOG.md | 43 | ||||
-rw-r--r-- | packages/markdown/remark/CHANGELOG.md | 8 |
2 files changed, 25 insertions, 26 deletions
diff --git a/packages/astro/CHANGELOG.md b/packages/astro/CHANGELOG.md index 8e359868d..1babbd2b6 100644 --- a/packages/astro/CHANGELOG.md +++ b/packages/astro/CHANGELOG.md @@ -25,12 +25,12 @@ ```typescript // src/pages/company.json.ts export async function get() { - return { - body: JSON.stringify({ - name: 'Astro Technology Company', - url: 'https://astro.build/', - }), - }; + return { + body: JSON.stringify({ + name: 'Astro Technology Company', + url: 'https://astro.build/', + }), + }; } ``` @@ -78,10 +78,9 @@ createServer((req, res) => { const route = app.match(req); - if(route) { + if (route) { let html = await app.render(req, route); } - }).listen(8080); ``` @@ -193,12 +192,12 @@ ```typescript // src/pages/company.json.ts export async function get() { - return { - body: JSON.stringify({ - name: 'Astro Technology Company', - url: 'https://astro.build/', - }), - }; + return { + body: JSON.stringify({ + name: 'Astro Technology Company', + url: 'https://astro.build/', + }), + }; } ``` @@ -1553,10 +1552,10 @@ For convenience, you may now also move your `astro.config.js` file to a top-leve ```js export default { - markdownOptions: { - remarkPlugins: ['remark-slug', ['remark-autolink-headings', { behavior: 'prepend' }]], - rehypePlugins: ['rehype-slug', ['rehype-autolink-headings', { behavior: 'prepend' }]], - }, + markdownOptions: { + remarkPlugins: ['remark-slug', ['remark-autolink-headings', { behavior: 'prepend' }]], + rehypePlugins: ['rehype-slug', ['rehype-autolink-headings', { behavior: 'prepend' }]], + }, }; ``` @@ -1576,10 +1575,10 @@ For convenience, you may now also move your `astro.config.js` file to a top-leve ```js export default { - name: '@matthewp/my-renderer', - server: './server.js', - client: './client.js', - hydrationPolyfills: ['./my-polyfill.js'], + name: '@matthewp/my-renderer', + server: './server.js', + client: './client.js', + hydrationPolyfills: ['./my-polyfill.js'], }; ``` diff --git a/packages/markdown/remark/CHANGELOG.md b/packages/markdown/remark/CHANGELOG.md index a148f87fd..f91e42bcf 100644 --- a/packages/markdown/remark/CHANGELOG.md +++ b/packages/markdown/remark/CHANGELOG.md @@ -141,10 +141,10 @@ ```js export default { - markdownOptions: { - remarkPlugins: ['remark-slug', ['remark-autolink-headings', { behavior: 'prepend' }]], - rehypePlugins: ['rehype-slug', ['rehype-autolink-headings', { behavior: 'prepend' }]], - }, + markdownOptions: { + remarkPlugins: ['remark-slug', ['remark-autolink-headings', { behavior: 'prepend' }]], + rehypePlugins: ['rehype-slug', ['rehype-autolink-headings', { behavior: 'prepend' }]], + }, }; ``` |