{"id":13801005,"url":"https://github.com/github/eslint-plugin-custom-elements","last_synced_at":"2025-10-04T07:31:14.696Z","repository":{"id":37543166,"uuid":"346331073","full_name":"github/eslint-plugin-custom-elements","owner":"github","description":"A series of lint rules for best practices with Custom Elements","archived":true,"fork":false,"pushed_at":"2023-09-18T13:44:02.000Z","size":563,"stargazers_count":59,"open_issues_count":0,"forks_count":12,"subscribers_count":155,"default_branch":"main","last_synced_at":"2025-01-13T10:17:04.046Z","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":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/github.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":"CONTRIBUTING.md","funding":null,"license":"LICENSE","code_of_conduct":"CODE_OF_CONDUCT.md","threat_model":null,"audit":null,"citation":null,"codeowners":"CODEOWNERS","security":"SECURITY.md","support":null,"governance":null}},"created_at":"2021-03-10T11:24:16.000Z","updated_at":"2024-12-25T01:35:03.000Z","dependencies_parsed_at":"2023-09-25T03:52:23.896Z","dependency_job_id":null,"html_url":"https://github.com/github/eslint-plugin-custom-elements","commit_stats":{"total_commits":161,"total_committers":10,"mean_commits":16.1,"dds":0.5652173913043479,"last_synced_commit":"e0b1ac82d7570e887abf631073b38562501dcb24"},"previous_names":[],"tags_count":7,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/github%2Feslint-plugin-custom-elements","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/github%2Feslint-plugin-custom-elements/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/github%2Feslint-plugin-custom-elements/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/github%2Feslint-plugin-custom-elements/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/github","download_url":"https://codeload.github.com/github/eslint-plugin-custom-elements/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":235227462,"owners_count":18956137,"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-08-04T00:01:18.484Z","updated_at":"2025-10-04T07:31:09.299Z","avatar_url":"https://github.com/github.png","language":"JavaScript","funding_links":[],"categories":["Plugins"],"sub_categories":["Frameworks"],"readme":"# eslint-plugin-custom-elements (archived)\n\n\u003e [!WARNING]\\\n\u003e This project has been merged with [eslint-plugin-wc](https://github.com/43081j/eslint-plugin-wc). Please head there for updates and maintenance.\n\nThis is an ESLint Plugin to help provide best practices for writing Custom Elements aka Web Components. It provides a set of custom rules which can be enforced for files that declare classes that extend from HTMLElement.\n\n## Requirements\n\nNode 14.x\n\n## Installation\n\n```sh\n$ npm install --save-dev eslint eslint-plugin-custom-elements\n```\n\n## Setup\n\nAdd `custom-elements` to your list of plugins in your ESLint config, and enable the rules you want or just add `plugin:custom-elements/recommended` to the `extends` array.\n\nJSON ESLint config example:\n\n```json\n{\n  \"extends\": [\"plugin:custom-elements/recommended\"]\n}\n```\n\n### Rules\n\n- [Define Tag After Class Definition](./docs/rules/define-tag-after-class-definition.md)\n- [Expose Class on Global](./docs/rules/expose-class-on-global.md)\n- [Extends Correct Class](./docs/rules/extends-correct-class.md)\n- [File Name Matches Element](./docs/rules/file-name-matches-element.md)\n- [No Constructor](./docs/rules/no-constructor.md)\n- [No Customized Built in Elements](./docs/rules/no-customized-built-in-elements.md)\n- [No DOM Traversal in Attributechangedcallback](./docs/rules/no-dom-traversal-in-attributechangedcallback.md)\n- [No DOM Traversal in Connectedcallback](./docs/rules/no-dom-traversal-in-connectedcallback.md)\n- [No Exports with Element](./docs/rules/no-exports-with-element.md)\n- [No Method Prefixed with on](./docs/rules/no-method-prefixed-with-on.md)\n- [No Unchecked Define](./docs/rules/no-unchecked-define.md)\n- [One Element Per File](./docs/rules/one-element-per-file.md)\n- [Tag Name Matches Class](./docs/rules/tag-name-matches-class.md)\n- [Valid Tag Name](./docs/rules/valid-tag-name.md)\n\n## Development\n\n```\nnpm install\nnpm test\n```\n\n## License\n\nDistributed under the MIT license. See LICENSE for details.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fgithub%2Feslint-plugin-custom-elements","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fgithub%2Feslint-plugin-custom-elements","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fgithub%2Feslint-plugin-custom-elements/lists"}