As pointed out in https://github.com/unic/openapi-proptypes-generator/pull/13/files#r369087261, we could get rid of all the logic to indent and instead use prettier to format the generated code. Something like: ```js generatedCode += `export const ${variableName} = ${JSON.stringify(object)}\n` const options = await prettier.resolveConfig('.prettierrc') const formattedCode = prettier.format(generatedCode, options) ```
Activity