Formatter for TypeScript Diagnostics
npm install ts-diagnostic-formatterA collection of custom formatter for TypeScript Diagnostics.
Install ts-diagnostic-formatter via NPM as usual:
``sh`
$ npm install ts-diagnostic-formatter --save-dev
`typescript``
import diagnosticFormatter from "ts-diagnostic-formatter";
const formatter = "ts-loader"; // or stylish/codeframe
const contextPath = process.cwd();
const formattedDiagnostics = diagnosticFormatter(diagnostics, formatter, contextPath);
MIT
[build-travis-badge]: https://travis-ci.org/zinserjan/ts-diagnostic-formatter.svg?branch=master
[build-travis]: https://travis-ci.org/zinserjan/ts-diagnostic-formatter
[build-appveyor-badge]: https://ci.appveyor.com/api/projects/status/swjbs9vq1l9yy4v9/branch/master?svg=true
[build-appveyor]: https://ci.appveyor.com/project/zinserjan/ts-diagnostic-formatter
[codecov-badge]: https://codecov.io/gh/zinserjan/ts-diagnostic-formatter/branch/master/graph/badge.svg
[codecov]: https://codecov.io/gh/zinserjan/ts-diagnostic-formatter