vim-tslint-config


Ⅰ. 插件描述

Wrapper for TSLint

Ⅱ. 基本信息

创建日期:  2016-09-20
使用用户:  1
Github星:  2
插件作者:  Shinya Ohyanagi

Ⅲ. 安装方法

使用Vundle管理器安装

在你的.vimrc下添加:
Plugin 'heavenshell/vim-tslint-config'
… 然后在Vim中运行以下命令:
:source %
:PluginInstall

对于Vundle版本 < 0.10.2,请用上面的Bundle替换Plugin。

使用NeoBundle管理器安装

在你的.vimrc下添加:
NeoBundle 'heavenshell/vim-tslint-config'
… 然后在Vim中运行以下命令:
:source %
:NeoBundleInstall

使用VimPlug管理器安装

在你的.vimrc下添加:
Plug 'heavenshell/vim-tslint-config'
… 然后在Vim中运行以下命令:
:source %
:PlugInstall

使用Pathogen管理器安装

在终端中运行以下命令:
cd ~/.vim/bundle
git clone https://github.com/heavenshell/vim-tslint-config

Ⅳ. 文档说明

# vim-tslint-config

Wrapper for tslint.

Motivations

I want to load tslint config file dynamically.

Syntastic can use tslint but not support config file.

watchdocs.vim also has tslint settings but not supporting config file.

Configure

Add tslint config file name to your .vimrc.

" tslint.vim {{{
let g:tslint_configs = [
  \ 'tslint-config-standard',
  \ 'tslint.json'
  \ ]
" }}}

Usage

:Tslint

If you did not set any args, vim-tslint would search g:tslint_configs's value and if config found, use it.

:Tslint -c tslint-config-standard

You can select tslint config file via command line.

:silent make|redraw|copen

Execute tslint via :make.

Helpful plugins

QuickFixstatus shows error message at the bottom of the screen.

Hier will highlight quickfix errors and location list entries in buffer.

Integration

vim-tslint can integrate with watchdocs.vim.

Configure followings to your .vimrc.

" Enable vim-tslint config
let g:quickrun_config['javascript/watchdogs_checker'] = {
  \ 'type': 'watchdogs_checker/tslint',
  \ 'hook/watchdogs_quickrun_running_tslint/enable': 1,
  \ }

Run watchdocs.vim.

:WatchdogsRun

Run Tslint and WatchdogsRun at once.

:TslintRun -c tslint-config-standard

添加新评论