Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
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
4 changes: 2 additions & 2 deletions .lintstagedrc.js
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
const path = require("path");

const buildNextEslintCommand = (filenames) =>
`yarn next:lint --fix --file ${filenames
`yarn workspace @se-2/nextjs eslint --fix ${filenames
.map((f) => path.relative(path.join("packages", "nextjs"), f))
.join(" --file ")}`;
.join(" ")}`;

const checkTypesNextCommand = () => "yarn next:check-types";

Expand Down
783 changes: 0 additions & 783 deletions .yarn/releases/yarn-3.2.3.cjs

This file was deleted.

942 changes: 942 additions & 0 deletions .yarn/releases/yarn-4.12.0.cjs

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion .yarnrc.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,4 +10,4 @@ plugins:
- path: .yarn/plugins/@yarnpkg/plugin-interactive-tools.cjs
spec: "@yarnpkg/plugin-interactive-tools"

yarnPath: .yarn/releases/yarn-3.2.3.cjs
yarnPath: .yarn/releases/yarn-4.12.0.cjs
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@
"husky": "~9.1.6",
"lint-staged": "~13.2.2"
},
"packageManager": "yarn@3.2.3",
"packageManager": "yarn@4.12.0",
"engines": {
"node": ">=20.18.3"
}
Expand Down
28 changes: 14 additions & 14 deletions packages/nextjs/eslint.config.mjs
Original file line number Diff line number Diff line change
@@ -1,26 +1,16 @@
import { FlatCompat } from "@eslint/eslintrc";
import { defineConfig, globalIgnores } from "eslint/config";
import nextVitals from "eslint-config-next/core-web-vitals";
import prettierPlugin from "eslint-plugin-prettier";
import { defineConfig } from "eslint/config";
import path from "node:path";
import { fileURLToPath } from "node:url";

const __filename = fileURLToPath(import.meta.url);
const __dirname = path.dirname(__filename);
const compat = new FlatCompat({
baseDirectory: __dirname,
});

export default defineConfig([
const eslintConfig = defineConfig([
...nextVitals,
{
plugins: {
prettier: prettierPlugin,
},
extends: compat.extends("next/core-web-vitals", "next/typescript", "prettier"),

rules: {
"@typescript-eslint/no-explicit-any": "off",
"@typescript-eslint/ban-ts-comment": "off",

"prettier/prettier": [
"warn",
{
Expand All @@ -29,4 +19,14 @@ export default defineConfig([
],
},
},
// Override default ignores of eslint-config-next.
globalIgnores([
// Default ignores of eslint-config-next:
".next/**",
"out/**",
"build/**",
"next-env.d.ts",
]),
]);

export default eslintConfig;
1 change: 1 addition & 0 deletions packages/nextjs/next-env.d.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
/// <reference types="next" />
/// <reference types="next/image-types/global" />
import "./.next/types/routes.d.ts";

// NOTE: This file should not be edited
// see https://nextjs.org/docs/app/api-reference/config/typescript for more information.
3 changes: 0 additions & 3 deletions packages/nextjs/next.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -6,9 +6,6 @@ const nextConfig: NextConfig = {
typescript: {
ignoreBuildErrors: process.env.NEXT_PUBLIC_IGNORE_BUILD_ERROR === "true",
},
eslint: {
ignoreDuringBuilds: process.env.NEXT_PUBLIC_IGNORE_BUILD_ERROR === "true",
},
webpack: config => {
config.resolve.fallback = { fs: false, net: false, tls: false };
config.externals.push("pino-pretty", "lokijs", "encoding");
Expand Down
16 changes: 8 additions & 8 deletions packages/nextjs/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,12 +3,12 @@
"version": "0.1.0",
"private": true,
"scripts": {
"build": "next build",
"build": "next build --webpack",
"check-types": "tsc --noEmit --incremental",
"dev": "next dev",
"format": "prettier --write . '!(node_modules|.next|contracts)/**/*'",
"ipfs": "NEXT_PUBLIC_IPFS_BUILD=true yarn build && yarn bgipfs upload config init -u https://upload.bgipfs.com && CID=$(yarn bgipfs upload out | grep -o 'CID: [^ ]*' | cut -d' ' -f2) && [ ! -z \"$CID\" ] && echo '🚀 Upload complete! Your site is now available at: https://community.bgipfs.com/ipfs/'$CID || echo '❌ Upload failed'",
"lint": "next lint",
"lint": "eslint .",
"serve": "next start",
"start": "next dev",
"vercel": "vercel --build-env YARN_ENABLE_IMMUTABLE_INSTALLS=false --build-env ENABLE_EXPERIMENTAL_COREPACK=1 --build-env VERCEL_TELEMETRY_DISABLED=1",
Expand All @@ -26,13 +26,13 @@
"daisyui": "4.12.10",
"jotai": "^2.12.3",
"kubo-rpc-client": "~5.0.2",
"next": "~15.2.3",
"next": "^16.0.7",
"next-nprogress-bar": "~2.3.13",
"next-themes": "~0.3.0",
"qrcode.react": "~4.0.1",
"react": "~19.0.0",
"react": "^19.2.1",
"react-copy-to-clipboard": "~5.1.0",
"react-dom": "~19.0.0",
"react-dom": "^19.2.1",
"react-hot-toast": "~2.4.0",
"usehooks-ts": "~3.1.0",
"viem": "2.23.0",
Expand All @@ -42,13 +42,13 @@
"devDependencies": {
"@trivago/prettier-plugin-sort-imports": "~4.3.0",
"@types/node": "~18.19.50",
"@types/react": "~19.0.7",
"@types/react": "^19.2.7",
"@typescript-eslint/eslint-plugin": "~8",
"abitype": "1.0.6",
"autoprefixer": "~10.4.20",
"bgipfs": "~0.0.12",
"eslint": "~9.23.0",
"eslint-config-next": "~15.2.3",
"eslint-config-next": "^16.0.7",
"eslint-config-prettier": "~10.1.1",
"eslint-plugin-prettier": "~5.2.4",
"postcss": "~8.4.45",
Expand All @@ -58,5 +58,5 @@
"typescript": "~5.8.2",
"vercel": "~39.1.3"
},
"packageManager": "yarn@3.2.3"
"packageManager": "yarn@4.12.0"
}
32 changes: 26 additions & 6 deletions packages/nextjs/tsconfig.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,11 @@
{
"compilerOptions": {
"target": "es2020",
"lib": ["dom", "dom.iterable", "esnext"],
"lib": [
"dom",
"dom.iterable",
"esnext"
],
"allowJs": true,
"skipLibCheck": true,
"strict": true,
Expand All @@ -12,11 +16,27 @@
"moduleResolution": "Bundler",
"resolveJsonModule": true,
"isolatedModules": true,
"jsx": "preserve",
"jsx": "react-jsx",
"incremental": true,
"paths": { "~~/*": ["./*"] },
"plugins": [{ "name": "next" }]
"paths": {
"~~/*": [
"./*"
]
},
"plugins": [
{
"name": "next"
}
]
},
"include": ["next-env.d.ts", "**/*.ts", "**/*.tsx", ".next/types/**/*.ts"],
"exclude": ["node_modules"]
"include": [
"next-env.d.ts",
"**/*.ts",
"**/*.tsx",
".next/types/**/*.ts",
".next/dev/types/**/*.ts"
],
"exclude": [
"node_modules"
]
}
Loading
Loading