1.1.0 • Published 5 years ago

tslint-formatter-kakoune v1.1.0

Weekly downloads
3
License
MIT
Repository
github
Last release
5 years ago

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.