{"id":21013427,"url":"https://github.com/heavenshell/vim-tslint","last_synced_at":"2025-05-15T04:34:22.686Z","repository":{"id":56470407,"uuid":"116033135","full_name":"heavenshell/vim-tslint","owner":"heavenshell","description":"Vim plugin for tslint","archived":false,"fork":false,"pushed_at":"2020-11-05T13:56:25.000Z","size":9591,"stargazers_count":7,"open_issues_count":0,"forks_count":2,"subscribers_count":2,"default_branch":"master","last_synced_at":"2023-03-10T20:08:08.046Z","etag":null,"topics":["tslint","vim","vim-scripts"],"latest_commit_sha":null,"homepage":null,"language":"Vim script","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"bsd-3-clause","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/heavenshell.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2018-01-02T16:09:42.000Z","updated_at":"2021-11-13T03:42:02.000Z","dependencies_parsed_at":"2022-08-15T19:20:40.471Z","dependency_job_id":null,"html_url":"https://github.com/heavenshell/vim-tslint","commit_stats":null,"previous_names":[],"tags_count":null,"template":null,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/heavenshell%2Fvim-tslint","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/heavenshell%2Fvim-tslint/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/heavenshell%2Fvim-tslint/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/heavenshell%2Fvim-tslint/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/heavenshell","download_url":"https://codeload.github.com/heavenshell/vim-tslint/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":225328917,"owners_count":17457329,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["tslint","vim","vim-scripts"],"created_at":"2024-11-19T09:42:25.828Z","updated_at":"2024-11-19T09:42:26.524Z","avatar_url":"https://github.com/heavenshell.png","language":"Vim script","readme":"# vim-tslint\n\n[![Build Status](https://travis-ci.org/heavenshell/vim-tslint.svg?branch=master)](https://travis-ci.org/heavenshell/vim-tslint)\n\nAn asynchronous Tslint for Vim.\n\n![Realtime style check](./assets/vim-tslint.gif)\n\n## Invoke manually\n\nOpen TypeScript file and just execute `:Tslint`.\n\n## Automatically lint on save\n\n```viml\nautocmd BufWritePost *.ts,*.tsx call tslint#run('a', win_getid())\n```\n\n## Autofix\n\nExecute `:TslintFix` and automatically fix.\n\n## Integrate with Tsuquyomi\n\nYou can use Tsuquyomi's `TsuGeterr` and Tslint.\nSet followings to your vimrc.\n\n```viml\naugroup tslint\n  function! s:typescript_after(ch, msg)\n    let cnt = len(getqflist())\n    if cnt \u003e 0\n      echomsg printf('[Tslint] %s errors', cnt)\n    endif\n  endfunction\n  let g:tslint_callbacks = {\n    \\ 'after_run': function('s:typescript_after')\n    \\ }\n\n  let g:tsuquyomi_disable_quickfix = 1\n\n  function! s:ts_quickfix()\n    let winid = win_getid()\n    execute ':TsuquyomiGeterr'\n    call tslint#run('a', winid)\n  endfunction\n\n  autocmd BufWritePost *.ts,*.tsx silent! call s:ts_quickfix()\n  autocmd InsertLeave *.ts,*.tsx silent! call s:ts_quickfix()\naugroup END\n```\n\n## License\n\nNew BSD License\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fheavenshell%2Fvim-tslint","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fheavenshell%2Fvim-tslint","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fheavenshell%2Fvim-tslint/lists"}