{"id":13600713,"url":"https://github.com/yaegassy/coc-htmlhint","last_synced_at":"2025-08-21T08:15:27.798Z","repository":{"id":54004723,"uuid":"340688457","full_name":"yaegassy/coc-htmlhint","owner":"yaegassy","description":"Integrates the HTMLHint static analysis tool into coc.nvim.","archived":false,"fork":false,"pushed_at":"2022-04-11T04:28:20.000Z","size":305,"stargazers_count":13,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-04-11T15:04:09.008Z","etag":null,"topics":["coc","coc-extension","coc-nvim","html","htmlhint","neovim","vim"],"latest_commit_sha":null,"homepage":"https://www.npmjs.com/package/coc-htmlhint","language":"TypeScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/yaegassy.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":"2021-02-20T15:35:23.000Z","updated_at":"2024-01-26T18:09:17.000Z","dependencies_parsed_at":"2022-08-13T06:00:26.218Z","dependency_job_id":null,"html_url":"https://github.com/yaegassy/coc-htmlhint","commit_stats":null,"previous_names":[],"tags_count":13,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/yaegassy%2Fcoc-htmlhint","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/yaegassy%2Fcoc-htmlhint/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/yaegassy%2Fcoc-htmlhint/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/yaegassy%2Fcoc-htmlhint/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/yaegassy","download_url":"https://codeload.github.com/yaegassy/coc-htmlhint/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":249746041,"owners_count":21319581,"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":["coc","coc-extension","coc-nvim","html","htmlhint","neovim","vim"],"created_at":"2024-08-01T18:00:47.123Z","updated_at":"2025-04-19T17:10:45.114Z","avatar_url":"https://github.com/yaegassy.png","language":"TypeScript","funding_links":[],"categories":["Language Support"],"sub_categories":[],"readme":"# coc-htmlhint\n\n\u003e fork from a [Microsoft/vscode-htmlhint](https://github.com/Microsoft/vscode-htmlhint) | [HTMLHint](https://marketplace.visualstudio.com/items?itemName=mkaufman.HTMLHint)\n\nIntegrates the HTMLHint static analysis tool into [coc.nvim](https://github.com/neoclide/coc.nvim).\n\n\u003cimg width=\"780\" alt=\"coc-htmlhint\" src=\"https://user-images.githubusercontent.com/188642/108600922-232c3b00-73dd-11eb-911a-bee9984c50ab.png\"\u003e\n\n## Install\n\n`:CocInstall coc-htmlhint`\n\n## Configuration options\n\n- `htmlhint.enable`: Enable coc-htmlhint extension, default: `true`\n- `htmlhint.documentSelector`: The associated document types to be linted, default: `[\"html\", \"htm\"]`\n- `htmlhint.options`: The htmlhint options object to provide args to the htmlhint command, default: `{}`\n\n## HTMLHint module\n\nThe coc-htmlhint extension will attempt to use the locally installed HTMLHint module (the project-specific module if present, or a globally installed HTMLHint module). If a locally installed HTMLHint isn't available, the extension will use the embedded version.\n\n## Rules\n\nThe HTMLHint extension uses the default [rules](https://github.com/htmlhint/HTMLHint/wiki/Usage#about-rules) provided by HTMLHint.\n\n```json\n{\n  \"tagname-lowercase\": true,\n  \"attr-lowercase\": true,\n  \"attr-value-double-quotes\": true,\n  \"doctype-first\": true,\n  \"tag-pair\": true,\n  \"spec-char-escape\": true,\n  \"id-unique\": true,\n  \"src-not-empty\": true,\n  \"attr-no-duplication\": true,\n  \"title-require\": true,\n  \"empty-tag-not-self-closed\": true\n}\n```\n\n## .htmlhintrc\n\nIf you'd like to modify the rules, you can provide a `.htmlhintrc` file in the root of your project folder with a reduced ruleset or modified values.\n\nYou can learn more about rule configuration at the HTMLHint [Usage page](https://github.com/htmlhint/HTMLHint/wiki/Usage).\n\n## Additional file types\n\nBy default, HTMLHint will run on any files associated with the \"html\" language service (i.e., \".html\" and \".htm\" files). If you'd like to use the HTMLHint extension with additional file types, you have two options:\n\n### Option 1: Treating your file like any other html file\n\nSet `g:coc_filetype_map` in your `.vimrc` or `init.vim` file. `:h g:coc_filetype_map`\n\n**.vimrc/init.vim**:\n\n```\nlet g:coc_filetype_map = {\n  \\ 'htmldjango': 'html',\n  \\ 'blade': 'html',\n  \\ 'twig': 'html',\n  \\ 'jst': 'html',\n  \\ }\n```\n\n### Option 2: Associating HTMLHint extension with other file type\n\nFor example, if you want HTMLHint to process `.twig` files, you would use `\"twig\"`. Note that with this configuration, **you need to open an html file first** to activate the HTMLHint extension. Otherwise, you won't see any linter errors, (the extension is hard-coded to activate when the html language service activates).\n\n**coc-settings.json**:\n\n```\n{\n  \"htmlhint.documentSelector\": [\n    \"html\",\n    \"twig\"\n  ]\n}\n```\n\n## Thanks\n\n- [Microsoft/vscode-htmlhint](https://github.com/Microsoft/vscode-htmlhint) : The origin of this repository.\n\n## License\n\nMIT\n\n---\n\n\u003e This extension is built with [create-coc-extension](https://github.com/fannheyward/create-coc-extension)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fyaegassy%2Fcoc-htmlhint","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fyaegassy%2Fcoc-htmlhint","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fyaegassy%2Fcoc-htmlhint/lists"}