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 example_next/.eslintrc.json

This file was deleted.

3 changes: 3 additions & 0 deletions example_next/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
This example app uses NextAuth for some reason instead of the SDK's own auth functions. The NextAuth redirect URL is not working.

See https://github.com/sspenst/rabbit/blob/main/pages/app.tsx for a working example that uses the SDK auth functions.
40 changes: 40 additions & 0 deletions example_next/eslint.config.mjs
Original file line number Diff line number Diff line change
@@ -0,0 +1,40 @@
import tseslint from "@typescript-eslint/eslint-plugin";
import tsparser from "@typescript-eslint/parser";
import react from "eslint-plugin-react";
import reactHooks from "eslint-plugin-react-hooks";

export default [
{
ignores: [".next/**", "node_modules/**", "out/**", "dist/**"],
},
{
files: ["**/*.{js,jsx,ts,tsx}"],
languageOptions: {
parser: tsparser,
parserOptions: {
ecmaVersion: "latest",
sourceType: "module",
ecmaFeatures: {
jsx: true,
},
},
},
plugins: {
"@typescript-eslint": tseslint,
react,
"react-hooks": reactHooks,
},
settings: {
react: {
version: "detect",
},
},
rules: {
...tseslint.configs.recommended.rules,
...react.configs.recommended.rules,
...reactHooks.configs.recommended.rules,
"react/react-in-jsx-scope": "off", // Not needed in Next.js
"react/prop-types": "off", // Using TypeScript for prop validation
},
},
];
Loading