fix: biome linter error (#369)
* fix(remark-excerpt): change loop variable to const for better readability * fix(rehype-component-github-card): correct string quotes for consistency in title element * fix(remark-directive-rehype): update biome-ignore comment for clarity on linting rule * fix(rehype-component-admonition): use optional chaining for properties check and improve formatting * fix(Pagination): improve equality checks and enhance code readability * fix(TOC): correct equality check for consistency in removeTailingHash function * fix(ImageWrapper): update import path to use 'node:path' for consistency * fix(PostCard): update import path to use 'node:path' for consistency
This commit is contained in:
1 parent
c106a639f4
commit
b016bd096c
8 files changed
+22
-18
No files matched your search
@@ -1,5 +1,5 @@
|
||||
---
|
||||
import path from 'path'
|
||||
import path from 'node:path'
|
||||
interface Props {
|
||||
id?: string
|
||||
src: string
|
||||
@@ -24,6 +24,7 @@ const isPublic = src.startsWith('/')
|
||||
|
||||
// TODO temporary workaround for images dynamic import
|
||||
// https://github.com/withastro/astro/issues/3373
|
||||
// biome-ignore lint/suspicious/noImplicitAnyLet: <explanation>
|
||||
let img
|
||||
if (isLocal) {
|
||||
const files = import.meta.glob<ImageMetadata>('../../**', {
|
||||
|
||||
Reference in new issue
Block a user