Skip to content

Commit

Permalink
Merge pull request #4589 from reduxjs/bugfix/3155-rtkq-parsers
Browse files Browse the repository at this point in the history
  • Loading branch information
markerikson authored Aug 30, 2024
2 parents a985f93 + 57d82ac commit 46b4406
Showing 1 changed file with 8 additions and 7 deletions.
15 changes: 8 additions & 7 deletions packages/rtk-query-codegen-openapi/src/utils/prettier.ts
Original file line number Diff line number Diff line change
@@ -1,19 +1,20 @@
import path from 'node:path';
import prettier from 'prettier';
import type { BuiltInParserName } from 'prettier';

const EXTENSION_TO_PARSER: Record<string, string> = {
const EXTENSION_TO_PARSER: Record<string, BuiltInParserName> = {
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',
Expand Down

0 comments on commit 46b4406

Please sign in to comment.