An ESLint plugin for linting Svelte v3 components. Version 4.0.0 transforms Svelte compiler errors/warnings into ESLint messages, lints script blocks and template expressions with existing rules, and respects Svelte scoping (stores, reactive declarations). Requires ESLint 8+ and Svelte 3.2+. Differentiates from svelte-eslint-parser by being processor-based and using the Svelte compiler directly; deprecated in favor of eslint-plugin-svelte for Svelte 4+.
npm install eslint-plugin-svelte3Verified import paths — ran on the pinned version, not inferred.
Basic ESLint config for Svelte v3 using eslint-plugin-svelte3 processor, ignoring CSS styles.
Migrate to eslint-plugin-svelte (https://github.com/sveltejs/eslint-plugin-svelte)
Upgrade to ESLint 8+ or stick with v3 (deprecated) if using older ESLint.
Set processor to 'svelte3/svelte3' in overrides.
Add 'svelte3/typescript': () => require('typescript') to settings.Use a function: 'svelte3/ignore-styles': () => true
Run: npm install --save-dev eslint-plugin-svelte3
Ensure eslint is properly installed and your config includes 'eslint:recommended' or the rule explicitly.
Install: npm install --save-dev @typescript-eslint/parser
Upgrade to >=1.0.0: npm install eslint-plugin-svelte3@latest