File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 11import { writeFile } from 'node:fs/promises' ;
2+ import prettierConfig from '@block65/eslint-config/prettier' ;
23import type { OpenAPIV3 } from 'openapi-types' ;
3- import { format } from 'prettier' ;
4+ import { format as prettier } from 'prettier' ;
45import { processOpenApiDocument } from './process-document.js' ;
56
67export async function build (
@@ -48,4 +49,8 @@ export async function build(
4849 ) ,
4950 ) ,
5051 ) ;
52+ const data = await prettier ( file . getFullText ( ) , {
53+ parser : 'typescript' ,
54+ ...prettierConfig ,
55+ } ) ;
5156}
Original file line number Diff line number Diff line change 1+ declare module '@block65/eslint-config/prettier' {
2+ import { Options } from 'prettier' ;
3+
4+ declare const options : Options ;
5+
6+ export default options ;
7+ }
Original file line number Diff line number Diff line change 2525 },
2626 "dependencies" : {
2727 "@apidevtools/json-schema-ref-parser" : " ^11.6.2" ,
28+ "@block65/eslint-config" : " ^12.0.1" ,
2829 "camelcase" : " ^8.0.0" ,
2930 "prettier" : " ^3.2.5" ,
3031 "toposort" : " ^2.0.2" ,
3738 "@babel/core" : " ^7.24.6" ,
3839 "@babel/preset-env" : " ^7.24.6" ,
3940 "@babel/preset-typescript" : " ^7.24.6" ,
40- "@block65/eslint-config" : " ^12.0.1" ,
4141 "@block65/rest-client" : " ^9.2.0" ,
4242 "@hapi/bourne" : " ^3.0.0" ,
4343 "@jest/globals" : " ^29.7.0" ,
You can’t perform that action at this time.
0 commit comments