Upgrade eslint-plugin-matrix-org to 1.2.1
This upgrade came with a number of new lints that needed to be fixed across the code base. Primarily: explicit return types on functions, and explicit visibility modifiers on class members.
This commit is contained in:
@@ -41,8 +41,8 @@ export function StarRatingInput({
|
||||
return (
|
||||
<div
|
||||
className={styles.inputContainer}
|
||||
onMouseEnter={() => setHover(index)}
|
||||
onMouseLeave={() => setHover(rating)}
|
||||
onMouseEnter={(): void => setHover(index)}
|
||||
onMouseLeave={(): void => setHover(rating)}
|
||||
key={index}
|
||||
>
|
||||
<input
|
||||
@@ -51,7 +51,7 @@ export function StarRatingInput({
|
||||
id={"starInput" + String(index)}
|
||||
value={String(index) + "Star"}
|
||||
name="star rating"
|
||||
onChange={(_ev) => {
|
||||
onChange={(_ev): void => {
|
||||
setRating(index);
|
||||
onChange(index);
|
||||
}}
|
||||
|
||||
Reference in New Issue
Block a user