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" },