Skip to content

Commit 5aa2827

Browse files
committed
chore: add eslint to prevent importing with $lib inthe lib folder
1 parent a35d72c commit 5aa2827

File tree

1 file changed

+17
-0
lines changed

1 file changed

+17
-0
lines changed

eslint.config.js

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -35,6 +35,23 @@ export default ts.config(
3535
'func-style': ['error', 'declaration', { allowTypeAnnotation: true }],
3636
},
3737
},
38+
{
39+
files: ['./src/lib/**/*'],
40+
rules: {
41+
'no-restricted-imports': [
42+
'error',
43+
{
44+
patterns: [
45+
{
46+
group: ['$lib'],
47+
message:
48+
"Since we will build the mcp server with typescript we can't use `$lib` imports here, please import with relative paths",
49+
},
50+
],
51+
},
52+
],
53+
},
54+
},
3855
{
3956
files: ['**/*.svelte', '**/*.svelte.ts', '**/*.svelte.js'],
4057
languageOptions: {

0 commit comments

Comments
 (0)