diff --git a/eslint.config.js b/eslint.config.js index f392a2b..80f4bbb 100644 --- a/eslint.config.js +++ b/eslint.config.js @@ -35,6 +35,23 @@ export default ts.config( 'func-style': ['error', 'declaration', { allowTypeAnnotation: true }], }, }, + { + files: ['./src/lib/**/*'], + rules: { + 'no-restricted-imports': [ + 'error', + { + patterns: [ + { + group: ['$lib'], + message: + "Since we will build the mcp server with typescript we can't use `$lib` imports here, please import with relative paths", + }, + ], + }, + ], + }, + }, { files: ['**/*.svelte', '**/*.svelte.ts', '**/*.svelte.js'], languageOptions: { diff --git a/src/lib/parse/parse.spec.ts b/src/lib/parse/parse.spec.ts index 1cbb9fd..17e08d4 100644 --- a/src/lib/parse/parse.spec.ts +++ b/src/lib/parse/parse.spec.ts @@ -1,6 +1,6 @@ import type { TSESTree } from '@typescript-eslint/types'; import { describe, expect, it } from 'vitest'; -import { walk } from '$lib/index.js'; +import { walk } from '../index.js'; import { parse, type ParseResult } from './parse.js'; // ----------------------------------------------------------------------