summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGravatar matthewp <matthewp@users.noreply.github.com> 2021-05-27 17:55:41 +0000
committerGravatar GitHub Actions <actions@github.com> 2021-05-27 17:55:41 +0000
commitc711681cb6f154ada09eebc898b2f09923347af6 (patch)
tree5fd00b23cd58300f0b43afaff8bf23410a457cbd
parentdd7cc798e04897ece8b280f9145cfa6789e8501e (diff)
downloadastro-c711681cb6f154ada09eebc898b2f09923347af6.tar.gz
astro-c711681cb6f154ada09eebc898b2f09923347af6.tar.zst
astro-c711681cb6f154ada09eebc898b2f09923347af6.zip
[ci] yarn format
-rw-r--r--examples/astro-markdown/src/pages/other.md2
-rw-r--r--packages/astro/src/compiler/codegen/index.ts10
2 files changed, 6 insertions, 6 deletions
diff --git a/examples/astro-markdown/src/pages/other.md b/examples/astro-markdown/src/pages/other.md
index 2a059e3d1..d4180940d 100644
--- a/examples/astro-markdown/src/pages/other.md
+++ b/examples/astro-markdown/src/pages/other.md
@@ -15,4 +15,4 @@ function doSomething() {
# Paragraph
-text here. \ No newline at end of file
+text here.
diff --git a/packages/astro/src/compiler/codegen/index.ts b/packages/astro/src/compiler/codegen/index.ts
index edb83623a..97687b4a9 100644
--- a/packages/astro/src/compiler/codegen/index.ts
+++ b/packages/astro/src/compiler/codegen/index.ts
@@ -449,7 +449,7 @@ async function compileHtml(enterNode: TemplateNode, state: CodegenState, compile
await transform(ast, {
compileOptions,
filename,
- fileID
+ fileID,
});
// 3. Codegen
@@ -491,18 +491,18 @@ async function compileHtml(enterNode: TemplateNode, state: CodegenState, compile
case 'Slot':
case 'Head':
case 'InlineComponent': {
- switch(node.name) {
+ switch (node.name) {
case 'Prism': {
- if(!importExportStatements.has(PRISM_IMPORT)) {
+ if (!importExportStatements.has(PRISM_IMPORT)) {
importExportStatements.add(PRISM_IMPORT);
}
- if(!components.has('Prism')) {
+ if (!components.has('Prism')) {
components.set('Prism', {
importSpecifier: {
type: 'ImportDefaultSpecifier',
local: { type: 'Identifier', name: 'Prism' } as Identifier,
} as ImportDefaultSpecifier,
- url: 'astro/components/Prism.astro'
+ url: 'astro/components/Prism.astro',
});
}
break;