Skip to content

Commit

Permalink
feat(@sit-onyx/eslint-plugin): add "no-shadow-native-events" from "es…
Browse files Browse the repository at this point in the history
…lint-plugin-vue" until its released (#1877)

Duplicate "no-shadow-native-events" from "eslint-plugin-vue" until it is
released:
- PR with `eslint-plugin-vue`:
vuejs/eslint-plugin-vue#2558
  - Tests can also be found in that PR
- Official Rule proposal:
vuejs/eslint-plugin-vue#2557

Relates to #1603
  • Loading branch information
JoCa96 authored Sep 17, 2024
1 parent 617c76f commit 32b2108
Show file tree
Hide file tree
Showing 12 changed files with 429 additions and 23 deletions.
5 changes: 5 additions & 0 deletions .changeset/eighty-crews-end.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
"@sit-onyx/eslint-plugin": minor
---

feat(no-shadow-native-events): duplicated implementation here until it is [released offically](https://github.com/vuejs/eslint-plugin-vue/issues/2557)
1 change: 1 addition & 0 deletions packages/eslint-plugin/src/index.cjs
Original file line number Diff line number Diff line change
Expand Up @@ -8,5 +8,6 @@ module.exports = {
},
rules: {
"import-playwright-a11y": require("./rules/import-playwright-a11y.cjs"),
"no-shadow-native": require("./rules/no-shadow-native-events.cjs"),
},
};
85 changes: 85 additions & 0 deletions packages/eslint-plugin/src/rules/dom-events.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,85 @@
[
"copy",
"cut",
"paste",
"compositionend",
"compositionstart",
"compositionupdate",
"drag",
"dragend",
"dragenter",
"dragexit",
"dragleave",
"dragover",
"dragstart",
"drop",
"focus",
"focusin",
"focusout",
"blur",
"change",
"beforeinput",
"input",
"reset",
"submit",
"invalid",
"load",
"error",
"keydown",
"keypress",
"keyup",
"auxclick",
"click",
"contextmenu",
"dblclick",
"mousedown",
"mouseenter",
"mouseleave",
"mousemove",
"mouseout",
"mouseover",
"mouseup",
"abort",
"canplay",
"canplaythrough",
"durationchange",
"emptied",
"encrypted",
"ended",
"loadeddata",
"loadedmetadata",
"loadstart",
"pause",
"play",
"playing",
"progress",
"ratechange",
"seeked",
"seeking",
"stalled",
"suspend",
"timeupdate",
"volumechange",
"waiting",
"select",
"scroll",
"scrollend",
"touchcancel",
"touchend",
"touchmove",
"touchstart",
"pointerdown",
"pointermove",
"pointerup",
"pointercancel",
"pointerenter",
"pointerleave",
"pointerover",
"pointerout",
"wheel",
"animationstart",
"animationend",
"animationiteration",
"transitionend",
"transitionstart"
]
Loading

0 comments on commit 32b2108

Please sign in to comment.