Skip to content

Commit

Permalink
MDX 내 TS용 별도 린트 룰 세팅
Browse files Browse the repository at this point in the history
  • Loading branch information
XiNiHa committed Mar 21, 2024
1 parent 9ea4056 commit 0dc35e1
Showing 1 changed file with 17 additions and 1 deletion.
18 changes: 17 additions & 1 deletion eslint.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ export default [
},
{
files: ["**/*.{ts,tsx}"],
ignores: ["scripts/**/*.ts", "**/*.astro/*.ts"],
ignores: ["scripts/**/*.ts", "**/*.astro/*.ts", "**/*.mdx/*"],
languageOptions: {
parser: tsEslintParser,
parserOptions: {
Expand Down Expand Up @@ -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" },
Expand Down

0 comments on commit 0dc35e1

Please sign in to comment.