Skip to content

Commit

Permalink
Update prettier
Browse files Browse the repository at this point in the history
  • Loading branch information
bluwy committed Aug 10, 2023
1 parent 945f058 commit 0d938f9
Show file tree
Hide file tree
Showing 12 changed files with 57 additions and 58 deletions.
4 changes: 2 additions & 2 deletions .prettierrc
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
"trailingComma": "none",
"semi": false,
"plugins": [
"./node_modules/prettier-plugin-svelte",
"./node_modules/prettier-plugin-astro"
"prettier-plugin-svelte",
"prettier-plugin-astro"
]
}
6 changes: 2 additions & 4 deletions docs/src/components/EditOn.astro
Original file line number Diff line number Diff line change
Expand Up @@ -19,10 +19,8 @@ const webPublisherEditUrl =
<a class="link" href={githubEditUrl} target="_blank">
Edit this page on GitHub
</a>
or
<a class="link" href={webPublisherEditUrl} target="_blank">
Web Publisher
</a>
or
<a class="link" href={webPublisherEditUrl} target="_blank"> Web Publisher</a>
</p>

<style>
Expand Down
5 changes: 3 additions & 2 deletions docs/src/components/hero/Hero.astro
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ const finalCode = demoCode.slice(0, demoCode.indexOf('\n<style'))

<p class="explainer">
whyframe gives iframes superpowers, <br />
making it easy to render anything in isolation.
making it easy to render anything in isolation.
</p>

<div class="buttons">
Expand Down Expand Up @@ -79,7 +79,8 @@ const finalCode = demoCode.slice(0, demoCode.indexOf('\n<style'))
border-radius: 0.5rem;
overflow: hidden;
max-width: 400px;
box-shadow: 0px 1px 2.2px 2px rgba(255, 237, 36, 0.128),
box-shadow:
0px 1px 2.2px 2px rgba(255, 237, 36, 0.128),
0px 1px 5.3px 2px rgba(255, 237, 36, 0.14),
0px 1px 10px 2px rgba(255, 237, 36, 0.15),
0px 1px 17.9px 2px rgba(255, 237, 36, 0.16),
Expand Down
3 changes: 2 additions & 1 deletion docs/src/components/hero/Hero2.astro
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,8 @@ import astro from '@/assets/astro.svg'
<h2>Bundlers</h2>
<p class="explainer">
Browsers ignore content within iframes by default, <br />
whyframe leverages <span>modern JavaScript bundlers</span> to make it possible.
whyframe leverages <span>modern JavaScript bundlers</span> to make it
possible.
</p>
<p class="imgs">
<a class="vite" href="https://vitejs.dev">
Expand Down
4 changes: 3 additions & 1 deletion docs/src/components/hero/Popup.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,9 @@
background-color: #f9f9f9;
color: #1e1e1e;
cursor: pointer;
transition: background-color 0.2s, border-color 0.25s;
transition:
background-color 0.2s,
border-color 0.25s;
}
button:hover {
Expand Down
1 change: 0 additions & 1 deletion docs/src/components/structure/LeftSidebar.astro
Original file line number Diff line number Diff line change
Expand Up @@ -166,7 +166,6 @@ function isCurrentPage(url: string) {
border-top-left-radius: 0;
border-bottom-left-radius: 0;
padding: 0.6rem;
color: ;
}

@media (min-width: 768px) {
Expand Down
4 changes: 3 additions & 1 deletion docs/src/components/structure/MoreMenu.astro
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,9 @@ const adjacentLink = getGuideAdjacentLink(Astro.url.pathname)
font-size: 1em;
color: var(--light);
text-decoration: none;
transition: border-color 0.2s ease-in-out, color 0.2s ease-in-out,
transition:
border-color 0.2s ease-in-out,
color 0.2s ease-in-out,
background-color 0.2s ease-in-out;
}

Expand Down
4 changes: 3 additions & 1 deletion docs/src/components/structure/TableOfContents.astro
Original file line number Diff line number Diff line change
Expand Up @@ -121,7 +121,9 @@ const htwoData = JSON.stringify(h2s.map((h) => h.slug))
text-decoration: none;
display: block;
opacity: 0.8;
transition: opacity 0.2s ease-in-out, color 0.2s ease-in-out;
transition:
opacity 0.2s ease-in-out,
color 0.2s ease-in-out;
}
a:hover,
a:focus {
Expand Down
2 changes: 1 addition & 1 deletion docs/src/pages/docs/integrations/astro.md
Original file line number Diff line number Diff line change
Expand Up @@ -76,7 +76,7 @@ As `whyframe`'s default HTML doesn't work in Astro, a custom HTML source is requ
To setup `/frames/default`, or in other words `http://localhost:3000/frames/default`, create a `src/pages/frames/default.astro` file:

```html
<!DOCTYPE html>
<!doctype html>
<html>
<head>
<meta charset="utf-8" />
Expand Down
8 changes: 4 additions & 4 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -13,10 +13,10 @@
"format": "prettier \"**/*.{js,ts,jsx,css,md,vue,svelte,astro}\" --write --cache"
},
"devDependencies": {
"prettier": "^2.8.7",
"prettier-plugin-astro": "^0.8.0",
"prettier-plugin-svelte": "^2.10.0",
"svelte": "^3.58.0",
"prettier": "^3.0.1",
"prettier-plugin-astro": "^0.11.0",
"prettier-plugin-svelte": "^3.0.3",
"svelte": "^4.1.2",
"uvu": "^0.5.6"
},
"packageManager": "[email protected]",
Expand Down
4 changes: 2 additions & 2 deletions playground/astro/src/pages/index.astro
Original file line number Diff line number Diff line change
Expand Up @@ -29,9 +29,9 @@ import PopupReact from '../components/PopupReact.jsx'
<p class="docs">
Check out the examples below to see component isolation in action!
<br />
You can view the source code at <code>src/pages/index.astro</code>.
You can view the source code at <code>src/pages/index.astro</code>.
<br />
Click on the logos above to learn more.
Click on the logos above to learn more.
</p>

<h2>Svelte</h2>
Expand Down
70 changes: 32 additions & 38 deletions pnpm-lock.yaml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit 0d938f9

Please sign in to comment.