I want to run tslint fix in a script on a string. I imagine something like this:
import { fixer } from 'tslint'
const stringToFormatAndFix = // some typescript file content
const formatted = fixer(tslintJson, 'file/path/to/tslint.json')
Background: I'm using tsquery to find the last PropertySignature of an Interface and append a string to it. Afterwards I want to autoformat that file based on the tslint.json. Because I am using angular schematics and all changes are made in a virtual file system, I can't just run tslint via its cli.