{"id":21013406,"url":"https://github.com/heavenshell/vim-eslint","last_synced_at":"2026-01-02T11:15:56.561Z","repository":{"id":45492845,"uuid":"178564370","full_name":"heavenshell/vim-eslint","owner":"heavenshell","description":"An asynchronous Eslint(@typescript-eslint) for Vim.","archived":false,"fork":false,"pushed_at":"2024-11-18T22:41:45.000Z","size":5559,"stargazers_count":2,"open_issues_count":2,"forks_count":0,"subscribers_count":3,"default_branch":"master","last_synced_at":"2025-03-06T02:12:11.705Z","etag":null,"topics":[],"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,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2019-03-30T13:49:12.000Z","updated_at":"2024-07-08T01:07:27.000Z","dependencies_parsed_at":"2024-11-19T09:46:45.713Z","dependency_job_id":null,"html_url":"https://github.com/heavenshell/vim-eslint","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/heavenshell%2Fvim-eslint","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/heavenshell%2Fvim-eslint/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/heavenshell%2Fvim-eslint/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/heavenshell%2Fvim-eslint/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/heavenshell","download_url":"https://codeload.github.com/heavenshell/vim-eslint/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":243437970,"owners_count":20290865,"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":[],"created_at":"2024-11-19T09:42:16.342Z","updated_at":"2026-01-02T11:15:56.518Z","avatar_url":"https://github.com/heavenshell.png","language":"Vim Script","funding_links":[],"categories":[],"sub_categories":[],"readme":"# vim-eslint\n\n![build](https://github.com/heavenshell/vim-eslint/workflows/build/badge.svg)\n\nAn asynchronous Eslint(@typescript-eslint) for Vim.\n\nCan use with TypeScript + Eslint + Prettier.\n\n![vim-eslint](https://user-images.githubusercontent.com/56591/97100073-3818ec00-16d3-11eb-99a4-219aef1647bf.gif)\n\n## Invoke manually\n\nOpen TypeScript file and just execute `:Eslint`.\n\n## Automatically lint on save\n\n```viml\nautocmd BufWritePost *.ts,*.tsx call eslint#run('a', win_getid())\n```\n\n## Autofix\n\nExecute `:EslintFix` and automatically fix.\n\n## Integrate with Tsuquyomi\n\nYou can use Tsuquyomi's `TsuAsyncGeterr` and vim-eslint.\nSet followings to your vimrc.\n\n```viml\naugroup typescript\n  function! s:typescript_after(ch, msg)\n    let cnt = len(getqflist())\n    if cnt \u003e 0\n      echomsg printf('[TypeScript] %s errors', cnt)\n    endif\n  endfunction\n\n  function! s:eslint_callback(qflist, mode)\n    let list = getqflist() + a:qflist\n    call setqflist(list, 'r')\n  endfunction\n\n  let g:eslint_callbacks = {\n    \\ 'after_run': function('s:typescript_after')\n    \\ }\n\n  let g:tsuquyomi_disable_quickfix = 1\n\n  function! s:ts_callback(qflist) abort\n    call setqflist(a:qflist)\n    let list = a:qflist + getqflist()\n    call setqflist(list, 'r')\n  endfunction\n\n  function! s:check()\n    let winid = win_getid()\n    call setqflist([], 'r')\n    call tsuquyomi#registerNotify(function('s:ts_callback'), 'diagnostics')\n    call tsuquyomi#asyncCreateFixlist()\n\n    call eslint#register_notify(function('s:eslint_callback'))\n    call eslint#run('a', winid)\n  endfunction\n\n  autocmd InsertLeave,BufWritePost *.ts,*.tsx silent! call s:check()\naugroup END\n```\n\n## License\n\nNew BSD License\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fheavenshell%2Fvim-eslint","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fheavenshell%2Fvim-eslint","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fheavenshell%2Fvim-eslint/lists"}