Skip to content
Merged
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
3 changes: 0 additions & 3 deletions examples/nextjs-app/.eslintrc.json

This file was deleted.

3 changes: 2 additions & 1 deletion examples/nextjs-app/app/components/AppShellBar.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ const THEMES = [
export function AppShellBar() {
const router = useRouter();
const pathname = usePathname();
const popoverOpenerRef = useRef<ButtonDomRef | undefined>(undefined);
const popoverOpenerRef = useRef<ButtonDomRef>(null);
const [popoverOpen, setPopoverOpen] = useState(false);
const [currentTheme, setCurrentTheme] = useState(getTheme);

Expand Down Expand Up @@ -64,6 +64,7 @@ export function AppShellBar() {
<ResponsivePopover
className={classes.popover}
open={popoverOpen}
/* eslint-disable-next-line react-hooks/refs */
opener={popoverOpenerRef.current}
onClose={() => {
setPopoverOpen(false);
Expand Down
14 changes: 14 additions & 0 deletions examples/nextjs-app/eslint.config.mjs
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
import { defineConfig } from 'eslint/config';
import nextCoreWebVitals from 'eslint-config-next/core-web-vitals';
import nextTypescript from 'eslint-config-next/typescript';
import path from 'node:path';
import { fileURLToPath } from 'node:url';

const __filename = fileURLToPath(import.meta.url);
const __dirname = path.dirname(__filename);

Check warning on line 8 in examples/nextjs-app/eslint.config.mjs

View workflow job for this annotation

GitHub Actions / examples (nextjs-app)

'__dirname' is assigned a value but never used

export default defineConfig([
{
extends: [...nextCoreWebVitals, ...nextTypescript],
},
]);
Loading
Loading