Skip to content

Commit 092c5c5

Browse files
fix: lint and Fragment resolve issue
1 parent 68a785d commit 092c5c5

4 files changed

Lines changed: 10 additions & 14 deletions

File tree

site/astro.config.mjs

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ const viteConfig = {
1919
preprocessorOptions: {
2020
scss: {
2121
logger: {
22-
warn: () => { },
22+
warn: () => {},
2323
},
2424
},
2525
},
@@ -101,10 +101,10 @@ export default defineConfig({
101101
{
102102
id: 'pywire',
103103
scopeName: 'source.pywire',
104-
path: './src/grammars/pywire.tmLanguage.json'
105-
}
106-
]
107-
}
104+
path: './src/grammars/pywire.tmLanguage.json',
105+
},
106+
],
107+
},
108108
},
109109
vite: viteConfig,
110110
})

site/eslint.config.js

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -52,6 +52,9 @@ export default [
5252
parser: '@typescript-eslint/parser',
5353
extraFileExtensions: ['.astro'],
5454
},
55+
globals: {
56+
Fragment: 'readonly',
57+
},
5558
},
5659
rules: {
5760
...astro.configs.recommended.rules,

site/public/grammars/pywire.tmLanguage.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -359,4 +359,4 @@
359359
]
360360
}
361361
}
362-
}
362+
}

site/src/pages/index.astro

Lines changed: 1 addition & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,6 @@ const highlighter = await createHighlighter({
1717
],
1818
})
1919
20-
2120
const pywireCode = `count = wire(0)
2221
2322
def increment():
@@ -50,13 +49,7 @@ const pywireHtml = highlighter.codeToHtml(pywireCode, {
5049
<Link href="/docs/guides/quickstart/" isButton type="primary" animateOnHover animationType="boop">
5150
Get Started
5251
</Link>
53-
<Link
54-
href="https://github.com/pywire/pywire"
55-
isButton
56-
type="secondary"
57-
animateOnHover
58-
animationType="boop"
59-
>
52+
<Link href="https://github.com/pywire/pywire" isButton type="secondary" animateOnHover animationType="boop">
6053
<Icon aria-hidden="true" name="lucide:github" size="1.5rem" />
6154
View on GitHub
6255
</Link>

0 commit comments

Comments
 (0)