Repository navigation
Bump dependencies, move to TypeScript 6 and clean up the site - #1433
Merged
Merged
Conversation
Update tailwindcss and @types/node, and TypeScript to 6.0.3. Set tsconfig target to es2022 and moduleResolution to bundler, as TS 6 rejects the old node resolution. ESLint stays on 9 since eslint-config-next does not work with ESLint 10 yet.
Drop .eslintrc.json (superseded by eslint.config.mjs) and the Tailwind v3 tailwind.config.js, which v4 does not use. Rename next.config.js and postcss.config.js to .mjs. Run npm audit fix.
Paginate the org repo listing so it is not cut off at 30 repos, accept any branch name when parsing .meta.yaml, and stop sorting the imported users array in place. Replace Tailwind classes that changed in v4 (shadow-outline, outline-none, shadow, rounded, border-gray), default Block className, reject rolled over dates in Generate, and read the personnummer version from its own package.json instead of bundling ours. Remove unused head tags (highlight.js css, analytics prefetch, IE meta, missing sitemap), point og/twitter image at a real image, self-host Source Sans 3 with next/font and drop the Twitter link.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Brings the site up to date after a quiet period.
Dependencies
target: es2022andmoduleResolution: bundler, since TS 6 rejects the oldnoderesolution.npm audit fixapplied.scopeManager.addGlobals, eslint-plugin-react calls the removedcontext.getFilename): [ESLint v10]: TypeError: contextOrFilename.getFilename is not a function when running ESLint v10 vercel/next.js#89764.npm auditfindings remain, all in thebraceschain under eslint-config-next. They only affect lint, and the only offered fix downgrades eslint-config-next to 14.Config
.eslintrc.json(superseded byeslint.config.mjs) and the Tailwind v3tailwind.config.js.next.configandpostcss.configare now.mjs.Fixes
.meta.yaml(the regex rejected-and/).shadow-outline,outline-none,shadow,rounded,border-gray).Blockno longer rendersclassName="mt-5 undefined".personnummer/package.jsoninstead of bundling our own.Document head and footer
og:imageandtwitter:imagepoint atandroid-chrome-512x512.png.next/font/google.npm run lintandnpm run buildpass. The build needsGITHUB_TOKENlocally, otherwise unauthenticated GitHub calls hit the rate limit.