{"id":25934381,"url":"https://github.com/sanand0/eslint-plugin-template","last_synced_at":"2025-08-11T16:05:35.434Z","repository":{"id":46664125,"uuid":"67978111","full_name":"sanand0/eslint-plugin-template","owner":"sanand0","description":"Parses out template declarations found in js and html files.","archived":false,"fork":false,"pushed_at":"2024-12-25T11:54:34.000Z","size":162,"stargazers_count":5,"open_issues_count":10,"forks_count":3,"subscribers_count":3,"default_branch":"master","last_synced_at":"2025-07-31T13:38:59.055Z","etag":null,"topics":["library","tool"],"latest_commit_sha":null,"homepage":null,"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/sanand0.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}},"created_at":"2016-09-12T05:20:11.000Z","updated_at":"2025-04-17T07:01:10.000Z","dependencies_parsed_at":"2024-12-25T11:53:42.964Z","dependency_job_id":"2da07321-e0e2-4f6e-bd67-0837f983dbe0","html_url":"https://github.com/sanand0/eslint-plugin-template","commit_stats":{"total_commits":18,"total_committers":3,"mean_commits":6.0,"dds":"0.16666666666666663","last_synced_commit":"ac09bdda773259310aa9176fb6fc0dcb23584db2"},"previous_names":["sanand0/eslint-plugin-template","gramener/eslint-plugin-template"],"tags_count":6,"template":false,"template_full_name":null,"purl":"pkg:github/sanand0/eslint-plugin-template","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sanand0%2Feslint-plugin-template","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sanand0%2Feslint-plugin-template/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sanand0%2Feslint-plugin-template/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sanand0%2Feslint-plugin-template/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/sanand0","download_url":"https://codeload.github.com/sanand0/eslint-plugin-template/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sanand0%2Feslint-plugin-template/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":269915416,"owners_count":24495702,"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","status":"online","status_checked_at":"2025-08-11T02:00:10.019Z","response_time":75,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"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":["library","tool"],"created_at":"2025-03-04T00:57:38.477Z","updated_at":"2025-08-11T16:05:35.379Z","avatar_url":"https://github.com/sanand0.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# eslint-plugin-template\n\nParses out template declarations found in js and html files.\n\nFor example if you have a file like below, eslint will not be able to parse it\nnormally due to the template markers. With this plugin, the linter is able to\nwork normally. Note that whatever is inside the markers is replaced with `{}`.\n\n```js\n  {# Set data in the JS variable data #}    // ignored\n  {% import json %}                         // ignored\n  var x = {{ json.dumps(data) }}            // becomes var x = {}\n  var y = {% raw json.dumps(data) %}        // becomes var y = {}\n```\n\nIt handles conditional templates within JavaScript similarly.\n\n```js\n{% if true %}\n  var x = 1\n{% else %}\n  var x = 2\n{% endif %}\n```\n\nbecomes:\n\n```js\n  var x = 1\n  var x = 2\n```\n\nIf there are edge cases that still cannot be handled, wrap them inside `/* eslint-disable */` and `/* eslint-enable */`:\n\n```js\nfoo({{x}})\n/* eslint-disable */\nvar x = {% if x %}{{x}}{% else %}0{% endif %}\n/* eslint-enable */\n```\n\nbecomes:\n\n```js\nfoo({})\n```\n\n\n## Installation\n\n```bash\nnpm install --save-dev eslint eslint-plugin-template\n```\n\n## Usage\n\nAdd `template` to the plugins section of your `.eslintrc` configuration file:\n\n```json\n{\n    \"plugins\": [\n        \"template\"\n    ]\n}\n```\n\n## Tests\n\n```bash\nnpm test\n```\n\n## Release\n\n- Update the version in `package.json`\n- Commit to the master branch, update the tag, and push\n- Run `npm publish`\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsanand0%2Feslint-plugin-template","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fsanand0%2Feslint-plugin-template","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsanand0%2Feslint-plugin-template/lists"}