Skip to content

Commit 8e67151

Browse files
authored
update dependencies, fix new lint warnings (#2341)
1 parent d10b433 commit 8e67151

9 files changed

Lines changed: 31 additions & 35 deletions

File tree

bun.lock

Lines changed: 21 additions & 25 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

components/Filters/ToggleLink.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ type Props = {
1717
};
1818

1919
export function ToggleLink({ query, filterParam, basePath = '/packages', allowFalse }: Props) {
20-
const [isHovered, setHovered] = useState<boolean>(false);
20+
const [isHovered, setHovered] = useState(false);
2121
const isSelected = !!query[filterParam.param];
2222
const isFalsy = allowFalse && query[filterParam.param] === 'false';
2323

components/Package/CollapsibleSection.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ export default function CollapsibleSection({
2626
const sectionKey = sanitizeTitle(title);
2727
const key = `@ReactNativeDirectory:PackageSectionCollapsed:${sectionKey}`;
2828

29-
const [collapsed, setCollapsed] = useState<boolean>(Boolean(window.localStorage.getItem(key)));
29+
const [collapsed, setCollapsed] = useState(Boolean(window.localStorage.getItem(key)));
3030

3131
useEffect(() => {
3232
setCollapsed(window.localStorage.getItem(key) === 'true');

components/Package/MarkdownContentBox/MarkdownContentTab.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ type Props = {
1212
};
1313

1414
export default function MarkdownContentTab({ tab, activeTab, onPress }: Props) {
15-
const [isHovered, setHovered] = useState<boolean>(false);
15+
const [isHovered, setHovered] = useState(false);
1616
const Element = onPress ? Pressable : View;
1717
return (
1818
<Element

components/Package/TopicsSection.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ type Props = {
1313
const MAX_TOPICS = 16;
1414

1515
export default function TopicsSection({ topics }: Props) {
16-
const [expanded, setExpanded] = useState<boolean>(false);
16+
const [expanded, setExpanded] = useState(false);
1717

1818
if (!topics || !topics.length) {
1919
return null;

context/BookmarksContext.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,7 @@ export function getBookmarksFromCookie(cookieString?: string): string[] {
5454
}
5555

5656
export function BookmarksProvider({ children }: PropsWithChildren) {
57-
const [bookmarkedIds, setBookmarkedIds] = useState<Set<string>>(new Set());
57+
const [bookmarkedIds, setBookmarkedIds] = useState<Set<string>>(new Set()); // oxlint-disable-line no-unnecessary-type-arguments
5858
const [isLoading, setIsLoading] = useState(true);
5959

6060
useEffect(() => {

context/CustomAppearanceContext.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,6 @@ export type CustomAppearanceContextType = {
44
toggleTheme: () => void;
55
};
66

7-
export default createContext<CustomAppearanceContextType>({
7+
export default createContext({
88
toggleTheme() {},
99
});

package.json

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@
3535
"es-toolkit": "^1.45.1",
3636
"expo": "55.0.9",
3737
"expo-font": "^55.0.4",
38-
"next": "^16.2.1",
38+
"next": "^16.2.2",
3939
"node-emoji": "^2.2.0",
4040
"postcss": "^8.5.8",
4141
"react": "19.2.4",
@@ -59,7 +59,7 @@
5959
},
6060
"devDependencies": {
6161
"@expo/next-adapter": "^6.0.0",
62-
"@next/bundle-analyzer": "^16.2.1",
62+
"@next/bundle-analyzer": "^16.2.2",
6363
"@prettier/plugin-oxc": "^0.1.3",
6464
"@types/bun": "^1.3.11",
6565
"@types/crypto-js": "^4.2.2",
@@ -76,7 +76,7 @@
7676
"next-images": "^1.8.5",
7777
"oxfmt": "^0.43.0",
7878
"oxlint": "^1.58.0",
79-
"oxlint-tsgolint": "^0.18.1",
79+
"oxlint-tsgolint": "^0.19.0",
8080
"simple-git-hooks": "^2.13.1",
8181
"typescript": "^6.0.2",
8282
"user-agent-data-types": "^0.4.3"

pages/api/libraries/index.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ function getData(): SortedDataType {
2828
}
2929

3030
const SortedData = getData();
31-
const ReversedSortedData = Object.entries(getData()).reduce<SortedDataType>(
31+
const ReversedSortedData = Object.entries(getData()).reduce(
3232
(accumulator, data) => ({ ...accumulator, [data[0]]: data[1].reverse() }),
3333
{} as SortedDataType
3434
);

0 commit comments

Comments
 (0)