We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent f05a9e7 commit deb5f6bCopy full SHA for deb5f6b
src/parser/parser-options.ts
@@ -65,7 +65,7 @@ const TS_PARSER_NAMES = [
65
66
export function isTypeScript(
67
parserOptions: NormalizedParserOptions,
68
- lang: string | undefined
+ lang: string | undefined,
69
): boolean {
70
if (!lang) {
71
return false;
@@ -88,7 +88,7 @@ export function isTypeScript(
88
if (fs.existsSync(pkgPath)) {
89
try {
90
return TS_PARSER_NAMES.includes(
91
- JSON.parse(fs.readFileSync(pkgPath, "utf-8"))?.name
+ JSON.parse(fs.readFileSync(pkgPath, "utf-8"))?.name,
92
);
93
} catch {
94
0 commit comments