{"id":23151927,"url":"https://github.com/takuya-nakayasu/eslint-plugin-ionic-tappable","last_synced_at":"2026-04-10T23:03:36.272Z","repository":{"id":57229933,"uuid":"378373606","full_name":"takuya-nakayasu/eslint-plugin-ionic-tappable","owner":"takuya-nakayasu","description":"ESLint plugin for Ionic tappable attribute","archived":false,"fork":false,"pushed_at":"2021-09-11T08:31:29.000Z","size":536,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-03-10T07:36:57.724Z","etag":null,"topics":["angular","eslint","eslint-plugin","eslintplugin","html","ionic","typescript"],"latest_commit_sha":null,"homepage":"","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/takuya-nakayasu.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}},"created_at":"2021-06-19T09:28:19.000Z","updated_at":"2022-11-24T21:10:09.000Z","dependencies_parsed_at":"2022-09-14T15:02:04.577Z","dependency_job_id":null,"html_url":"https://github.com/takuya-nakayasu/eslint-plugin-ionic-tappable","commit_stats":null,"previous_names":[],"tags_count":4,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/takuya-nakayasu%2Feslint-plugin-ionic-tappable","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/takuya-nakayasu%2Feslint-plugin-ionic-tappable/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/takuya-nakayasu%2Feslint-plugin-ionic-tappable/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/takuya-nakayasu%2Feslint-plugin-ionic-tappable/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/takuya-nakayasu","download_url":"https://codeload.github.com/takuya-nakayasu/eslint-plugin-ionic-tappable/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":247203304,"owners_count":20900950,"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":["angular","eslint","eslint-plugin","eslintplugin","html","ionic","typescript"],"created_at":"2024-12-17T19:12:17.189Z","updated_at":"2026-04-10T23:03:31.227Z","avatar_url":"https://github.com/takuya-nakayasu.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# eslint-plugin-ionic-tappable\n\nAn ESLint plugin that click must be accompanied by `tappable`, except for `\u003cbutton\u003e`, `\u003cion-button\u003e` and `\u003ca\u003e`.\n\n[![npm version](https://img.shields.io/npm/v/eslint-plugin-ionic-tappable.svg)](https://www.npmjs.com/package/eslint-plugin-ionic-tappable)\n[![License: MIT](https://img.shields.io/badge/License-MIT-yellow.svg)](https://opensource.org/licenses/MIT)\n[![Twitter](https://img.shields.io/twitter/follow/takuya_nakayasu?style=social)](https://twitter.com/takuya_nakayasu)\n\n## What’s `tappable` ?\n\n`tappable` is an Ionic directive.\n\nhttps://ionicframework.com/docs/troubleshooting/runtime#-\n\n\u003e In general, we recommend only adding `(click)` events to elements that are normally clickable. This includes `\u003cbutton\u003e` and `\u003ca\u003e` elements. This improves accessibility as a screen reader will be able to tell that the element is clickable\n\n\u003e However, you may need to add a `(click)` event to an element that is not normally clickable. When you do this you may experience a 300ms delay from the time you click the element to the event firing. To remove this delay, you can add the tappable attribute to your element.\n\n```html\n\u003cdiv tappable (click)=\"doClick()\"\u003eI am clickable!\u003c/div\u003e\n```\n\n## Installation\n\n```\nnpm install --save-dev eslint-plugin-ionic-tappable\n```\n\nOr\n\n```\nyarn add --dev eslint-plugin-ionic-tappable\n```\n\n## Usage\n\nModify your `.eslintrc`\n\n```js\n// .eslintrc.json\nmodule.exports = {\n  \"overrides\": [\n    ...,\n    {\n      \"files\": [\"*.html\"],\n      \"parser\": \"@angular-eslint/template-parser\",\n      \"plugins\": [\n        ...,\n        \"ionic-tappable\"\n      ],\n      \"rules\": [\n        ...,\n        \"ionic-tappable/click-events-have-tappable\": \"warn\"\n      ]\n    }\n  ]\n}\n```\n\n## Rules\n\n| Rule ID                                                                  | Description                                                                                                |\n| ------------------------------------------------------------------------ | ---------------------------------------------------------------------------------------------------------- |\n| [click-events-have-tappable](./docs/rules/click-events-have-tappable.md) | Ensures that the click event is accompanied by `tappable`, except for `\u003cbutton\u003e`, `\u003cion-button\u003e` and `\u003ca\u003e` |\n\n## Examples\n\nExamples of **incorrect** code:\n\n```html\n\u003cdiv (click)=\"doClick()\"\u003eI am clickable!\u003c/div\u003e\n```\n\nExamples of **correct** code:\n\n```html\n\u003cdiv tappable (click)=\"doClick()\"\u003eI am clickable!\u003c/div\u003e\n\n\u003cbutton (click)=\"doClick()\"\u003eI am clickable!\u003c/button\u003e\n```\n\n## License\n\nMIT\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftakuya-nakayasu%2Feslint-plugin-ionic-tappable","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Ftakuya-nakayasu%2Feslint-plugin-ionic-tappable","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftakuya-nakayasu%2Feslint-plugin-ionic-tappable/lists"}