Skip to content

Commit 57d82ac

Browse files
committed
Update Prettier parsers
1 parent a985f93 commit 57d82ac

File tree

1 file changed

+8
-7
lines changed
  • packages/rtk-query-codegen-openapi/src/utils

1 file changed

+8
-7
lines changed

packages/rtk-query-codegen-openapi/src/utils/prettier.ts

Lines changed: 8 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,19 +1,20 @@
11
import path from 'node:path';
22
import prettier from 'prettier';
3+
import type { BuiltInParserName } from 'prettier';
34

4-
const EXTENSION_TO_PARSER: Record<string, string> = {
5+
const EXTENSION_TO_PARSER: Record<string, BuiltInParserName> = {
56
ts: 'typescript',
67
tsx: 'typescript',
7-
js: 'babylon',
8-
jsx: 'babylon',
8+
js: 'babel',
9+
jsx: 'babel',
910
'js.flow': 'flow',
1011
flow: 'flow',
1112
gql: 'graphql',
1213
graphql: 'graphql',
13-
css: 'postcss',
14-
scss: 'postcss',
15-
less: 'postcss',
16-
stylus: 'postcss',
14+
css: 'scss',
15+
scss: 'scss',
16+
less: 'scss',
17+
stylus: 'scss',
1718
markdown: 'markdown',
1819
md: 'markdown',
1920
json: 'json',

0 commit comments

Comments
 (0)