diff options
| author | Martin Kagamino Lehoux <martin@lehoux.net> | 2026-07-27 17:10:22 +0200 |
|---|---|---|
| committer | Martin Kagamino Lehoux <martin@lehoux.net> | 2026-07-27 17:10:22 +0200 |
| commit | 6cde16e66ddcb95f55aa2195910260d9b1faa88b (patch) | |
| tree | dc953646a9cca4061542b3bf717e3d244c9b2005 /eslint.config.js | |
| parent | 71ca66bcba70f7a463df6ee9bdcb0e14b8e60595 (diff) | |
chore: add TypeScript ESLint parser for .svelte files
Diffstat (limited to 'eslint.config.js')
| -rw-r--r-- | eslint.config.js | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/eslint.config.js b/eslint.config.js index c6154c0..e49e39f 100644 --- a/eslint.config.js +++ b/eslint.config.js @@ -1,13 +1,23 @@ 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/', '.svelte-kit/', |
