{"id":13485285,"url":"https://github.com/heavenshell/vim-shutup","last_synced_at":"2026-05-16T23:39:58.252Z","repository":{"id":56580967,"uuid":"305430892","full_name":"heavenshell/vim-shutup","owner":"heavenshell","description":"Supress warnings","archived":false,"fork":false,"pushed_at":"2020-10-30T10:18:19.000Z","size":4431,"stargazers_count":3,"open_issues_count":0,"forks_count":0,"subscribers_count":3,"default_branch":"master","last_synced_at":"2025-03-06T02:12:12.543Z","etag":null,"topics":["vim","vim-pl"],"latest_commit_sha":null,"homepage":"","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":"2020-10-19T15:32:39.000Z","updated_at":"2024-07-01T06:42:33.000Z","dependencies_parsed_at":"2022-08-15T21:20:43.185Z","dependency_job_id":null,"html_url":"https://github.com/heavenshell/vim-shutup","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-shutup","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/heavenshell%2Fvim-shutup/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/heavenshell%2Fvim-shutup/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/heavenshell%2Fvim-shutup/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/heavenshell","download_url":"https://codeload.github.com/heavenshell/vim-shutup/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":["vim","vim-pl"],"created_at":"2024-07-31T17:01:53.987Z","updated_at":"2025-12-29T23:52:12.515Z","avatar_url":"https://github.com/heavenshell.png","language":"Vim script","funding_links":[],"categories":["Vim Script"],"sub_categories":[],"readme":"# vim-shutup\n\n![build](https://github.com/heavenshell/vim-shutup/workflows/build/badge.svg)\n\nSupress warnings.\n\n## Screencasts\n\n![vim-shutup](https://user-images.githubusercontent.com/56591/96607212-187c6f00-1333-11eb-8611-91ebc0ecf906.gif)\n\n[More](https://github.com/heavenshell/vim-shutup/issues/1)\n\n## Usage\n\nSet folliwng settings to your vimrc.\n\n```vim\nfunction s:lsp_eslint_format(...)\n  let value = a:000[0]\n  let position = a:000[1]\n  if position == 'upper' \" Insert ignore into above current line.\n    return printf('// eslint-disable-next-line %s', value)\n  endif\n  \" Insert ignore into same line\n  return printf(' // eslint-disable-line %s', value)\nendfunction\n\nlet g:shutup_patterns = {\n\\ 'eslint:\\(Error\\|Warning\\):\\zs.*\\ze:': function('s:lsp_eslint_format'),\n\\ }\n```\n\n```typescript\nconsole.log('foo' as any)\n```\n\nvim-lsp's diagnostics.\n\n```vim\ncli.ts|1 col 1| eslint:Error:no-console:Unexpected console statement.\ncli.ts|1 col 22| eslint:Warning:@typescript-eslint/no-explicit-any:Unexpected any. Specify a different type.\n```\n\n### Insert to same line\n\nExecute `Shutup` command.\n\n```vim\n:Shutup\n```\n\nResult\n\n```typescript\nconsole.log('foo' as any) // eslint-disable-line no-console,@typescript-eslint/no-explicit-any\n```\n\n### Insert above the cursor\n\nExecute `ShutupNext` command.\n\n```vim\n:ShutupNext\n```\n\nResult\n\n```typescript\n// eslint-disable-next-line no-console,@typescript-eslint/no-explicit-any\nconsole.log('foo' as any)\n```\n\n### Range\n\n```typescript\nconsole.log('foo')\nconsole.log('bar')\n```\n\nVisual select and execute command\n\n```vim\n:'\u003c,'\u003eShutup\n```\n\nResult\n\n```typescript\nconsole.log('foo') // eslint-disable-line no-console\nconsole.log('bar') // eslint-disable-line no-console\n```\n\n### For ALE\n\n```vim\nfunction s:ale_eslint_format(...)\n  if \u0026ft !~ 'typescript'\n    return ''\n  endif\n  let value = a:000[0]\n  let position = a:000[1]\n  if position == 'upper' \" Insert ignore into above current line.\n    return printf('// eslint-disable-next-line %s', value)\n  endif\n  \" Insert ignore into same line\n  return printf(' // eslint-disable-line %s', value)\nendfunction\nfunction s:ale_py_format(...)\n  if \u0026ft !~ 'python'\n    return ''\n  endif\n  let value = a:000[0]\n  return printf('  # noqa: %s', a:000[0])\nendfunction\n\nlet g:shutup_patterns = {\n\\ '[eslint].*(\\zs.*\\ze)': function('s:ale_eslint_format'),\n\\ '[flake8].*(\\zs.*\\ze)': function('s:ale_py_format'),\n\\ }\n\nlet g:ale_echo_msg_format = '[%linter%] [%severity%] %s (%code%)'\n```\n\n## License\n\nNew BSD License\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fheavenshell%2Fvim-shutup","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fheavenshell%2Fvim-shutup","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fheavenshell%2Fvim-shutup/lists"}