From 57d82ac32f10fff0315707ba6696d4fc84e00938 Mon Sep 17 00:00:00 2001 From: Mark Erikson Date: Fri, 30 Aug 2024 18:33:20 -0400 Subject: [PATCH] Update Prettier parsers --- .../src/utils/prettier.ts | 15 ++++++++------- 1 file changed, 8 insertions(+), 7 deletions(-) diff --git a/packages/rtk-query-codegen-openapi/src/utils/prettier.ts b/packages/rtk-query-codegen-openapi/src/utils/prettier.ts index 54b52548b2..7fd0e675f0 100644 --- a/packages/rtk-query-codegen-openapi/src/utils/prettier.ts +++ b/packages/rtk-query-codegen-openapi/src/utils/prettier.ts @@ -1,19 +1,20 @@ import path from 'node:path'; import prettier from 'prettier'; +import type { BuiltInParserName } from 'prettier'; -const EXTENSION_TO_PARSER: Record = { +const EXTENSION_TO_PARSER: Record = { ts: 'typescript', tsx: 'typescript', - js: 'babylon', - jsx: 'babylon', + js: 'babel', + jsx: 'babel', 'js.flow': 'flow', flow: 'flow', gql: 'graphql', graphql: 'graphql', - css: 'postcss', - scss: 'postcss', - less: 'postcss', - stylus: 'postcss', + css: 'scss', + scss: 'scss', + less: 'scss', + stylus: 'scss', markdown: 'markdown', md: 'markdown', json: 'json',