mirror of
https://github.com/Such-Software/smirk-website.git
synced 2026-12-01 12:14:12 +01:00
fix(website): patch Next dependencies and restore lint checks
This commit is contained in:
+9
-15
@@ -1,18 +1,12 @@
|
||||
import { defineConfig, globalIgnores } from "eslint/config";
|
||||
import nextVitals from "eslint-config-next/core-web-vitals";
|
||||
import nextTs from "eslint-config-next/typescript";
|
||||
import { dirname } from "node:path";
|
||||
import { fileURLToPath } from "node:url";
|
||||
import { FlatCompat } from "@eslint/eslintrc";
|
||||
|
||||
const eslintConfig = defineConfig([
|
||||
...nextVitals,
|
||||
...nextTs,
|
||||
// Override default ignores of eslint-config-next.
|
||||
globalIgnores([
|
||||
// Default ignores of eslint-config-next:
|
||||
".next/**",
|
||||
"out/**",
|
||||
"build/**",
|
||||
"next-env.d.ts",
|
||||
]),
|
||||
]);
|
||||
const compat = new FlatCompat({ baseDirectory: dirname(fileURLToPath(import.meta.url)) });
|
||||
|
||||
const eslintConfig = [
|
||||
...compat.extends("next/core-web-vitals", "next/typescript"),
|
||||
{ ignores: [".next/**", "out/**", "build/**", "next-env.d.ts"] },
|
||||
];
|
||||
|
||||
export default eslintConfig;
|
||||
|
||||
Generated
+305
-261
File diff suppressed because it is too large
Load Diff
+10
-3
@@ -12,7 +12,7 @@
|
||||
},
|
||||
"dependencies": {
|
||||
"@such-software/smirk-dapp-api": "^0.3.0",
|
||||
"next": "15.3.6",
|
||||
"next": "15.5.29",
|
||||
"nostr-tools": "^2.23.9",
|
||||
"react": "^18.3.1",
|
||||
"react-dom": "^18.3.1"
|
||||
@@ -23,8 +23,15 @@
|
||||
"@types/react": "^18",
|
||||
"@types/react-dom": "^18",
|
||||
"eslint": "^9",
|
||||
"eslint-config-next": "15.3.6",
|
||||
"eslint-config-next": "15.5.29",
|
||||
"tailwindcss": "^4",
|
||||
"typescript": "^5"
|
||||
"typescript": "^5",
|
||||
"@eslint/eslintrc": "3.3.3"
|
||||
},
|
||||
"overrides": {
|
||||
"postcss@^8.0.0": "8.5.33",
|
||||
"next@15.5.29": {
|
||||
"sharp": "0.35.5"
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -11,6 +11,7 @@
|
||||
* arrives with the wallet's Nostr dapp-api scope.
|
||||
*/
|
||||
import { useEffect, useState } from 'react';
|
||||
import Link from 'next/link';
|
||||
import { SimplePool, nip19, type Event as NostrEvent } from 'nostr-tools';
|
||||
|
||||
const BACKEND = 'https://api.smirk.cash/api/v1';
|
||||
@@ -156,11 +157,11 @@ export default function FeedPage(): React.ReactElement {
|
||||
<main className="min-h-screen bg-black text-zinc-200">
|
||||
<div className="mx-auto max-w-2xl px-4 py-10">
|
||||
<header className="mb-8 text-center">
|
||||
<a href="/" className="inline-block">
|
||||
<Link href="/" className="inline-block">
|
||||
<span className="text-[#fbeb0a] font-bold text-2xl tracking-wide">
|
||||
SMIRK FEED
|
||||
</span>
|
||||
</a>
|
||||
</Link>
|
||||
<p className="mt-2 text-sm text-zinc-500">
|
||||
The self-sovereign Smirk square, on{' '}
|
||||
<span className="text-zinc-400">
|
||||
@@ -220,9 +221,9 @@ export default function FeedPage(): React.ReactElement {
|
||||
)}
|
||||
|
||||
<footer className="mt-10 text-center text-xs text-zinc-600">
|
||||
<a href="/" className="hover:text-zinc-400">
|
||||
<Link href="/" className="hover:text-zinc-400">
|
||||
← smirk.cash
|
||||
</a>
|
||||
</Link>
|
||||
</footer>
|
||||
</div>
|
||||
</main>
|
||||
|
||||
@@ -13,7 +13,7 @@ test('unknown evidence preserves the last known stage and locked assets', () =>
|
||||
test('complete walkthroughs stop at the final stage', () => {
|
||||
for (const demo of SWAP_DEMOS) {
|
||||
let state = INITIAL_DEMO_STATE;
|
||||
for (const _ of demo.steps) state = advanceDemo(state, demo.steps.length);
|
||||
for (let index = 0; index < demo.steps.length; index++) state = advanceDemo(state, demo.steps.length);
|
||||
assert.equal(state.step, demo.steps.length - 1);
|
||||
assert.equal(advanceDemo(state, demo.steps.length).step, state.step);
|
||||
assert.equal(simulatedAssetState(state.step, 1), 'Received');
|
||||
|
||||
Reference in New Issue
Block a user