ts-diagnostic-formatter

Formatter for TypeScript Diagnostics

Downloads in past

Stats

StarsIssuesVersionUpdatedCreatedSize
ts-diagnostic-formatter
500.1.16 years ago6 years agoMinified + gzip package size for ts-diagnostic-formatter in KB

Readme

ts-diagnostic-formatter
!Build Status Linuxbuild-travis-badgebuild-travis !Build Status Windowsbuild-appveyor-badgebuild-appveyor !codecovcodecov-badgecodecov
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

ts-loader formatter

stylish

stylish formatter

codeframe

codeframe formatter

License

MIT