diff --git a/.eslintrc.json b/.eslintrc.json index 99754607..d26019a2 100644 --- a/.eslintrc.json +++ b/.eslintrc.json @@ -69,6 +69,7 @@ "object-curly-newline": [2, { "minProperties": 4, "consistent": true }], "brace-style": 2, "no-multiple-empty-lines": 2, - "eol-last": [2, "always"] + "eol-last": [2, "always"], + "no-nested-ternary": 2 } } diff --git a/src/components/Avatar.tsx b/src/components/Avatar.tsx index 68bdb325..e9747b27 100644 --- a/src/components/Avatar.tsx +++ b/src/components/Avatar.tsx @@ -3,18 +3,17 @@ import Image from "next/image"; interface AvatarProps { imgPath?: string; width?: number; - height?: number + height?: number; } -export default function Avatar({ imgPath = "/grey_ball.png", width = 24, height = 24 }: AvatarProps) { +export default function Avatar({ + imgPath = "/grey_ball.png", + width = 24, + height = 24, +}: AvatarProps) { return (