{"id":18980971,"url":"https://github.com/htmlhint/grunt-htmlhint","last_synced_at":"2025-04-19T19:29:08.270Z","repository":{"id":7879044,"uuid":"9253544","full_name":"htmlhint/grunt-htmlhint","owner":"htmlhint","description":"Validate html files with htmlhint.","archived":false,"fork":false,"pushed_at":"2022-12-11T13:47:46.000Z","size":311,"stargazers_count":61,"open_issues_count":12,"forks_count":13,"subscribers_count":4,"default_branch":"master","last_synced_at":"2025-04-12T15:03:05.776Z","etag":null,"topics":["grunt","grunt-htmlhint","grunt-plugins","gruntfile","hint","htmlhint","javascript"],"latest_commit_sha":null,"homepage":"","language":"JavaScript","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/htmlhint.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":"CONTRIBUTING.md","funding":null,"license":"LICENSE.md","code_of_conduct":"CODE_OF_CONDUCT.md","threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2013-04-06T01:00:11.000Z","updated_at":"2024-10-25T10:31:16.000Z","dependencies_parsed_at":"2023-01-13T14:32:26.164Z","dependency_job_id":null,"html_url":"https://github.com/htmlhint/grunt-htmlhint","commit_stats":null,"previous_names":["yaniswang/grunt-htmlhint"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/htmlhint%2Fgrunt-htmlhint","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/htmlhint%2Fgrunt-htmlhint/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/htmlhint%2Fgrunt-htmlhint/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/htmlhint%2Fgrunt-htmlhint/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/htmlhint","download_url":"https://codeload.github.com/htmlhint/grunt-htmlhint/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":249779292,"owners_count":21324392,"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":["grunt","grunt-htmlhint","grunt-plugins","gruntfile","hint","htmlhint","javascript"],"created_at":"2024-11-08T16:08:21.461Z","updated_at":"2025-04-19T19:29:08.249Z","avatar_url":"https://github.com/htmlhint.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"\u003ch1 align=\"center\"\u003e\n  \u003cbr\u003e\n  Grunt HTMLHint\n  \u003cbr\u003e\n\u003c/h1\u003e\n\n\u003ch4 align=\"center\"\u003eLint HTML files with HTMLHint\u003c/h4\u003e\n\n\u003cp align=\"center\"\u003e\n  \u003ca href=\"https://travis-ci.org/htmlhint/grunt-htmlhint\"\u003e\n    \u003cimg src=\"https://img.shields.io/travis/htmlhint/grunt-htmlhint.svg\" alt=\"Travis Build Status\"\u003e\n  \u003c/a\u003e\n  \u003ca href=\"https://codecov.io/gh/htmlhint/grunt-htmlhint\"\u003e\n    \u003cimg src=\"https://codecov.io/gh/htmlhint/grunt-htmlhint/branch/master/graph/badge.svg\" alt=\"Codecov\"\u003e\n  \u003c/a\u003e\n  \u003ca href=\"https://www.npmjs.com/package/grunt-htmlhint\"\u003e\n    \u003cimg src=\"https://img.shields.io/npm/dm/grunt-htmlhint.svg\" alt=\"NPM count\"\u003e\n  \u003c/a\u003e\n  \u003cimg src=\"https://badgen.net/badge/license/MIT/green\" alt=\"MIT Licence\" /\u003e\n  \u003ca href=\"https://discord.gg/nJ6J9CP\"\u003e\n    \u003cimg src=\"https://img.shields.io/badge/chat-on%20discord-7289da.svg\" alt=\"Chat\"\u003e\n  \u003c/a\u003e\n  \u003ca href=\"http://roadmap.htmlhint.io/roadmap\"\u003e\n    \u003cimg src=\"https://img.shields.io/badge/check-our%20roadmap-EE503E.svg\" alt=\"Chat\"\u003e\n  \u003c/a\u003e\n\u003c/p\u003e\n\n\u003cp align=\"center\"\u003e\n  \u003ca href=\"#getting-started\"\u003eHow To Use\u003c/a\u003e • \u003ca href=\"/CONTRIBUTING.md\"\u003eContributing\u003c/a\u003e • \u003ca href=\"http://roadmap.htmlhint.io/\"\u003eRoadmap\u003c/a\u003e • \u003ca href=\"https://htmlhint.com\"\u003eWebsite\u003c/a\u003e\n\u003c/p\u003e\n\n## Table of Contents\n\n- **[Getting Started](#getting-started)**\n- **[Usage](#usage)**\n- **[Options](#options)**\n\n## Getting Started\nThis plugin requires Grunt `~0.4.1`\n\nIf you haven't used [Grunt](https://gruntjs.com/) before, be sure to check out the [Getting Started](https://gruntjs.com/getting-started) guide, as it explains how to create a [Gruntfile](https://gruntjs.com/sample-gruntfile) as well as install and use Grunt plugins. Once you're familiar with that process, you may install this plugin with this command:\n\n```shell\nnpm install grunt-htmlhint --save-dev\n```\n\nOne the plugin has been installed, it may be enabled inside your Gruntfile with this line of JavaScript:\n\n```js\ngrunt.loadNpmTasks('grunt-htmlhint');\n```\n\n## Usage\n\n### Overview\nIn your project's Gruntfile, add a section named `htmlhint` to the data object passed into `grunt.initConfig()`.\n\n### Options\n\nSee all rules here: [https://github.com/htmlhint/HTMLHint/wiki/Rules](https://github.com/htmlhint/HTMLHint/wiki/Rules)\n\nIf options is empty, task will scan nothing.\n\n#### options.htmlhintrc\nType: `String`\nDefault value: `null`\n\nIf this filename is specified, options and globals defined therein will be used. Task and target options override the options within the `htmlhintrc` file. The `htmlhintrc` file must be valid JSON and looks something like this:\n\n```json\n{\n  \"tag-pair\": true,\n}\n```\n\n#### options.force\nType: `Boolean`\nDefault value: `false`\n\nReport HTMLHint errors but dont fail the task\n\n### Usage Examples\n\n#### Direct options\n\n```js\nhtmlhint: {\n  html1: {\n    options: {\n      'tag-pair': true\n    },\n    src: ['path/to/**/*.html']\n  },\n  html2: {\n    options: {\n      'tag-pair': true\n    },\n    src: ['path/to/**/*.html']\n  }\n}\n```\n\n#### Config file\n\n```js\nhtmlhint: {\n  options: {\n    htmlhintrc: '.htmlhintrc'\n  },\n  html1: {\n    src: ['path/to/**/*.html']\n  },\n  html2: {\n    src: ['path/to/**/*.html']\n  }\n}\n```\n\n## Licence\n\nProject initially created by [@yaniswang](https://github.com/yaniswang) and transferred to the [HTMLHint](https://github.com/htmlhint) organization.\n\n\u003ca href=\"https://htmlhint.com\"\u003e\u003cimg src=\"https://raw.githubusercontent.com/htmlhint/htmlhint/develop/src/img/htmlhint.png\" alt=\"Logo HTMLHint\" width=\"65\"\u003e\u003c/a\u003e\n\n[MIT License](./LICENSE)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fhtmlhint%2Fgrunt-htmlhint","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fhtmlhint%2Fgrunt-htmlhint","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fhtmlhint%2Fgrunt-htmlhint/lists"}