{"id":18980979,"url":"https://github.com/htmlhint/grunt-htmlhint-inline","last_synced_at":"2025-04-16T12:31:16.856Z","repository":{"id":28087535,"uuid":"31585350","full_name":"htmlhint/grunt-htmlhint-inline","owner":"htmlhint","description":"Grunt plugin for linting inline html","archived":false,"fork":false,"pushed_at":"2024-09-06T10:25:53.000Z","size":322,"stargazers_count":0,"open_issues_count":20,"forks_count":2,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-04-06T15:16:44.634Z","etag":null,"topics":["grunt-plugins","htmlhint","linter"],"latest_commit_sha":null,"homepage":"https://www.npmjs.com/package/grunt-htmlhint-inline","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":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null}},"created_at":"2015-03-03T07:33:51.000Z","updated_at":"2020-07-14T15:52:18.000Z","dependencies_parsed_at":"2023-12-06T15:31:09.658Z","dependency_job_id":"4b8e877c-81c2-4359-876f-05110060be11","html_url":"https://github.com/htmlhint/grunt-htmlhint-inline","commit_stats":null,"previous_names":["kazu69/grunt-htmlhint-inline"],"tags_count":9,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/htmlhint%2Fgrunt-htmlhint-inline","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/htmlhint%2Fgrunt-htmlhint-inline/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/htmlhint%2Fgrunt-htmlhint-inline/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/htmlhint%2Fgrunt-htmlhint-inline/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/htmlhint","download_url":"https://codeload.github.com/htmlhint/grunt-htmlhint-inline/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":249239358,"owners_count":21235854,"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-plugins","htmlhint","linter"],"created_at":"2024-11-08T16:08:22.430Z","updated_at":"2025-04-16T12:31:16.466Z","avatar_url":"https://github.com/htmlhint.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"grunt-htmlhint-inline\n================\n\n[![Build Status](https://travis-ci.org/kazu69/grunt-htmlhint-inline.svg?branch=master)](https://travis-ci.org/kazu69/grunt-htmlhint-inline)\n\n[![NPM](https://nodei.co/npm/grunt-htmlhint-inline.png)](https://nodei.co/npm/grunt-htmlhint-inline/)\n\nThis plug-in template files of view ( for example ```.erb``` , etc.) or , you can linting using [htmlhint](https://github.com/yaniswang/HTMLHint) the html of the old type of ```php``` (view and logic are not separated ).\nRemoves the specific embedded code , it is intended to run the htmlhint as pure html.\n\n## Getting Started\nThis plugin requires Grunt `~0.4.5`\n\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:\n\n```shell\nnpm install grunt-htmlhint-inline --save-dev\n```\n\nOnce the plugin has been installed, it may be enabled inside your Gruntfile with this line of JavaScript:\n\n```js\ngrunt.loadNpmTasks('grunt-htmlhint-inline');\n```\n\n## The \"htmlhint-inline\" task\n\n### Overview\nIn your project's Gruntfile, add a section named `htmlhint-inline` to the data object passed into `grunt.initConfig()`.\n\n```js\ngrunt.initConfig({\n  htmlhint_inline: {\n      options: {\n        htmlhintrc: '.htmlhintrc',\n        ignore: {\n            '\u003c?php': '?\u003e'\n        }\n      },\n      dest: {\n        src: ['./test/*.phtml']\n      }\n    },\n});\n```\n\n### Options\n\n#### htmlhintrc\nType: String Default value: null\n\n```htmlhintrc``` file must be a valid JSON.\nIf you specify this file, options that have been defined in it will be used in the global.\nIf there is specified in the task options, the options in this file will be overwritten.\n\n```json\n{\n  \"tagname-lowercase\": true\n}\n```\n\n#### patterns\nType: Array Default: []\n\nEnable the replacement by the pattern\n\n##### patterns.match\n\nType: RegExp|String\n\nIndicates the matching expression.\n\n##### patterns.replacement\n\nType: String|Function\n\n#### reporterOutput\n\nType: String  Default: null\n\nOutput the task execution results to a specified file.\n\n#### force\n\nType: Boolean Default value: false\n\nReport HTMLHint errors but dont fail the task\n\n\n### Usage Examples\n\n```js\ngrunt.initConfig({\n    htmlhint_inline: {\n      options: {\n        htmlhintrc: '.htmlhintrc',\n        ignore: {\n            '\u003c?php': '?\u003e'\n        },\n        patterns: [\n          {\n            match: /hoge/g,\n            replacement: 'fuga'\n          }\n        ],\n        reporterOutput: './log/grunt.log',\n      },\n      dest: {\n        src: ['./test/*.phtml']\n      }\n    }\n});\n```\n## License\n\nMIT\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fhtmlhint%2Fgrunt-htmlhint-inline","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fhtmlhint%2Fgrunt-htmlhint-inline","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fhtmlhint%2Fgrunt-htmlhint-inline/lists"}