fix(eslint): remove projectService from Svelte parser — restores fast lint #600
Reference in New Issue
Block a user
Delete Branch "fix/eslint-projectservice-slow-lint"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Summary
projectService: truefrom the Svelte-files ESLint parser config, restoring fast CI lint (~30s vs 7+ min).Root cause
5646e739added an unconditionalsvelte-kit syncstep before linting so.svelte-kit/tsconfig.jsonalways exists (correct fix). This inadvertently activatedprojectService: trueon every run — ESLint now builds the full TypeScript language service for all.sveltefiles.Before that commit, cache-hit runs had no
tsconfig.json, soprojectServicefell back silently to AST-only parsing — fast. Now it always resolves the project and does full type-aware compilation — slow.Why projectService is not needed
All rules in the Svelte-specific config block are AST-selector-based
no-restricted-syntaxchecks. None of them require type information.parser: ts.parseris still present and sufficient for correct<script lang="ts">parsing.Test plan
npm run lintpasses locally after the change🤖 Generated with Claude Code