[ci] format

This commit is contained in:
FredKSchott 2022-04-05 01:08:00 +00:00 committed by GitHub Actions
parent 4e021f70e1
commit b3f55f235a

View file

@ -130,7 +130,7 @@
import netlify from '@astrojs/netlify/functions';
export default defineConfig({
adapter: netlify(),
adapter: netlify(),
});
```
@ -150,7 +150,7 @@
import nodejs from '@astrojs/node';
export default {
adapter: nodejs(),
adapter: nodejs(),
};
```
@ -210,7 +210,7 @@
import nodejs from '@astrojs/node';
export default {
adapter: nodejs(),
adapter: nodejs(),
};
```
@ -306,7 +306,7 @@
import { defineConfig } from 'astro/config';
export default defineConfig({
renderers: [],
renderers: [],
});
```
@ -344,9 +344,9 @@
```json
{
"scripts": {
"build": "astro build --legacy-build"
}
"scripts": {
"build": "astro build --legacy-build"
}
}
```
@ -366,7 +366,7 @@
```ts
if (Astro.slots.has('default')) {
const content = await Astro.slots.render('default');
const content = await Astro.slots.render('default');
}
```
@ -450,7 +450,7 @@
```ts
if (Astro.slots.has('default')) {
const content = await Astro.slots.render('default');
const content = await Astro.slots.render('default');
}
```
@ -474,9 +474,9 @@
```json
{
"scripts": {
"build": "astro build --legacy-build"
}
"scripts": {
"build": "astro build --legacy-build"
}
}
```
@ -588,12 +588,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/',
}),
};
}
```
@ -755,12 +755,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/',
}),
};
}
```
@ -2115,10 +2115,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' }]],
},
};
```
@ -2138,10 +2138,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'],
};
```