Skip to content

Commit b3ceb2b

Browse files
authored
Update utils.ts
1 parent e5d218a commit b3ceb2b

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

tests/utils/utils.ts

+1-3
Original file line numberDiff line numberDiff line change
@@ -185,9 +185,7 @@ function writeFixtures(
185185
const config = getConfig(ruleName, inputFile)
186186

187187
const parser =
188-
path.extname(inputFile) === ".svelte"
189-
? require.resolve("svelte-eslint-parser")
190-
: undefined
188+
path.extname(inputFile) === ".svelte" ? "svelte-eslint-parser" : undefined
191189
const result = linter.verify(
192190
config.code,
193191
{

0 commit comments

Comments
 (0)