File tree Expand file tree Collapse file tree 2 files changed +5
-7
lines changed
docs-svelte-kit/src/lib/components Expand file tree Collapse file tree 2 files changed +5
-7
lines changed Original file line number Diff line number Diff line change 1010 postprocess ,
1111 } from " ../eslint/scripts/linter.js"
1212 import { loadModulesForBrowser } from " ../../../../src/shared/svelte-compile-warns/transform/load-module"
13+ let tsParser = null
1314 const linter = loadModulesForBrowser ()
1415 .then (async () => {
15- const parser = await import (" @typescript-eslint/parser" )
16- if (typeof window !== " undefined" ) {
17- window .require .define (" @typescript-eslint/parser" , parser)
18- }
16+ tsParser = await import (" @typescript-eslint/parser" )
1917 })
2018 .then (() => {
2119 return createLinter ()
171169 ecmaVersion: 2020 ,
172170 sourceType: " module" ,
173171 parser: {
174- ts: " @typescript-eslint/parser " ,
175- typescript: " @typescript-eslint/parser " ,
172+ ts: tsParser ,
173+ typescript: tsParser ,
176174 },
177175 },
178176 rules,
Original file line number Diff line number Diff line change 6666 "postcss-load-config" : " ^3.1.4" ,
6767 "postcss-safe-parser" : " ^6.0.0" ,
6868 "sourcemap-codec" : " ^1.4.8" ,
69- "svelte-eslint-parser" : " ^0.17 .0"
69+ "svelte-eslint-parser" : " ^0.18 .0"
7070 },
7171 "devDependencies" : {
7272 "@babel/core" : " ^7.16.0" ,
You can’t perform that action at this time.
0 commit comments