summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGravatar Fred K. Schott <fkschott@gmail.com> 2022-02-09 12:34:06 -0800
committerGravatar Fred K. Schott <fkschott@gmail.com> 2022-02-09 12:34:06 -0800
commit78319dfff01ee607e5c5a4a036e48912d2e784d5 (patch)
tree2f6ce72fa1b8c656094ce72bf40d113ded726f17
parent3e24341f1712e78f5e50a3f0c9ffa446f9f4eb42 (diff)
downloadastro-78319dfff01ee607e5c5a4a036e48912d2e784d5.tar.gz
astro-78319dfff01ee607e5c5a4a036e48912d2e784d5.tar.zst
astro-78319dfff01ee607e5c5a4a036e48912d2e784d5.zip
format
-rw-r--r--FUNDING.md1
-rw-r--r--packages/astro/CHANGELOG.md16
-rw-r--r--packages/astro/test/astro-attrs.test.js2
-rw-r--r--packages/astro/test/astro-jsx.test.js7
-rw-r--r--packages/astro/test/lit-element.test.js2
-rw-r--r--packages/astro/test/postcss.test.js2
6 files changed, 15 insertions, 15 deletions
diff --git a/FUNDING.md b/FUNDING.md
index a2f30315d..8a29c9011 100644
--- a/FUNDING.md
+++ b/FUNDING.md
@@ -1,6 +1,7 @@
# Astro Project Funding
_Last Updated: 02-09-2022_
+
## Raising Funds
Astro is an MIT licensed open source project and completely free to use. However, the amount of effort needed to maintain and develop new features for Astro is not sustainable without proper financial backing. We need your help to achieve this.
diff --git a/packages/astro/CHANGELOG.md b/packages/astro/CHANGELOG.md
index 00e96e83a..b59bccac2 100644
--- a/packages/astro/CHANGELOG.md
+++ b/packages/astro/CHANGELOG.md
@@ -1286,10 +1286,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' }]],
+ },
};
```
@@ -1309,10 +1309,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/astro/test/astro-attrs.test.js b/packages/astro/test/astro-attrs.test.js
index bf0106af7..1f2dc1544 100644
--- a/packages/astro/test/astro-attrs.test.js
+++ b/packages/astro/test/astro-attrs.test.js
@@ -31,7 +31,7 @@ describe('Attributes', async () => {
};
for (const id of Object.keys(attrs)) {
- const { attribute, value } = attrs[id]
+ const { attribute, value } = attrs[id];
const attr = $(`#${id}`).attr(attribute);
expect(attr).to.equal(value);
}
diff --git a/packages/astro/test/astro-jsx.test.js b/packages/astro/test/astro-jsx.test.js
index cca247d01..14ca9aa24 100644
--- a/packages/astro/test/astro-jsx.test.js
+++ b/packages/astro/test/astro-jsx.test.js
@@ -2,7 +2,6 @@ import { expect } from 'chai';
import { loadFixture } from './test-utils.js';
describe('JSX', () => {
-
let cwd = './fixtures/astro-jsx/';
let orders = [
['preact', 'react', 'solid'],
@@ -13,7 +12,7 @@ describe('JSX', () => {
['solid', 'preact', 'react'],
];
let fixtures = {};
-
+
before(async () => {
await Promise.all(
orders.map((renderers, n) =>
@@ -28,13 +27,13 @@ describe('JSX', () => {
)
);
});
-
+
it('Renderer order', () => {
it('JSX renderers can be defined in any order', async () => {
if (!Object.values(fixtures).length) {
throw new Error(`JSX renderers didn’t build properly`);
}
-
+
for (const [name, fixture] of Object.entries(fixtures)) {
const html = await fixture.readFile('/index.html');
expect(html, name).to.be.ok;
diff --git a/packages/astro/test/lit-element.test.js b/packages/astro/test/lit-element.test.js
index ad11fb641..8bb537874 100644
--- a/packages/astro/test/lit-element.test.js
+++ b/packages/astro/test/lit-element.test.js
@@ -7,7 +7,7 @@ describe('LitElement test', () => {
const NODE_VERSION = parseFloat(process.versions.node);
const stripExpressionMarkers = (html) => html.replace(/<!--\/?lit-part-->/g, '');
-
+
before(async () => {
// @lit-labs/ssr/ requires Node 13.9 or higher
if (NODE_VERSION < 13.9) {
diff --git a/packages/astro/test/postcss.test.js b/packages/astro/test/postcss.test.js
index 006c432e1..e528e23a4 100644
--- a/packages/astro/test/postcss.test.js
+++ b/packages/astro/test/postcss.test.js
@@ -14,7 +14,7 @@ describe('PostCSS', () => {
renderers: ['@astrojs/renderer-solid', '@astrojs/renderer-svelte', '@astrojs/renderer-vue'],
});
await fixture.build();
-
+
// get bundled CSS (will be hashed, hence DOM query)
const html = await fixture.readFile('/index.html');
const $ = cheerio.load(html);