From 0dc35e169a91750a3844c4afb2df181640b98bfb Mon Sep 17 00:00:00 2001 From: XiNiHa Date: Fri, 22 Mar 2024 00:42:28 +0900 Subject: [PATCH] =?UTF-8?q?MDX=20=EB=82=B4=20TS=EC=9A=A9=20=EB=B3=84?= =?UTF-8?q?=EB=8F=84=20=EB=A6=B0=ED=8A=B8=20=EB=A3=B0=20=EC=84=B8=ED=8C=85?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- eslint.config.js | 18 +++++++++++++++++- 1 file changed, 17 insertions(+), 1 deletion(-) diff --git a/eslint.config.js b/eslint.config.js index b0a309f8e..d4ef687fc 100644 --- a/eslint.config.js +++ b/eslint.config.js @@ -34,7 +34,7 @@ export default [ }, { files: ["**/*.{ts,tsx}"], - ignores: ["scripts/**/*.ts", "**/*.astro/*.ts"], + ignores: ["scripts/**/*.ts", "**/*.astro/*.ts", "**/*.mdx/*"], languageOptions: { parser: tsEslintParser, parserOptions: { @@ -68,6 +68,22 @@ export default [ files: ["**/*.mdx/*"], rules: { "prettier/prettier": "error" }, }, + { + files: ["**/*.mdx/*.{ts,tsx}"], + languageOptions: { + parser: tsEslintParser, + parserOptions: { + sourceType: "module", + }, + }, + plugins: { + "@typescript-eslint": tsEslintPlugin, + }, + rules: { + ...tsRules, + "@typescript-eslint/no-unused-vars": "off", + }, + }, { plugins: { unocss }, rules: { "unocss/order": "error" },