Skip to content

Commit 0a1148f

Browse files
committed
Apply fix
1 parent 5885e12 commit 0a1148f

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

src/index.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,7 @@ export function parseForESLint(
5454
loc: true,
5555
range: true,
5656
tokens: true,
57-
...(parserOptions ?? {}),
57+
...parserOptions,
5858
}
5959

6060
let result: AST.ESLintExtendedProgram
@@ -69,7 +69,7 @@ export function parseForESLint(
6969
}
7070

7171
result.services = {
72-
...(result.services || {}),
72+
...result.services,
7373
...services.define(code, result.ast, document, locationCalculator, {
7474
parserOptions: options,
7575
}),

src/sfc/custom-block/index.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -263,7 +263,7 @@ export function createCustomBlockSharedContext({
263263
{ ...parserOptions, ...options },
264264
)
265265
},
266-
...(parsedResult.services ?? {}),
266+
...parsedResult.services,
267267
...(parsedResult.error
268268
? { parseError: parsedResult.error }
269269
: {}),

0 commit comments

Comments
 (0)