8000 Merge pull request #2 from shopware/fix-isSFCFile-function · vuejs/vue-eslint-parser@ea8b29b · GitHub
[go: up one dir, main page]

Skip to content

Commit ea8b29b

Browse files
authored
Merge pull request #2 from shopware/fix-isSFCFile-function
Fix isSFCFile function
2 parents 5dc5639 + c05ea80 commit ea8b29b

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/common/parser-options.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -59,7 +59,8 @@ export function isSFCFile(parserOptions: ParserOptions) {
5959
if (parserOptions.filePath === "<input>") {
6060
return true
6161
}
62-
return path.extname(parserOptions.filePath || "unknown.vue") === ".vue"
62+
// @ts-ignore
63+
return ['.vue', '.twig'].includes 48CB (path.extname(parserOptions.filePath || "unknown.vue"));
6364
}
6465

6566
/**

0 commit comments

Comments
 (0)
0