Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: next.js 15 from codemod #908

Open
wants to merge 39 commits into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
39 commits
Select commit Hold shift + click to select a range
f1aeb00
feat: next.js 15 from codemod
mbifulco Dec 7, 2024
3d11d11
chore: deps
mbifulco Dec 10, 2024
92863f5
Merge remote-tracking branch 'origin/main' into f/next-next
mbifulco Dec 10, 2024
3ab82b8
chore: deps
mbifulco Dec 10, 2024
78f63a7
fix: lint command
mbifulco Dec 10, 2024
e1595b9
fix: lint
mbifulco Dec 10, 2024
f680024
fix: lint
mbifulco Dec 10, 2024
d9de2d7
fix: lints
mbifulco Dec 10, 2024
421e50c
feat: eslint 9
mbifulco Dec 10, 2024
bc6de1d
chore: trpc latest alpha
mbifulco Dec 10, 2024
8d93714
fix: derek jiti
mbifulco Dec 10, 2024
869c488
fix: logical error
mbifulco Dec 12, 2024
4120bd9
test: is this the problem?
mbifulco Dec 12, 2024
f33ae89
test: is it the tag component
mbifulco Dec 12, 2024
e43d69e
chore: deps
mbifulco Dec 12, 2024
00c3819
chore: not the tags page, lol
mbifulco Dec 12, 2024
a912415
fix: make sure all newsletters have frontmatter
mbifulco Dec 12, 2024
9e90a82
chore: don't track this yet
mbifulco Dec 12, 2024
aea5eb4
feat: add otel and +mdx to format command
mbifulco Dec 12, 2024
1cad9b8
chore: format all the mdx
mbifulco Dec 12, 2024
b137503
fix: some logic hardening for these guys
mbifulco Dec 12, 2024
63b5926
Merge branch 'main' into f/next-next
mbifulco Dec 21, 2024
350408e
chore: logic update
mbifulco Dec 21, 2024
d615283
chore: some deps
mbifulco Dec 21, 2024
c888941
fix: being an edgelord is breaking the build
mbifulco Dec 21, 2024
0a00722
fix?: surely vercel/otel wasn't to blame
mbifulco Dec 21, 2024
ca57c8c
chore: rm more @opentelemetry stuff
mbifulco Dec 21, 2024
2f5778e
fix: lockfile
mbifulco Dec 21, 2024
9ca56f0
feat: depcheck and clean up deps
mbifulco Dec 21, 2024
132a9df
fix: harden
mbifulco Dec 21, 2024
5cdea1a
chore: comment
mbifulco Dec 21, 2024
7cd3f54
feat: simplify alltags
mbifulco Dec 21, 2024
e5bcebc
fix: is this date evil y/n
mbifulco Dec 21, 2024
d9cd039
chore: fresh lockfile
mbifulco Dec 21, 2024
ad4aef3
chore: lockfile
mbifulco Dec 21, 2024
6c4ef0d
Merge remote-tracking branch 'origin/main' into f/next-next
mbifulco Dec 22, 2024
f280450
Merge remote-tracking branch 'origin/main' into f/next-next
mbifulco Jan 4, 2025
4a98df8
chore: deps
mbifulco Jan 4, 2025
dafba59
lints
mbifulco Jan 4, 2025
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions .depcheckrc.json
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,7 @@
"@layouts/*",
"@lib/*",
"@server/*",
"@server/*",
"@utils/*",

"mdx",
Expand Down
File renamed without changes.
71 changes: 71 additions & 0 deletions eslint.config.mjs
Original file line number Diff line number Diff line change
@@ -0,0 +1,71 @@
// @ts-check

import { FlatCompat } from '@eslint/eslintrc';
import eslint from '@eslint/js';
import tsParser from '@typescript-eslint/parser';
import reactCompiler from 'eslint-plugin-react-compiler';
import unusedImports from 'eslint-plugin-unused-imports';
import tseslint from 'typescript-eslint';

const compat = new FlatCompat({
baseDirectory: import.meta.dirname,
});

const nextEslintConfig = [
...compat.extends('next/core-web-vitals', 'next/typescript'),
];

