chore(linting): update ESLint to v10, bump lint group deps by avivkeller · Pull Request #8672 · nodejs/nodejs.org
packages/ui-components/src/Icons/InstallationMethod/N.tsx
Removes an inline comment in the SVG icon.
packages/ui-components/src/Containers/Sidebar/index.tsx
Refactors Sidebar away from
forwardRef and changes how ref is handled/typed.
packages/ui-components/src/Common/Select/index.tsx
Removes useEffect that synced internal state with defaultValue; updates eslint-disable rule name.
packages/ui-components/src/Common/Search/Suggestions/index.tsx
Reorders props spread vs key on list items.
packages/ui-components/src/Common/BasePagination/index.tsx
Switches pagination elements helper from a hook-like name to a plain function import.
packages/ui-components/src/Common/BasePagination/getPageElements.tsx
Renames useGetPageElements to getPageElements.
packages/ui-components/src/Common/AvatarGroup/Avatar/index.tsx
Refactors Avatar away from forwardRef.
packages/ui-components/package.json
Bumps linting/styling-related dev deps for ui-components.
packages/ui-components/eslint.config.js
Migrates React linting config to @eslint-react/eslint-plugin and adjusts rules.
package.json
Bumps root lint-related dependencies (ESLint v10, lint-staged, etc.).
apps/site/types/server.ts
Updates type import path for useDetectOS.
apps/site/providers/releaseProvider.tsx
Switches to React 19 use(Context) and provider shorthand; updates eslint-disable rule names.
apps/site/providers/navigationStateProvider.tsx
Uses provider shorthand and renames internal ref var.
apps/site/providers/matterProvider.tsx
Updates useDetectOS import path and uses provider shorthand.
apps/site/package.json
Bumps lint-related deps for the site app and adds @eslint-react/eslint-plugin.
apps/site/layouts/Post.tsx
Switches from useClientContext (server hook) to getClientContext.
apps/site/hooks/useSiteNavigation.ts
Adds/moves site navigation hook into top-level hooks/.
apps/site/hooks/useScrollToElement.ts
Switches to use(Context), updates eslint-disable rule names, and uses new useScroll.
apps/site/hooks/useScroll.ts
Adds a debounced scroll event hook.
apps/site/hooks/useMediaQuery.ts
Adds a matchMedia hook.
apps/site/hooks/useDetectOS.ts
Adds eslint-disable for set-state-in-effect rule.
apps/site/hooks/useClientContext.ts
Switches from useContext to use(Context).
apps/site/hooks/server/useScrollToElement.ts
Removes RSC-guard stub.
apps/site/hooks/server/useScroll.ts
Removes RSC-guard stub.
apps/site/hooks/server/useClientContext.ts
Removes server hook wrapper around getClientContext.
apps/site/hooks/server/index.ts
Removes server hooks barrel export.
apps/site/hooks/generic/index.ts
Removes generic hooks barrel export.
apps/site/hooks/client/index.ts
Removes client hooks barrel export.
apps/site/hooks/tests/useScrollToElement.test.jsx
Updates imports/formatting for relocated hook.
apps/site/hooks/tests/useMediaQuery.test.mjs
Updates import for relocated hook.
apps/site/hooks/tests/useDetectOS.test.mjs
Updates import for relocated hook.
apps/site/hooks/tests/useClientContext.test.jsx
Updates import for relocated hook.
apps/site/eslint.config.js
Migrates React linting config to @eslint-react/eslint-plugin and adjusts rules.
apps/site/components/withSidebarCrossLinks.tsx
Updates hooks imports and switches to getClientContext.
apps/site/components/withSidebar.tsx
Updates hooks imports to new hook locations.
apps/site/components/withNavBar.tsx
Updates useSiteNavigation import path.
apps/site/components/withMetaBar.tsx
Updates hooks imports and adds purity suppression for deterministic date formatting.
apps/site/components/withBreadcrumbs.tsx
Updates hooks imports to new hook locations.
apps/site/components/EOL/EOLModal.tsx
Updates eslint-disable rule names and adds a new suppression for useMemo.
apps/site/components/Downloads/Release/VersionDropdown.tsx
Switches from useContext to use(Context).
apps/site/components/Downloads/Release/ReleaseCodeBox.tsx
Switches to use(Context) and adds eslint-disable for dangerouslySetInnerHTML.
apps/site/components/Downloads/Release/PrebuiltDownloadButtons.tsx
Switches from useContext to use(Context).
apps/site/components/Downloads/Release/PlatformDropdown.tsx
Switches to use(Context) and updates hook import paths / eslint-disable rule names.
apps/site/components/Downloads/Release/PackageManagerDropdown.tsx
Switches to use(Context) and updates eslint-disable rule names.
apps/site/components/Downloads/Release/OperatingSystemDropdown.tsx
Switches to use(Context) and updates hook import paths / eslint-disable rule names.
apps/site/components/Downloads/Release/InstallationMethodDropdown.tsx
Switches to use(Context) and updates eslint-disable rule names.
apps/site/components/Downloads/Release/DownloadLink.tsx
Switches from useContext to use(Context).
apps/site/components/Downloads/Release/ChangelogLink.tsx
Switches from useContext to use(Context).
apps/site/components/Downloads/Release/BlogPostLink.tsx
Switches from useContext to use(Context).
apps/site/components/Common/Supporters/index.tsx
Changes React list key from ${name}-${i} to name.
apps/site/components/Common/FormattedTime.tsx
Adds purity suppression for deterministic date construction.