From 388946a07fc460f9e1bf04432ce13bc753f8b3f6 Mon Sep 17 00:00:00 2001
From: techfg <barry@techfg.com>
Date: Mon, 30 Dec 2024 23:58:50 -0800
Subject: [PATCH] chore: migrate remark & prettier config to mjs

---
 .prettierrc.json               | 13 -------------
 .prettierrc.mjs                | 17 +++++++++++++++++
 .remarkrc.cjs => .remarkrc.mjs |  2 +-
 eslint.config.mjs              |  2 +-
 4 files changed, 19 insertions(+), 15 deletions(-)
 delete mode 100644 .prettierrc.json
 create mode 100644 .prettierrc.mjs
 rename .remarkrc.cjs => .remarkrc.mjs (99%)

diff --git a/.prettierrc.json b/.prettierrc.json
deleted file mode 100644
index 959c410..0000000
--- a/.prettierrc.json
+++ /dev/null
@@ -1,13 +0,0 @@
-{
-  "singleQuote": true,
-  "trailingComma": "none",
-  "plugins": ["prettier-plugin-astro"],
-  "overrides": [
-    {
-      "files": "*.astro",
-      "options": {
-        "parser": "astro"
-      }
-    }
-  ]
-}
diff --git a/.prettierrc.mjs b/.prettierrc.mjs
new file mode 100644
index 0000000..8f646a5
--- /dev/null
+++ b/.prettierrc.mjs
@@ -0,0 +1,17 @@
+/**
+ * @see https://prettier.io/docs/en/configuration.html
+ * @type {import("prettier").Config}
+ */
+export default {
+  singleQuote: true,
+  trailingComma: 'none',
+  plugins: ['prettier-plugin-astro'],
+  overrides: [
+    {
+      files: '*.astro',
+      options: {
+        parser: 'astro'
+      }
+    }
+  ]
+};
diff --git a/.remarkrc.cjs b/.remarkrc.mjs
similarity index 99%
rename from .remarkrc.cjs
rename to .remarkrc.mjs
index 46c8c61..30d6cfb 100644
--- a/.remarkrc.cjs
+++ b/.remarkrc.mjs
@@ -1,4 +1,4 @@
-module.exports = {
+export default {
   settings: {
     bullet: '-',
     emphasis: '_',
diff --git a/eslint.config.mjs b/eslint.config.mjs
index 43196fd..aa8c642 100644
--- a/eslint.config.mjs
+++ b/eslint.config.mjs
@@ -67,7 +67,7 @@ export default [
     }
   },
   {
-    files: ['.remarkrc.cjs'],
+    files: ['.remarkrc.mjs'],
     languageOptions: { globals: { ...globals.node } }
   },
   pluginJs.configs.recommended,