https://github.com/heavenshell/vim-tslint-config
Wrapper for TSLint
https://github.com/heavenshell/vim-tslint-config
Last synced: 3 months ago
JSON representation
Wrapper for TSLint
- Host: GitHub
- URL: https://github.com/heavenshell/vim-tslint-config
- Owner: heavenshell
- License: bsd-3-clause
- Created: 2016-09-20T13:50:23.000Z (almost 10 years ago)
- Default Branch: master
- Last Pushed: 2016-10-06T15:20:20.000Z (over 9 years ago)
- Last Synced: 2026-03-06T05:01:03.396Z (4 months ago)
- Language: VimL
- Size: 6.84 KB
- Stars: 2
- Watchers: 1
- Forks: 0
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# vim-tslint-config
Wrapper for [tslint](https://palantir.github.io/tslint/).
## Motivations
I want to load `tslint` config file dynamically.
[Syntastic](https://github.com/scrooloose/syntastic) can use `tslint` but not support config file.
[watchdocs.vim](https://github.com/osyo-manga/vim-watchdogs) also has `tslint` settings but not supporting config file.
## Configure
Add `tslint` config file name to your `.vimrc`.
```viml
" tslint.vim {{{
let g:tslint_configs = [
\ 'tslint-config-standard',
\ 'tslint.json'
\ ]
" }}}
```
## Usage
```viml
:Tslint
```
If you did not set any args, `vim-tslint` would search `g:tslint_configs`'s value and if config found, use it.
```viml
:Tslint -c tslint-config-standard
```
You can select `tslint` config file via command line.
```viml
:silent make|redraw|copen
```
Execute `tslint` via `:make`.
## Helpful plugins
[QuickFixstatus](https://github.com/dannyob/quickfixstatus) shows error message at the bottom of the screen.
[Hier](https://github.com/cohama/vim-hier) will highlight `quickfix` errors and location list entries in buffer.
## Integration
`vim-tslint` can integrate with [watchdocs.vim](https://github.com/osyo-manga/vim-watchdogs).
Configure followings to your `.vimrc`.
```viml
" 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`.
```viml
:WatchdogsRun
```
Run `Tslint and WatchdogsRun` at once.
```viml
:TslintRun -c tslint-config-standard
```