Skip to content

Commit

Permalink
feat: 1.21.{2,3}, update sponsors
Browse files Browse the repository at this point in the history
Signed-off-by: Ryan Cao <[email protected]>
  • Loading branch information
ryanccn committed Oct 31, 2024
1 parent 75847f1 commit d9536bb
Show file tree
Hide file tree
Showing 11 changed files with 1,429 additions and 1,111 deletions.
6 changes: 4 additions & 2 deletions eslint.config.js
Original file line number Diff line number Diff line change
@@ -1,10 +1,12 @@
import { config } from "@ryanccn/eslint-config";

export default config({
globals: ["es2021", "node"],
globals: ["es2024", "node"],
reactHooks: true,
next: false /* this currently doesn't work */,
next: true,
rules: {
"unicorn/import-style": "off",
"unicorn/prefer-global-this": "off",
"@next/next/no-img-element": "off",
},
});
7 changes: 5 additions & 2 deletions next.config.js → next.config.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
import { withPlausibleProxy } from "next-plausible";
import makeBundleAnalyzer from "@next/bundle-analyzer";
import type { NextConfig } from "next";

const withBundleAnalyzer = makeBundleAnalyzer({
enabled: process.env.ANALYZE === "true",
Expand Down Expand Up @@ -52,8 +53,7 @@ const securityHeaders = [
},
];

/** @type {import('next').NextConfig} */
const nextConfig = withPlausibleProxy()(
const nextConfig: NextConfig = withPlausibleProxy()(
withBundleAnalyzer({
reactStrictMode: true,
images: {
Expand All @@ -64,6 +64,7 @@ const nextConfig = withPlausibleProxy()(
optimizePackageImports: ["lucide-react", "@tremor/react", "date-fns"],
},

// eslint-disable-next-line @typescript-eslint/require-await
async headers() {
return [
...(process.env.NODE_ENV === "production"
Expand Down Expand Up @@ -94,6 +95,7 @@ const nextConfig = withPlausibleProxy()(
];
},

// eslint-disable-next-line @typescript-eslint/require-await
async redirects() {
return [
{
Expand Down Expand Up @@ -124,6 +126,7 @@ const nextConfig = withPlausibleProxy()(
];
},

// eslint-disable-next-line @typescript-eslint/require-await
async rewrites() {
return [
{
Expand Down
50 changes: 25 additions & 25 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -22,10 +22,10 @@
"fast-xml-parser": "^4.5.0",
"file-saver": "^2.0.5",
"jszip": "^3.10.1",
"lucide-react": "^0.447.0",
"nanoid": "^5.0.7",
"next": "^14.2.14",
"next-auth": "^4.24.8",
"lucide-react": "^0.454.0",
"nanoid": "^5.0.8",
"next": "^15.0.2",
"next-auth": "^4.24.10",
"next-mdx-remote": "^5.0.0",
"next-plausible": "^3.12.2",
"next-themes": "^0.3.0",
Expand All @@ -34,39 +34,39 @@
"react-dom": "18.3.1",
"react-hot-toast": "^2.4.1",
"react-markdown": "^9.0.1",
"tailwind-merge": "^2.5.3",
"tailwind-merge": "^2.5.4",
"valibot": "1.0.0-beta.0"
},
"devDependencies": {
"@aws-sdk/credential-provider-web-identity": "^3.664.0",
"@aws-sdk/credential-provider-web-identity": "^3.679.0",
"@eslint/eslintrc": "^3.1.0",
"@eslint/js": "^9.11.1",
"@eslint/js": "^9.13.0",
"@microsoft/eslint-formatter-sarif": "^3.1.0",
"@next/bundle-analyzer": "^14.2.14",
"@next/eslint-plugin-next": "^14.2.14",
"@next/bundle-analyzer": "^15.0.2",
"@next/eslint-plugin-next": "^15.0.2",
"@ryanccn/eslint-config": "^0.4.1",
"@tailwindcss/forms": "^0.5.9",
"@tailwindcss/typography": "^0.5.15",
"@types/file-saver": "^2.0.7",
"@types/node": "22.7.4",
"@types/react": "18.3.11",
"@types/react-dom": "18.3.0",
"@upstash/ratelimit": "^2.0.3",
"@vercel/functions": "^1.4.1",
"@types/node": "22.8.4",
"@types/react": "18.3.12",
"@types/react-dom": "18.3.1",
"@upstash/ratelimit": "^2.0.4",
"@vercel/functions": "^1.5.0",
"@vercel/kv": "^3.0.0",
"autoprefixer": "^10.4.20",
"discord-api-types": "^0.37.101",
"eslint": "^9.11.1",
"eslint-config-next": "14.2.14",
"discord-api-types": "^0.37.103",
"eslint": "^9.13.0",
"eslint-config-next": "15.0.2",
"eslint-config-prettier": "^9.1.0",
"eslint-plugin-unicorn": "^56.0.0",
"globals": "^15.10.0",
"globals": "^15.11.0",
"gray-matter": "^4.0.3",
"image-size": "^1.1.1",
"kleur": "^4.1.5",
"mongodb": "^6.9.0",
"mongodb": "^6.10.0",
"node-fetch": "^3.3.2",
"nodemailer": "^6.9.15",
"nodemailer": "^6.9.16",
"p-limit": "^6.1.0",
"postcss": "^8.4.47",
"prettier": "^3.3.3",
Expand All @@ -75,16 +75,16 @@
"rehype-stringify": "^10.0.1",
"remark-parse": "^11.0.0",
"remark-rehype": "^11.1.1",
"tailwindcss": "^3.4.13",
"tsx": "^4.19.1",
"typescript": "^5.6.2",
"typescript-eslint": "^8.8.0",
"tailwindcss": "^3.4.14",
"tsx": "^4.19.2",
"typescript": "^5.6.3",
"typescript-eslint": "^8.12.2",
"unified": "^11.0.5"
},
"pnpm": {
"patchedDependencies": {
"@next-auth/[email protected]": "patches/@[email protected]"
}
},
"packageManager": "[email protected].0+sha512.4abf725084d7bcbafbd728bfc7bee61f2f791f977fd87542b3579dcb23504d170d46337945e4c66485cd12d588a0c0e570ed9c477e7ccdd8507cf05f3f92eaca"
"packageManager": "[email protected].3+sha512.cce0f9de9c5a7c95bef944169cc5dfe8741abfb145078c0d508b868056848a87c81e626246cb60967cbd7fd29a6c062ef73ff840d96b3c86c40ac92cf4a813ee"
}
Loading

0 comments on commit d9536bb

Please sign in to comment.