diff options
| -rw-r--r-- | eslint.config.js | 10 | ||||
| -rw-r--r-- | src/routes/+page.svelte | 2 |
2 files changed, 11 insertions, 1 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/', diff --git a/src/routes/+page.svelte b/src/routes/+page.svelte index fc56140..0e9e1ac 100644 --- a/src/routes/+page.svelte +++ b/src/routes/+page.svelte @@ -1,4 +1,4 @@ -<script> +<script lang="ts"> import '../app.css'; import { enhance } from '$app/forms'; |
