We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent a985f93 commit 57d82acCopy full SHA for 57d82ac
packages/rtk-query-codegen-openapi/src/utils/prettier.ts
@@ -1,19 +1,20 @@
1
import path from 'node:path';
2
import prettier from 'prettier';
3
+import type { BuiltInParserName } from 'prettier';
4
-const EXTENSION_TO_PARSER: Record<string, string> = {
5
+const EXTENSION_TO_PARSER: Record<string, BuiltInParserName> = {
6
ts: 'typescript',
7
tsx: 'typescript',
- js: 'babylon',
8
- jsx: 'babylon',
+ js: 'babel',
9
+ jsx: 'babel',
10
'js.flow': 'flow',
11
flow: 'flow',
12
gql: 'graphql',
13
graphql: 'graphql',
- css: 'postcss',
14
- scss: 'postcss',
15
- less: 'postcss',
16
- stylus: 'postcss',
+ css: 'scss',
+ scss: 'scss',
+ less: 'scss',
17
+ stylus: 'scss',
18
markdown: 'markdown',
19
md: 'markdown',
20
json: 'json',
0 commit comments