From 6cde16e66ddcb95f55aa2195910260d9b1faa88b Mon Sep 17 00:00:00 2001 From: Martin Kagamino Lehoux Date: Mon, 27 Jul 2026 17:10:22 +0200 Subject: chore: add TypeScript ESLint parser for .svelte files --- eslint.config.js | 10 ++++++++++ 1 file changed, 10 insertions(+) (limited to 'eslint.config.js') diff --git a/eslint.config.js b/eslint.config.js index c6154c0..e49e39f 100644 --- a/eslint.config.js +++ b/eslint.config.js @@ -1,12 +1,22 @@ import eslintPluginSvelte from 'eslint-plugin-svelte'; +import ts from 'typescript-eslint'; export default [ ...eslintPluginSvelte.configs['flat/recommended'], + ...eslintPluginSvelte.configs['flat/prettier'], { rules: { 'svelte/no-at-html-tags': 'off', }, }, + { + files: ['**/*.svelte'], + languageOptions: { + parserOptions: { + parser: ts.parser, + }, + }, + }, { ignores: [ 'build/', -- cgit v1.3