{"id":18980985,"url":"https://github.com/htmlhint/gulp-htmlhint-inline","last_synced_at":"2026-03-17T20:04:57.750Z","repository":{"id":28648503,"uuid":"32167773","full_name":"htmlhint/gulp-htmlhint-inline","owner":"htmlhint","description":"gulp plugin for linting inline html","archived":false,"fork":false,"pushed_at":"2026-03-06T08:46:42.000Z","size":163,"stargazers_count":3,"open_issues_count":0,"forks_count":4,"subscribers_count":4,"default_branch":"master","last_synced_at":"2026-03-06T12:44:21.512Z","etag":null,"topics":["gulp-plugin","htmlhint","linter"],"latest_commit_sha":null,"homepage":"https://www.npmjs.com/package/gulp-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,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null,"notice":null,"maintainers":null,"copyright":null,"agents":null,"dco":null,"cla":null},"funding":{"open_collective":"htmlhint"}},"created_at":"2015-03-13T16:40:52.000Z","updated_at":"2026-03-06T08:46:24.000Z","dependencies_parsed_at":"2022-08-25T21:22:18.569Z","dependency_job_id":"29b9a97d-abc1-427c-968a-d5ee7176452d","html_url":"https://github.com/htmlhint/gulp-htmlhint-inline","commit_stats":{"total_commits":44,"total_committers":8,"mean_commits":5.5,"dds":0.5454545454545454,"last_synced_commit":"7352c4f537b7e3f3bfdb42348eae78f4e1f8477e"},"previous_names":["kazu69/gulp-htmlhint-inline"],"tags_count":8,"template":false,"template_full_name":null,"purl":"pkg:github/htmlhint/gulp-htmlhint-inline","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/htmlhint%2Fgulp-htmlhint-inline","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/htmlhint%2Fgulp-htmlhint-inline/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/htmlhint%2Fgulp-htmlhint-inline/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/htmlhint%2Fgulp-htmlhint-inline/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/htmlhint","download_url":"https://codeload.github.com/htmlhint/gulp-htmlhint-inline/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/htmlhint%2Fgulp-htmlhint-inline/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":30630040,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-03-17T17:32:55.572Z","status":"ssl_error","status_checked_at":"2026-03-17T17:32:38.732Z","response_time":56,"last_error":"SSL_read: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"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":["gulp-plugin","htmlhint","linter"],"created_at":"2024-11-08T16:08:23.228Z","updated_at":"2026-03-17T20:04:57.730Z","avatar_url":"https://github.com/htmlhint.png","language":"JavaScript","funding_links":["https://opencollective.com/htmlhint"],"categories":[],"sub_categories":[],"readme":"gulp-htmlhint-inline\n================\n\n[![NPM](https://nodei.co/npm/gulp-htmlhint-inline.png)](https://nodei.co/npm/gulp-htmlhint-inline/)\n\n## Usage\n\nFirst, install `gulp-htmlhint-inline` as a development dependency:\n\n```shell\nnpm install --save-dev gulp-htmlhint-inline\n```\n\nThen, add it to your `gulpfile.js`:\n\n```javascript\nvar gulp = require('gulp'),\n    htmlhint_inline = require('gulp-htmlhint-inline');\n\ngulp.task('htmlhint', function () {\n  var options = {\n        htmlhintrc: './.htmlhintrc',\n        ignores: {\n          '\u003c?php': '?\u003e'\n        },\n        patterns: [\n          {\n            match: /hoge/g,\n            replacement: 'fuga'\n          }\n        ]\n    };\n\n  gulp.src('test/*.phtml')\n      .pipe(htmlhint_inline(options))\n      .pipe(htmlhint_inline.reporter())\n      .pipe(htmlhint_inline.reporter('fail'));\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#### ignores\nType: Object Default: {}\n\nRemove program tag pairs.\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#### reporter\n\n##### Default Reporter\n\n```js\nvar gulp = require('gulp'),\n    htmlhint_inline = require('gulp-htmlhint-inline');\n\ngulp.task('htmlhint', function () {\n  var options = {\n        htmlhintrc: './.htmlhintrc',\n        ignores: {\n          '\u003c?php': '?\u003e'\n        }\n    };\n\n  gulp.src('test/*.phtml')\n      .pipe(htmlhint_inline(options))\n      .pipe(htmlhint_inline.reporter());\n});\n```\n\n##### Fail Reporter\n\nIn order to end the task when your task happened error of HTMLHint, please use this reporter.\n\n```js\nvar gulp = require('gulp'),\n    htmlhint_inline = require('gulp-htmlhint-inline');\n\ngulp.task('htmlhint', function () {\n  var options = {\n        htmlhintrc: './.htmlhintrc',\n        ignores: {\n          '\u003c?php': '?\u003e'\n        }\n    };\n\n  gulp.src('test/*.phtml')\n      .pipe(htmlhint_inline(options))\n      .pipe(htmlhint_inline.reporter('fail'));\n});\n```\n\n##### Custom Reporter\n\nYou can also use the custom reporter that you have created.\n\n```js\n\nvar gulp = require('gulp'),\n    htmlhint_inline = require('gulp-htmlhint-inline');\n\ngulp.task('htmlhint', function () {\n  var options = {\n        htmlhintrc: './.htmlhintrc',\n        ignores: {\n          '\u003c?php': '?\u003e'\n        }\n    };\n\n    var cutomReporter = function (file) {\n        if (!file.htmlhint_inline.success) {\n            console.log('custom reporter: htmlhint-inline fail in '+ file.path);\n        }\n    }\n\n    return gulp.src('test/*.phtml')\n                .pipe(htmlhint_inline(options))\n                .pipe(htmlhint_inline.reporter())\n                .pipe(htmlhint_inline.reporter(cutomReporter));\n});\n\n```\n\n## License\n\n[MIT License](http://en.wikipedia.org/wiki/MIT_License)\n\n[npm-url]: https://npmjs.org/package/gulp-htmlhint-inline\n[npm-image]: https://badge.fury.io/js/gulp-htmlhint-inline.png\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fhtmlhint%2Fgulp-htmlhint-inline","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fhtmlhint%2Fgulp-htmlhint-inline","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fhtmlhint%2Fgulp-htmlhint-inline/lists"}