Skip to content

Commit f55bb37

Browse files
author
jfusco
committed
Add global Event types to .eslint
1 parent 44ebbc7 commit f55bb37

File tree

2 files changed

+7
-2
lines changed

2 files changed

+7
-2
lines changed

.eslintrc

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -81,6 +81,11 @@
8181
"globals": {
8282
"console": true,
8383
"process": true,
84-
"__DEV__": true
84+
"__DEV__": true,
85+
"MouseEvent": true,
86+
"React$Element": true,
87+
"HTMLInputElement": true,
88+
"KeyboardEvent": true,
89+
"SyntheticInputEvent": true
8590
}
8691
}

src/component/js/Tags.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@ const Tags = ({
3939
if (tags.length >= maxTags) return;
4040
}
4141

42-
if(input){
42+
if (input){
4343
const value = input.value.trim();
4444

4545
if (uniqueTags){

0 commit comments

Comments
 (0)