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
12 changes: 11 additions & 1 deletion .env.example
Original file line number Diff line number Diff line change
@@ -1 +1,11 @@
DATABASE_URL=
DATABASE_URL=
BETTER_AUTH_SECRET=
BETTER_AUTH_URL=

GOOGLE_CLIENT_ID=
GOOGLE_CLIENT_SECRET=

GITHUB_CLIENT_ID=
GITHUB_CLIENT_SECRET=

RESEND_API_KEY=
32 changes: 31 additions & 1 deletion eslint.config.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@ import { dirname } from 'path'
import { fileURLToPath } from 'url'
import { FlatCompat } from '@eslint/eslintrc'
import eslintPluginPrettierRecommended from 'eslint-plugin-prettier/recommended'
import unicorn from 'eslint-plugin-unicorn'

const __filename = fileURLToPath(import.meta.url)
const __dirname = dirname(__filename)
Expand All @@ -11,11 +12,40 @@ const compat = new FlatCompat({
})

const eslintConfig = [
...compat.extends('next/core-web-vitals', 'next/typescript', 'plugin:naming/recommended'),
...compat.extends('next/core-web-vitals', 'next/typescript'),
{
ignores: ['node_modules/**', '.next/**', 'out/**', 'build/**', 'next-env.d.ts'],
},
{
plugins: {
unicorn,
},
rules: {
'unicorn/filename-case': [
'error',
{
case: 'kebabCase',
ignore: [
// This rule applies to filenames, not directory names.
// The original regexes `/^\[.*\]$/` and `/^\(.*\)$/` didn't work because
// they don't account for file extensions (e.g., `.tsx`).

// This updated regex correctly matches dynamic segment files
// like `[id].tsx` or `[...slug].tsx`.
/^\[.*\]\..+$/,

// This is for the uncommon case where a file is named like a route group,
// e.g., `(marketing).tsx`.
/^\(.*\)\..+$/,

// This correctly ignores files that start with an underscore,
// such as `_app.tsx` or private utility files.
/^_/,
],
},
],
},
},
eslintPluginPrettierRecommended,
]

Expand Down
Loading