Skip to content

Commit 4d1dbf6

Browse files
authored
chore: add Vale rule suggesting 'select' over 'click' for UI actions (#2637)
1 parent bd2265c commit 4d1dbf6

1 file changed

Lines changed: 10 additions & 0 deletions

File tree

.github/styles/Apify/UIVerbs.yml

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
extends: substitution
2+
message: "Use '%s' instead of '%s' for UI actions."
3+
ignorecase: true
4+
level: warning
5+
scope: text
6+
swap:
7+
'(?<!double-|right-|left-|single-)click(?!-through)': select
8+
'(?<!double-|right-|left-|single-)clicks(?!-through)': selects
9+
'(?<!double-|right-|left-|single-)clicked(?!-through)': selected
10+
'(?<!double-|right-|left-|single-)clicking(?!-through)': selecting

0 commit comments

Comments
 (0)