Skip to content

Commit 3586af7

Browse files
committed
format w/ prettier
1 parent 01c997e commit 3586af7

8 files changed

Lines changed: 5181 additions & 2488 deletions

File tree

pnpm-lock.yaml

Lines changed: 5172 additions & 2475 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

src/components/common/CodeBlock.astro

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
---
22
import hljs from "highlight.js";
3-
import {JSDOM} from "jsdom";
3+
import { JSDOM } from "jsdom";
44
import Icon from "./Icon.astro";
55
import Tooltip from "./Tooltip.astro";
66

src/components/common/Icon.astro

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ export interface Props {
2020
2121
const icon = fa.icon(Astro.props.icon, { classes, styles });
2222
if (!icon?.html) {
23-
throw new Error(`Failed to retrieve icon HTML for ${Astro.props.icon}`)
23+
throw new Error(`Failed to retrieve icon HTML for ${Astro.props.icon}`);
2424
}
2525
---
2626

src/components/layout/Header.astro

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -43,10 +43,7 @@ const { class: className } = Astro.props;
4343
</button>
4444
</Tooltip>
4545
<span class="github">
46-
<ExternalLink
47-
url="https://github.com/luals/lua-language-server"
48-
noIcon
49-
>
46+
<ExternalLink url="https://github.com/luals/lua-language-server" noIcon>
5047
<Tooltip content="View Project on GitHub">
5148
<Icon icon={faGithub} />
5249
</Tooltip>

src/content/wiki/definition-files.mdx

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,8 @@ function Character.hello(name) end
3232
Note how the above function has no implementation code. This is because this is just a "meta" definition file that explains the signature of the actual implementation code that lives elsewhere.
3333

3434
<Remark type="recommendation" display="folded">
35-
Name your definition files `*.d.lua`, such as `filesystem.d.lua`, to make it clear which files are purely for documentation and not implementation code.
35+
Name your definition files `*.d.lua`, such as `filesystem.d.lua`, to make it
36+
clear which files are purely for documentation and not implementation code.
3637
</Remark>
3738

3839
## Using Definition Files

src/content/wiki/introduction.mdx

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,5 +39,4 @@ Even though Lua almost outright rejects being opinionated, in this section we'll
3939

4040
If you are working on a simple project, especially one where definitions are unlikely to be re-used, your [definitions](/wiki/definition-files) should be placed and committed under a `types/`, `stubs/`, or similar directory within your workspace. This means you don't have to use [workspace.library](/wiki/settings#workspacelibrary). For large projects, or when the definitions will be used in multiple projects, they should be packaged as an [addon](/wiki/addons) and loaded with [workspace.library](/wiki/settings#workspacelibrary).
4141

42-
4342
Borrowing from TypeScript, [definition files](/wiki/definition-files) should be named `*.d.lua`, such as `filesystem.d.lua` so that they can quickly be identified as non-implementation ["meta"](/wiki/annotations#meta) code.

src/layouts/WikiArticle.astro

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -130,10 +130,10 @@ const modifiedTime = lastModified
130130
</div>
131131
<aside id="outline" class="sidebar">
132132
<button class="open" aria-label="Open outline"
133-
><Icon icon={faList}/></button
133+
><Icon icon={faList} /></button
134134
>
135135
<button class="close" aria-label="Close outline"
136-
><Icon icon={faX}/></button
136+
><Icon icon={faX} /></button
137137
>
138138
<h2 class="title">Outline</h2>
139139
<nav class="content">

src/pages/index.astro

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -274,9 +274,8 @@ const annotationCount = annotationsPage
274274
</ol>
275275
</li>
276276
<li>
277-
Ensure that the <code>lua-language-server</code> is executable
278-
from the command line. It may need to be added to <code
279-
>$PATH</code
277+
Ensure that the <code>lua-language-server</code> is executable from
278+
the command line. It may need to be added to <code>$PATH</code
280279
>.
281280
</li>
282281
<li>

0 commit comments

Comments
 (0)