ts-diagnostic-formatter
v0.1.1
Published
Formatter for TypeScript Diagnostics
Downloads
211
Maintainers
Readme
ts-diagnostic-formatter
A collection of custom formatter for TypeScript Diagnostics.
Installation
Install ts-diagnostic-formatter via NPM as usual:
$ npm install ts-diagnostic-formatter --save-dev
Usage
import diagnosticFormatter from "ts-diagnostic-formatter";
const formatter = "ts-loader"; // or stylish/codeframe
const contextPath = process.cwd();
const formattedDiagnostics = diagnosticFormatter(diagnostics, formatter, contextPath);
Included formatters
ts-loader
stylish
codeframe
License
MIT