client/web: add eslint
Add eslint to require stricter typescript rules, particularly around required hook dependencies. This commit also updates any files that were now throwing errors with eslint. Updates #10261 Signed-off-by: Sonia Appasamy <sonia@tailscale.com>
This commit is contained in:

committed by
Sonia Appasamy

parent
5a9e935597
commit
6e30c9d1fe
@ -78,7 +78,7 @@ export default function ExitNodeSelector({
|
||||
}
|
||||
}
|
||||
},
|
||||
[setOpen, selected, setSelected]
|
||||
[selected, updateNode, updatePrefs]
|
||||
)
|
||||
|
||||
const [
|
||||
@ -261,7 +261,7 @@ function ExitNodeSelectorInner({
|
||||
key={`${n.ID}-${n.Name}`}
|
||||
node={n}
|
||||
onSelect={() => onSelect(n)}
|
||||
isSelected={selected.ID == n.ID}
|
||||
isSelected={selected.ID === n.ID}
|
||||
/>
|
||||
))}
|
||||
</div>
|
||||
@ -309,7 +309,7 @@ function ExitNodeSelectorItem({
|
||||
|
||||
function CountryFlag({ code }: { code: string }) {
|
||||
return (
|
||||
countryFlags[code.toLowerCase()] || (
|
||||
<>{countryFlags[code.toLowerCase()]}</> || (
|
||||
<span className="font-medium text-gray-500 text-xs">
|
||||
{code.toUpperCase()}
|
||||
</span>
|
||||
|
Reference in New Issue
Block a user