refactor: use eslint-config-neon for packages. (#8579)

Co-authored-by: Noel <buechler.noel@outlook.com>
This commit is contained in:
Suneet Tipirneni
2022-09-01 14:50:16 -04:00
committed by GitHub
parent 4bdb0593ae
commit edadb9fe5d
219 changed files with 2608 additions and 2053 deletions

View File

@@ -61,7 +61,7 @@ function resolveIcon(item: keyof GroupedMembers) {
return <VscSymbolField size={20} />;
case 'Variables':
return <VscSymbolVariable size={20} />;
case 'Functions':
default:
return <VscSymbolMethod size={20} />;
}
}
@@ -115,12 +115,12 @@ export function SidebarItems({
.filter((group) => groupItems[group].length)
.map((group, idx) => (
<Section key={idx} title={group} icon={resolveIcon(group)}>
{groupItems[group].map((member, i) => (
<Link key={i} href={member.path} passHref prefetch={false}>
{groupItems[group].map((member, index) => (
<Link key={index} href={member.path} passHref prefetch={false}>
<NavLink
className={classes.link}
component="a"
onClick={() => setOpened((o) => !o)}
onClick={() => setOpened((isOpened) => !isOpened)}
label={
<Group>
<Text sx={{ textOverflow: 'ellipsis', overflow: 'hidden' }} className="line-clamp-1">
@@ -135,7 +135,7 @@ export function SidebarItems({
}
active={asPathWithoutQueryAndAnchor === member.path}
variant="filled"
></NavLink>
/>
</Link>
))}
</Section>