Skip to content

Commit a9bd934

Browse files
committed
Update ESLint config for .mts files and exceptions
1 parent eaa08aa commit a9bd934

1 file changed

Lines changed: 8 additions & 3 deletions

File tree

eslint.config.mjs

Lines changed: 8 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -14,8 +14,6 @@ export default defineConfig(
1414
"**/.turbo/",
1515
"**/dist/",
1616
"**/*.d.ts",
17-
// TODO: Consider enabling linting for scripts and examples later.
18-
"scripts/**",
1917
// To validate examples, uncomment apps/** and packages/** otherwise
2018
// FATAL ERROR: Reached heap limit Allocation failed - JavaScript heap out of memory
2119
"examples/**",
@@ -25,7 +23,7 @@ export default defineConfig(
2523
},
2624
eslint.configs.recommended,
2725
{
28-
files: ["**/*.ts", "**/*.tsx"],
26+
files: ["**/*.ts", "**/*.tsx", "**/*.mts"],
2927
extends: [
3028
tseslint.configs.strictTypeChecked,
3129
tseslint.configs.stylisticTypeChecked,
@@ -101,4 +99,11 @@ export default defineConfig(
10199
"react-hooks/exhaustive-deps": "off",
102100
},
103101
},
102+
{
103+
files: ["apps/web/typography.mts"],
104+
rules: {
105+
"@typescript-eslint/no-unsafe-assignment": "off",
106+
"@typescript-eslint/no-unsafe-member-access": "off",
107+
},
108+
},
104109
);

0 commit comments

Comments
 (0)