npm.io
1.1.0 • Published 7 years ago

tslint-formatter-kakoune

Licence
MIT
Version
1.1.0
Deps
0
Size
3 kB
Vulns
0
Weekly
0
DeprecatedThis package is deprecated

tslint-formatter-kakoune

TSLint formatter that follows kakoune format:

{filename}:{line}:{column}: {kind}: {message}

Installation

Using npm:

npm install --save-dev tslint-formatter-kakoune

Usage

TSLint CLI:
tslint --formatters-dir ./node_modules/tslint-formatter-kakoune -t kakoune -p .

In your kakrc:

hook global WinSetOption filetype=typescript %{
  set buffer lintcmd 'tslint --config tslint.json --formatters-dir ./node_modules/tslint-formatter-kakoune -t kakoune'
  lint-enable
  lint
}

You may add more hooks to trigger the lint command on save.

Keywords