Skip to content

Commit 32b2108

Browse files
authored
feat(@sit-onyx/eslint-plugin): add "no-shadow-native-events" from "eslint-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
1 parent 617c76f commit 32b2108

File tree

12 files changed

+429
-23
lines changed

12 files changed

+429
-23
lines changed

.changeset/eighty-crews-end.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
---
2+
"@sit-onyx/eslint-plugin": minor
3+
---
4+
5+
feat(no-shadow-native-events): duplicated implementation here until it is [released offically](https://github.com/vuejs/eslint-plugin-vue/issues/2557)

packages/eslint-plugin/src/index.cjs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,5 +8,6 @@ module.exports = {
88
},
99
rules: {
1010
"import-playwright-a11y": require("./rules/import-playwright-a11y.cjs"),
11+
"no-shadow-native": require("./rules/no-shadow-native-events.cjs"),
1112
},
1213
};
Lines changed: 85 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,85 @@
1+
[
2+
"copy",
3+
"cut",
4+
"paste",
5+
"compositionend",
6+
"compositionstart",
7+
"compositionupdate",
8+
"drag",
9+
"dragend",
10+
"dragenter",
11+
"dragexit",
12+
"dragleave",
13+
"dragover",
14+
"dragstart",
15+
"drop",
16+
"focus",
17+
"focusin",
18+
"focusout",
19+
"blur",
20+
"change",
21+
"beforeinput",
22+
"input",
23+
"reset",
24+
"submit",
25+
"invalid",
26+
"load",
27+
"error",
28+
"keydown",
29+
"keypress",
30+
"keyup",
31+
"auxclick",
32+
"click",
33+
"contextmenu",
34+
"dblclick",
35+
"mousedown",
36+
"mouseenter",
37+
"mouseleave",
38+
"mousemove",
39+
"mouseout",
40+
"mouseover",
41+
"mouseup",
42+
"abort",
43+
"canplay",
44+
"canplaythrough",
45+
"durationchange",
46+
"emptied",
47+
"encrypted",
48+
"ended",
49+
"loadeddata",
50+
"loadedmetadata",
51+
"loadstart",
52+
"pause",
53+
"play",
54+
"playing",
55+
"progress",
56+
"ratechange",
57+
"seeked",
58+
"seeking",
59+
"stalled",
60+
"suspend",
61+
"timeupdate",
62+
"volumechange",
63+
"waiting",
64+
"select",
65+
"scroll",
66+
"scrollend",
67+
"touchcancel",
68+
"touchend",
69+
"touchmove",
70+
"touchstart",
71+
"pointerdown",
72+
"pointermove",
73+
"pointerup",
74+
"pointercancel",
75+
"pointerenter",
76+
"pointerleave",
77+
"pointerover",
78+
"pointerout",
79+
"wheel",
80+
"animationstart",
81+
"animationend",
82+
"animationiteration",
83+
"transitionend",
84+
"transitionstart"
85+
]

0 commit comments

Comments
 (0)