{"id":21013444,"url":"https://github.com/heavenshell/vim-frontier","last_synced_at":"2026-04-17T00:02:13.416Z","repository":{"id":136338623,"uuid":"74893940","full_name":"heavenshell/vim-frontier","owner":"heavenshell","description":"My frontend(JavaScript) Vim plugin packs.","archived":false,"fork":false,"pushed_at":"2017-02-26T10:22:49.000Z","size":3060,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2026-03-06T05:01:00.816Z","etag":null,"topics":["eslint","stylelint","vim"],"latest_commit_sha":null,"homepage":"","language":"Vim script","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"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":null,"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":"2016-11-27T14:47:48.000Z","updated_at":"2018-03-22T10:41:46.000Z","dependencies_parsed_at":null,"dependency_job_id":"907913e4-9507-4783-895c-a7662b0d26ff","html_url":"https://github.com/heavenshell/vim-frontier","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/heavenshell/vim-frontier","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/heavenshell%2Fvim-frontier","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/heavenshell%2Fvim-frontier/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/heavenshell%2Fvim-frontier/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/heavenshell%2Fvim-frontier/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/heavenshell","download_url":"https://codeload.github.com/heavenshell/vim-frontier/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/heavenshell%2Fvim-frontier/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":31909235,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-04-16T18:22:33.417Z","status":"ssl_error","status_checked_at":"2026-04-16T18:21:47.142Z","response_time":69,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.6:443 state=error: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"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":["eslint","stylelint","vim"],"created_at":"2024-11-19T09:42:28.721Z","updated_at":"2026-04-17T00:02:13.367Z","avatar_url":"https://github.com/heavenshell.png","language":"Vim script","funding_links":[],"categories":[],"sub_categories":[],"readme":"# vim-frontier\n\nMy frontend(JavaScript) Vim plugin packs.\n\n![Execute Eslint realtime](./assets/vim-frontier.gif)\n\n- Eslint\n  - Run with job and channel\n- Stylelint\n  - Run with job and channel\n- Mocha\n  - Use [vim-quickrun-hook-unittest](https://github.com/heavenshell/vim-quickrun-hook-unittest/)\n\n## Features\n\n- Run eslint realtime\n  - It detect source code change immediately and upddate results(no need to save buffer).\n- Support `eslint --fix`\n  - Experimental feature\n\n## Settings\n\n- Run Eslint.\n- Run [vim-flood](https://github.com/heavenshell/vim-flood).\n- Update [QuickfixStatus](https://github.com/dannyob/quickfixstatus/)\n- Update [vim-hier(forked version)](https://github.com/cohama/vim-hier)\n\n### Lint at save buffer\n\nRun `eslint`, `flow` and open QuickFix if error exists.\n\n```viml\naugroup js_enable_quickfix\n  autocmd!\n  function! s:js_quickfix()\n    \" Clear QuickFix.\n    call setqflist([], 'r')\n    call frontier#eslint#run('a')\n    \" Run realtime check.\n    call flood#check_contents#run('a')\n  endfunction\n\n  function! s:frontier_after(...)\n    if len(getqflist()) \u003e 0\n      cwindow\n    endif\n  endfunction\n\n  autocmd BufWritePost *.js,*.jsx silent! call s:js_quickfix()\naugroup END\n```\n\n### Realtime check\n\nRun `eslint`, `flow`, update QuickFixStatus and Vim-Hier.\n\n```viml\naugroup js_enable_quickfix\n  autocmd!\n  function! s:js_quickfix()\n    \" Clear QuickFix.\n    call setqflist([], 'r')\n    call frontier#eslint#run('a')\n    \" Run realtime check.\n    call flood#check_contents#run('a')\n  endfunction\n\n  function! s:frontier_after(...)\n    execute ':QuickfixStatusEnable'\n    execute ':HierUpdate'\n  endfunction\n\n  let g:frontier_callbacks = {}\n  let g:frontier_callbacks['eslint'] = {\n    \\ 'after_run': function('s:frontier_after')\n    \\ }\n  let g:flood_callbacks = {}\n  let g:flood_callbacks['check_contents'] = {\n    \\ 'after_run': function('s:frontier_after')\n    \\ }\n\n  autocmd BufWritePost *.js,*.jsx silent! call s:js_quickfix()\n  autocmd InsertLeave *.js,*.jsx silent! call s:js_quickfix()\n  autocmd TextChanged,TextChangedI *.js,*.jsx silent! call s:js_quickfix()\naugroup END\n```\n\n### Auto fix\n\nRun `eslint --fix` at save buffer.\n\n```viml\naugroup js_enable_quickfix\n  autocmd!\n  function! s:js_quickfix()\n    \" Clear QuickFix.\n    call setqflist([], 'r')\n    \" Auto fix.\n    call frontier#eslint#fix()\n\n    \" Run realtime check.\n    call flood#check_contents#run('a')\n  endfunction\n\n  autocmd BufWritePost *.js,*.jsx silent! call s:js_quickfix()\naugroup END\n```\n\n#### Note\n\n`frontier#eslint#fix()` only support `BufWritePost`.\n\n`eslint --fix` overwrite file. `frontier#eslint#fix()` reload file silently\nafter executed.\n\n## License\n\nNew BSD License\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fheavenshell%2Fvim-frontier","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fheavenshell%2Fvim-frontier","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fheavenshell%2Fvim-frontier/lists"}