{"id":15539086,"url":"https://github.com/patricklx/eslint-plugin-ember-template-lint","last_synced_at":"2025-04-23T16:09:19.484Z","repository":{"id":168655061,"uuid":"642805228","full_name":"patricklx/eslint-plugin-ember-template-lint","owner":"patricklx","description":null,"archived":false,"fork":false,"pushed_at":"2025-04-21T03:01:33.000Z","size":1314,"stargazers_count":4,"open_issues_count":11,"forks_count":0,"subscribers_count":2,"default_branch":"main","last_synced_at":"2025-04-23T16:09:14.157Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"isc","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/patricklx.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","contributing":null,"funding":null,"license":"LICENSE.md","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}},"created_at":"2023-05-19T11:39:45.000Z","updated_at":"2025-02-10T07:45:46.000Z","dependencies_parsed_at":"2024-10-02T12:09:11.156Z","dependency_job_id":"73ed6ce3-ccc9-4d3f-be7c-aa082832ba7b","html_url":"https://github.com/patricklx/eslint-plugin-ember-template-lint","commit_stats":null,"previous_names":["patricklx/eslint-plugin-ember-template-lint"],"tags_count":13,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/patricklx%2Feslint-plugin-ember-template-lint","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/patricklx%2Feslint-plugin-ember-template-lint/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/patricklx%2Feslint-plugin-ember-template-lint/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/patricklx%2Feslint-plugin-ember-template-lint/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/patricklx","download_url":"https://codeload.github.com/patricklx/eslint-plugin-ember-template-lint/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":250468270,"owners_count":21435452,"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":[],"created_at":"2024-10-02T12:09:05.722Z","updated_at":"2025-04-23T16:09:19.459Z","avatar_url":"https://github.com/patricklx.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# eslint-plugin-hbs-template\n\nProvide linting (via [ember-template-lint](https://github.com/ember-template-lint/ember-template-lint)) for hbs templates files, template string literals and gts,gjs (also enables eslint to run its other rules in gts/gjs)\n* no extra config file needed\n\n* no need to run extra tool for linting\n\n* no need to run extra tool to fix lint issues\n\n* no need to implement \u0026 maintain editor support for ember-template-lint\n\n* it also has the advantage that it can know the scope for some template-lint rules, like no-implicit-this, and remove those messages\n\n## Installation\n\nYou'll first need to install [ESLint](http://eslint.org):\n\n```\n$ npm i eslint --save-dev\n```\n\nNext, install `eslint-plugin-ember-template-lint`:\n\n```\n$ npm install eslint-plugin-ember-template-lint --save-dev\n```\n\n**Note:** If you installed ESLint globally (using the `-g` flag) then you must also install `eslint-plugin-ember-template-lint` globally.\n\n## Usage\n\nAdd `ember-template-lint` to the plugins section of your `.eslintrc` configuration file. You can omit the `eslint-plugin-` prefix:\n\n### 2. Modify your `.eslintrc.js`\n\nyou can use the presets from here https://github.com/ember-template-lint/ember-template-lint#presets\nlike this:\n`plugin:ember-template-lint/\u003cpreset\u003e`\n\nto just use the `.template-lintrc.js` config file just use\n`plugin:ember-template-lint/config`\n\nto load ember-template-lint plugins in eslinrc you need to manually register them:\n```js\nrequire('eslint-plugin-ember-template-lint/lib/ember-template-lint/config').registerPlugin('ember-template-lint-plugin-prettier');\n```\n\n## IMPORTANT\nDo NOT set parser to anything in your .eslintrc.js as it will override the parser from here\n\nfor typescript parser you can extend its base config, then it will work correctly\n\n```js\n// .eslintrc.js\n// optional:\nrequire('eslint-plugin-ember-template-lint/lib/ember-template-lint/config').registerPlugin('ember-template-lint-plugin-prettier');\n\n\nmodule.exports = {\n  overrides: [\n    {\n      files: ['**/*.hbs'],\n      parser: 'ember-template-lint/lib/parser/hbs-parser',\n      extends: [\n        'plugin:ember-template-lint/config',\n        'plugin:ember-template-lint/recommended',\n      ],\n    },\n    {\n      files: ['**/*.gjs'],\n      parser: 'ember-eslint-parser',\n      extends: [\n        'plugin:ember-template-lint/config',\n        'plugin:ember-template-lint/recommended',\n      ],\n    },\n  ],\n};\n```\n\n\n\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fpatricklx%2Feslint-plugin-ember-template-lint","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fpatricklx%2Feslint-plugin-ember-template-lint","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fpatricklx%2Feslint-plugin-ember-template-lint/lists"}