{"id":50311279,"url":"https://github.com/k9n-dev/eslint-plugin-prefer-implicit","last_synced_at":"2026-05-28T21:01:47.650Z","repository":{"id":354051008,"uuid":"1221931071","full_name":"k9n-dev/eslint-plugin-prefer-implicit","owner":"k9n-dev","description":"Prefer implicit semantics over explicit ARIA and roles.","archived":false,"fork":false,"pushed_at":"2026-05-11T21:31:13.000Z","size":1119,"stargazers_count":5,"open_issues_count":0,"forks_count":0,"subscribers_count":0,"default_branch":"main","last_synced_at":"2026-05-11T23:32:08.057Z","etag":null,"topics":["a11y","accessibility","aria","eslint","eslint-plugin","html","semantic-html"],"latest_commit_sha":null,"homepage":"https://k9n-dev.github.io/eslint-plugin-prefer-implicit/","language":"TypeScript","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/k9n-dev.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","contributing":"CONTRIBUTING.md","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}},"created_at":"2026-04-26T21:28:28.000Z","updated_at":"2026-05-11T21:31:11.000Z","dependencies_parsed_at":null,"dependency_job_id":null,"html_url":"https://github.com/k9n-dev/eslint-plugin-prefer-implicit","commit_stats":null,"previous_names":["k9n-dev/eslint-plugin-prefer-implicit"],"tags_count":3,"template":false,"template_full_name":null,"purl":"pkg:github/k9n-dev/eslint-plugin-prefer-implicit","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/k9n-dev%2Feslint-plugin-prefer-implicit","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/k9n-dev%2Feslint-plugin-prefer-implicit/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/k9n-dev%2Feslint-plugin-prefer-implicit/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/k9n-dev%2Feslint-plugin-prefer-implicit/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/k9n-dev","download_url":"https://codeload.github.com/k9n-dev/eslint-plugin-prefer-implicit/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/k9n-dev%2Feslint-plugin-prefer-implicit/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":33626142,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-05-26T15:22:16.424Z","status":"online","status_checked_at":"2026-05-28T02:00:06.440Z","response_time":99,"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":["a11y","accessibility","aria","eslint","eslint-plugin","html","semantic-html"],"created_at":"2026-05-28T21:01:42.010Z","updated_at":"2026-05-28T21:01:47.643Z","avatar_url":"https://github.com/k9n-dev.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"\u003cp align=\"center\"\u003e\n  \u003cimg src=\"https://raw.githubusercontent.com/k9n-dev/eslint-plugin-prefer-implicit/main/docs/static/img/logo.svg\" alt=\"Logo of the ESLint plugin: @k9n/eslint-plugin-prefer-implicit\" width=\"120\" /\u003e\n\u003c/p\u003e\n\n# @k9n/eslint-plugin-prefer-implicit\n\n\u003e Prefer implicit semantics over explicit ARIA and roles.\n\n📖 **Full documentation:** https://k9n-dev.github.io/eslint-plugin-prefer-implicit/\n\n## Motivation\n\nModern HTML already provides rich, implicit semantics. However, many codebases add redundant or even harmful ARIA attributes and roles. This plugin enforces a simple principle:\n\n\u003e **If the browser already knows it, don't repeat it.**\n\n## Installation\n\n```bash\nnpm install --save-dev @k9n/eslint-plugin-prefer-implicit\n```\n\n\u003e **Note:** This plugin requires ESLint ^10.0.0 with flat config.\n\n## Configuration\n\n### Recommended config\n\nEnables all rules at `\"warn\"` severity:\n\n```js\n// eslint.config.js\nimport preferImplicit from \"@k9n/eslint-plugin-prefer-implicit\";\n\nexport default [preferImplicit.configs.recommended];\n```\n\n### Manual configuration\n\n```js\n// eslint.config.js\nimport preferImplicit from \"@k9n/eslint-plugin-prefer-implicit\";\n\nexport default [\n  {\n    plugins: {\n      \"prefer-implicit\": preferImplicit,\n    },\n    rules: {\n      \"prefer-implicit/no-redundant-role\": \"warn\",\n      \"prefer-implicit/no-destructive-role\": \"warn\",\n      \"prefer-implicit/no-conflicting-aria\": \"warn\",\n      \"prefer-implicit/no-unsupported-aria\": \"warn\",\n      \"prefer-implicit/no-default-aria\": \"warn\",\n      \"prefer-implicit/no-hidden-focusable\": \"warn\",\n      \"prefer-implicit/no-invalid-role\": \"warn\",\n      \"prefer-implicit/no-redundant-aria\": \"warn\",\n      \"prefer-implicit/no-abstract-role\": \"warn\",\n      \"prefer-implicit/no-aria-on-non-semantic\": \"warn\",\n      \"prefer-implicit/no-positive-tabindex\": \"warn\",\n    },\n  },\n];\n```\n\n## Rules\n\n| Rule | Description | Fixable | Recommended |\n| --- | --- | --- | --- |\n| [no-redundant-role](https://k9n-dev.github.io/eslint-plugin-prefer-implicit/rules/no-redundant-role) | Disallow role attributes matching the element's implicit role | ✅ | warn |\n| [no-destructive-role](https://k9n-dev.github.io/eslint-plugin-prefer-implicit/rules/no-destructive-role) | Disallow roles that remove native semantics | ✅ | warn |\n| [no-conflicting-aria](https://k9n-dev.github.io/eslint-plugin-prefer-implicit/rules/no-conflicting-aria) | Disallow `aria-live` values conflicting with role semantics | ✅ | warn |\n| [no-unsupported-aria](https://k9n-dev.github.io/eslint-plugin-prefer-implicit/rules/no-unsupported-aria) | Disallow ARIA attributes not supported by the element's role | ✅ | warn |\n| [no-default-aria](https://k9n-dev.github.io/eslint-plugin-prefer-implicit/rules/no-default-aria) | Disallow ARIA attributes set to their default value | ✅ | warn |\n| [no-hidden-focusable](https://k9n-dev.github.io/eslint-plugin-prefer-implicit/rules/no-hidden-focusable) | Disallow focusable elements with `aria-hidden=\"true\"` | ✅ | warn |\n| [no-invalid-role](https://k9n-dev.github.io/eslint-plugin-prefer-implicit/rules/no-invalid-role) | Detect invalid WAI-ARIA role values | ❌ | warn |\n| [no-redundant-aria](https://k9n-dev.github.io/eslint-plugin-prefer-implicit/rules/no-redundant-aria) | Detect ARIA attributes repeating implicit element values | ✅ | warn |\n| [no-abstract-role](https://k9n-dev.github.io/eslint-plugin-prefer-implicit/rules/no-abstract-role) | Disallow abstract ARIA roles | ❌ | warn |\n| [no-aria-on-non-semantic](https://k9n-dev.github.io/eslint-plugin-prefer-implicit/rules/no-aria-on-non-semantic) | Warn on ARIA attributes on `role=\"none\"`/`\"presentation\"` | ✅ | warn |\n| [no-positive-tabindex](https://k9n-dev.github.io/eslint-plugin-prefer-implicit/rules/no-positive-tabindex) | Warn on `tabindex` \u003e 0 | ❌ | warn |\n\n## Core Philosophy\n\n- ✅ Native HTML first\n- ✅ Implicit semantics over explicit declarations\n- ✅ Conservative autofix (only when 100% safe)\n- ❌ No guessing developer intent\n- ❌ No breaking dynamic behavior\n\n## License\n\nMIT\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fk9n-dev%2Feslint-plugin-prefer-implicit","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fk9n-dev%2Feslint-plugin-prefer-implicit","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fk9n-dev%2Feslint-plugin-prefer-implicit/lists"}