{ "name": "grunt-htmlhint", "description": "Validate html files with htmlhint.", "version": "0.4.0", "homepage": "https://github.com/yaniswang/grunt-htmlhint", "author": { "name": "Yanis Wang", "email": "yanis.wang@gmail.com", "url": "http://yaniswang.com/" }, "repository": { "type": "git", "url": "git@github.com:yaniswang/grunt-htmlhint.git" }, "bugs": { "url": "https://github.com/yaniswang/grunt-htmlhint/issues" }, "licenses": [ { "type": "MIT", "url": "https://github.com/yaniswang/grunt-htmlhint/blob/master/LICENSE-MIT" } ], "main": "Gruntfile.js", "engines": { "node": ">= 0.8.0" }, "scripts": { "test": "grunt test --force" }, "devDependencies": { "grunt-contrib-jshint": "~0.1.1", "grunt": "~0.4.1" }, "peerDependencies": { "grunt": "~0.4.1" }, "keywords": [ "gruntplugin" ], "dependencies": { "htmlhint": "~0.9.2" }, "readme": "# grunt-htmlhint\r\n\r\n> Validate html files with htmlhint.\r\n\r\n## Getting Started\r\nThis plugin requires Grunt `~0.4.1`\r\n\r\nIf you haven't used [Grunt](http://gruntjs.com/) before, be sure to check out the [Getting Started](http://gruntjs.com/getting-started) guide, as it explains how to create a [Gruntfile](http://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:\r\n\r\n```shell\r\nnpm install grunt-htmlhint --save-dev\r\n```\r\n\r\nOne the plugin has been installed, it may be enabled inside your Gruntfile with this line of JavaScript:\r\n\r\n```js\r\ngrunt.loadNpmTasks('grunt-htmlhint');\r\n```\r\n\r\n## The \"htmlhint\" task\r\n\r\n### Overview\r\nIn your project's Gruntfile, add a section named `htmlhint` to the data object passed into `grunt.initConfig()`.\r\n\r\n### Options\r\n\r\nSee all rules here: [https://github.com/yaniswang/HTMLHint/wiki/Rules](https://github.com/yaniswang/HTMLHint/wiki/Rules)\r\n\r\nIf options is empty, task will scan nothing.\r\n\r\n#### options.htmlhintrc\r\nType: `String`\r\nDefault value: `null`\r\n\r\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:\r\n\r\n```json\r\n{\r\n \"tag-pair\": true,\r\n}\r\n```\r\n\r\n#### options.force\r\nType: `Boolean`\r\nDefault value: `false`\r\n\r\nReport HTMLHint errors but dont fail the task\r\n\r\n### Usage Examples\r\n\r\n#### Direct options\r\n\r\n```js\r\nhtmlhint: {\r\n html1: {\r\n options: {\r\n 'tag-pair': true\r\n },\r\n src: ['path/to/**/*.html']\r\n },\r\n html2: {\r\n options: {\r\n 'tag-pair': true\r\n },\r\n src: ['path/to/**/*.html']\r\n }\r\n}\r\n```\r\n\r\n#### Config file\r\n\r\n```js\r\nhtmlhint: {\r\n options: {\r\n htmlhintrc: '.htmlhintrc'\r\n },\r\n html1: {\r\n src: ['path/to/**/*.html']\r\n },\r\n html2: {\r\n src: ['path/to/**/*.html']\r\n }\r\n}\r\n```\r\n\r\n## Release History\r\n\r\n * 2013-4-6   v0.4.0   First release", "readmeFilename": "README.md", "_id": "grunt-htmlhint@0.4.0", "_from": "grunt-htmlhint@~0.4.0" }