Skip to content

Commit 94a9bc3

Browse files
committed
fix: add missing parser options to svelte config
1 parent 7e81463 commit 94a9bc3

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

src/svelte/svelte-config.js

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
import globals from 'globals'
22
import jsPlugin from '@eslint/js'
33
import tsPlugin from '@typescript-eslint/eslint-plugin'
4+
import tsParser from '@typescript-eslint/parser'
45
import sveltePlugin from 'eslint-plugin-svelte'
56
import svelteParser from 'svelte-eslint-parser'
67

@@ -11,6 +12,9 @@ export const svelteConfig = {
1112
sourceType: 'module',
1213
ecmaVersion: 'latest',
1314
parser: svelteParser,
15+
parserOptions: {
16+
parser: tsParser,
17+
},
1418
globals: {
1519
...globals.es2021,
1620
...globals.browser,

0 commit comments

Comments
 (0)