export default tseslint.config(
nextEslintConfig,
eslint.configs.recommended,
tseslint.configs.recommended,
{
ignores: [
'**/**/node_modules',
'**/**/.next',
'**/**/public',
'components/ui',
'env.js',
'**/.eslintrc.cjs',
'**/*.config.js',
'**/*.config.cjs',
'**/*.config.mjs',
'.next',
'dist',
'pnpm-lock.yaml',
],
},
{
plugins: {
'unused-imports': unusedImports,
'react-compiler': reactCompiler,
},
languageOptions: {
parser: tsParser,
ecmaVersion: 'latest',
sourceType: 'module',
parserOptions: {
project: ['./tsconfig.json'],
},
},
},
{
rules: {
'react/prop-types': 'off',
'@typescript-eslint/no-unused-vars': [
'error',
{ argsIgnorePattern: '^_', varsIgnorePattern: '^_' },
],
'@typescript-eslint/consistent-type-definitions': ['error', 'type'],
'@typescript-eslint/consistent-type-imports': [
'warn',
{ prefer: 'type-imports', fixStyle: 'separate-type-imports' },
],
'@typescript-eslint/no-misused-promises': [
2,
{ checksVoidReturn: { attributes: false } },
],
'import/consistent-type-specifier-style': ['error', 'prefer-top-level'],
},
}
);
Empty file removed index.js
Empty file.
2 changes: 1 addition & 1 deletion next-env.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,4 +3,4 @@
/// <reference types="next/navigation-types/compat/navigation" />

// NOTE: This file should not be edited
// see https://nextjs.org/docs/app/building-your-application/configuring/typescript for more information.
// see https://nextjs.org/docs/app/api-reference/config/typescript for more information.
2 changes: 1 addition & 1 deletion next.config.mjs
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import withBundleAnalyzer from '@next/bundle-analyzer';
import createJiti from 'jiti';
import { createJiti } from 'jiti';

const jiti = createJiti(new URL(import.meta.url).pathname);

Expand Down
24 changes: 14 additions & 10 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -8,14 +8,14 @@
"scripts": {
"analyze": "ANALYZE=true next build",
"build": "next build",
"dev": "NODE_OPTIONS='--inspect' next dev --turbo",
"dev": "NODE_OPTIONS='--inspect' next dev --turbopack",
"depcheck": "depcheck",
"email": "email dev --dir ./src/utils/email/templates",
"format": "prettier --write \"**/*.{js,jsx,ts,tsx,json,md}\"",
"format": "prettier --write \"**/*.{js,jsx,ts,tsx,json,md,mdx}\"",
"start": "next start",
"test": "pnpm exec playwright test",
"lint": "next lint",
"eslint-check": "eslint --print-config . | eslint-config-prettier-check"
"lint": "pnpm eslint .",
"eslint-check": "pnpm eslint --print-config . | pnpm eslint-config-prettier-check"
},
"dependencies": {
"@cloudinary/url-gen": "^1.21.0",
Expand Down Expand Up @@ -44,17 +44,17 @@
"lucide-react": "^0.469.0",
"mailchecker": "^6.0.15",
"micro": "^10.0.1",
"next": "^14.2.21",
"next": "15.1.3",
"next-cloudinary": "^6.16.0",
"next-mdx-remote": "5.0.0",
"pluralize": "^8.0.0",
"postcss": "^8.4.49",
"posthog-js": "^1.203.3",
"posthog-node": "^4.3.2",
"prism-react-renderer": "^2.4.1",
"react": "^18.3.1",
"react": "19.0.0",
"react-aria": "^3.36.0",
"react-dom": "^18.3.1",
"react-dom": "19.0.0",
"react-email": "3.0.4",
"react-icons": "^5.4.0",
"react-stately": "^3.34.0",
Expand All @@ -70,31 +70,35 @@
"zod": "^3.24.1"
},
"devDependencies": {
"@eslint/js": "^9.17.0",
"@ianvs/prettier-plugin-sort-imports": "^4.4.0",
"@next/eslint-plugin-next": "^15.1.3",
"@playwright/test": "^1.49.1",
"@types/eslint": "^9.6.1",
"@types/node": "^22.10.5",
"@types/pluralize": "^0.0.33",
"@types/react": "^18.3.12",
"@types/react": "19.0.2",
"@typescript-eslint/eslint-plugin": "^8.19.0",
"@typescript-eslint/parser": "^8.19.0",
"depcheck": "^1.4.7",
"eslint": "8.57.0",
"eslint": "9.17.0",
"eslint-config-next": "^15.1.3",
"eslint-config-prettier": "^9.1.0",
"eslint-config-turbo": "^2.3.3",
"eslint-plugin-import": "^2.31.0",
"eslint-plugin-jsx-a11y": "^6.10.2",
"eslint-plugin-react": "^7.37.3",
"eslint-plugin-react-compiler": "19.0.0-beta-55955c9-20241229",
"eslint-plugin-react-hooks": "^5.1.0",
"eslint-plugin-unused-imports": "^4.1.4",
"github-slugger": "^2.0.0",
"jiti": "^2.4.2",
"prettier": "^3.4.2",
"prettier-plugin-tailwindcss": "^0.6.9",
"schema-dts": "^1.1.2",
"tailwindcss": "^3.4.17",
"typescript": "5.7.2"
"typescript": "5.7.2",
"typescript-eslint": "^8.18.1"
},
"repository": {
"type": "git",
Expand Down
Loading
Loading