We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 52f4243 commit 90e4b23Copy full SHA for 90e4b23
src/cli/adapter/prettier.ts
@@ -35,9 +35,8 @@ let languages: SupportLanguage[] | undefined;
35
*
36
* - https://github.com/prettier/prettier/blob/2.4.1/src/main/options.js#L167
37
* - seek-oss/skuba#659
38
- *
39
*/
40
-export const inferParser = (filepath: string) => {
+export const inferParser = (filepath: string): string | undefined => {
41
const filename = path.basename(filepath).toLowerCase();
42
43
languages ??= getSupportInfo().languages.filter((language) => language.since);
0 commit comments