Skip to content

Commit d70b829

Browse files
Docs: enable prettier-plugin-astro plugin (twbs#42390)
Co-authored-by: Pierluigi Lenoci <pierluigilenoci@gmail.com>
1 parent 5eeea39 commit d70b829

6 files changed

Lines changed: 9 additions & 2 deletions

File tree

site/.prettierrc.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
{
22
"$schema": "http://json.schemastore.org/prettierrc",
33
"arrowParens": "always",
4+
"plugins": ["prettier-plugin-astro"],
45
"printWidth": 120,
56
"semi": false,
67
"singleQuote": true,
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
---
2+
23
---
34

45
<script src="../assets/stackblitz.js"></script>

site/src/components/head/Scss.astro

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
---
2+
23
---
34

45
<style is:global lang="scss">

site/src/components/head/ScssProd.astro

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
---
2+
23
---
34

45
<style is:global lang="scss">

site/src/components/icons/Symbols.astro

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
---
2+
23
---
34

45
<svg xmlns="http://www.w3.org/2000/svg" class="d-none">

site/src/layouts/ExamplesLayout.astro

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ const canonicalUrl = new URL(Astro.url.pathname, Astro.site)
1919
const htmlProps: HTMLAttributes<'html'> = direction === 'rtl' ? { lang: 'ar', dir: 'rtl' } : { lang: 'en' }
2020
---
2121

22-
<!DOCTYPE html>
22+
<!doctype html>
2323
<html {...htmlProps} class:list={html_class} data-bs-theme="auto">
2424
<head>
2525
<meta charset="utf-8" />
@@ -57,7 +57,9 @@ const htmlProps: HTMLAttributes<'html'> = direction === 'rtl' ? { lang: 'ar', di
5757
background-color: rgba(0, 0, 0, 0.1);
5858
border: solid rgba(0, 0, 0, 0.15);
5959
border-width: 1px 0;
60-
box-shadow: inset 0 0.5em 1.5em rgba(0, 0, 0, 0.1), inset 0 0.125em 0.5em rgba(0, 0, 0, 0.15);
60+
box-shadow:
61+
inset 0 0.5em 1.5em rgba(0, 0, 0, 0.1),
62+
inset 0 0.125em 0.5em rgba(0, 0, 0, 0.15);
6163
}
6264

6365
.b-example-vr {

0 commit comments

Comments
 (0)