Commit 0a315d4

HPCesia <me@hpcesia.com>
2025-03-14 10:24:26
style: replace unused declare to `_`
1 parent 660a4c8
Changed files (2)
src/pages/posts/[article].astro
@@ -69,7 +69,7 @@ const references: {
   context: string;
   id: string;
 }[] = remarkPluginFrontmatter.references || [];
-contentString = contentString.replaceAll(referencePattern, (match, reference, alias) => {
+contentString = contentString.replaceAll(referencePattern, (_, reference, alias) => {
   const refArticle = getArticle(reference);
   if (
     refArticle &&
src/plugins/remark-create-time.ts
@@ -2,7 +2,7 @@ import type { RemarkPlugin } from '@astrojs/markdown-remark';
 import { statSync } from 'fs';
 
 export const remarkCreateTime: RemarkPlugin = function () {
-  return function (tree, file) {
+  return function (_, file) {
     const filepath = file.history[0];
     const result = statSync(filepath);
     file.data!.astro!.frontmatter!.createAt = result.birthtime.toISOString();