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
15 changes: 1 addition & 14 deletions .env.example
Original file line number Diff line number Diff line change
Expand Up @@ -9,19 +9,6 @@
# When adding additional environment variables, the schema in "/src/env.js"
# should be updated accordingly.

# Drizzle
DATABASE_URL="file:./db.sqlite"
# If using `turso dev`, only required if we start using turso extensions
#DATABASE_URL="http://127.0.0.1:8080"
TURSO_AUTH_TOKEN=""

# Next Auth
# You can generate a new secret on the command line with:
# openssl rand -base64 32
# https://next-auth.js.org/configuration/options#secret
# NEXTAUTH_SECRET=""
NEXTAUTH_URL="http://localhost:3000"

# Next Auth Discord Provider
# Discord Credentials
DISCORD_CLIENT_ID=""
DISCORD_CLIENT_SECRET=""
42 changes: 0 additions & 42 deletions .eslintrc.cjs

This file was deleted.

120 changes: 0 additions & 120 deletions .github/workflows/turso_branching.yaml

This file was deleted.

4 changes: 0 additions & 4 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,3 @@ yarn-error.log*

# typescript
*.tsbuildinfo

# local db
local.db*
db.sqlite
15 changes: 0 additions & 15 deletions drizzle.config.ts

This file was deleted.

45 changes: 45 additions & 0 deletions eslint.config.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,45 @@
import nextCoreWebVitals from "eslint-config-next/core-web-vitals";
import { defineConfig } from "eslint/config";
import tseslint from "typescript-eslint";

export default defineConfig(
{
ignores: [".next"],
},
...nextCoreWebVitals,
{
files: ["**/*.ts", "**/*.tsx"],
extends: [
...tseslint.configs.recommended,
...tseslint.configs.recommendedTypeChecked,
...tseslint.configs.stylisticTypeChecked,
],
rules: {
"@typescript-eslint/array-type": "off",
"@typescript-eslint/consistent-type-definitions": "off",
"@typescript-eslint/consistent-type-imports": [
"warn",
{ prefer: "type-imports", fixStyle: "inline-type-imports" },
],
"@typescript-eslint/no-unused-vars": [
"warn",
{ argsIgnorePattern: "^_" },
],
"@typescript-eslint/require-await": "off",
"@typescript-eslint/no-misused-promises": [
"error",
{ checksVoidReturn: { attributes: false } },
],
},
},
{
linterOptions: {
reportUnusedDisableDirectives: true,
},
languageOptions: {
parserOptions: {
projectService: true,
},
},
},
);
50 changes: 25 additions & 25 deletions next.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -6,31 +6,31 @@ await import("./src/env.js");

/** @type {import("next").NextConfig} */
const config = {
webpack: (config) => {
/* eslint-disable @typescript-eslint/no-unsafe-assignment, @typescript-eslint/no-unsafe-member-access, @typescript-eslint/no-unsafe-call, @typescript-eslint/no-unsafe-return */
const svgLoaderRule = config.module.rules.find(( /** @type {any} */ rule) => rule.test?.test?.(".svg"));
config.module.rules.push(
// Reapply the existing rule, but only for svg imports ending in ?url
{
...svgLoaderRule,
test: /\.svg$/i,
resourceQuery: /url/, // *.svg?url
},
// Convert all other *.svg imports to React components
{
test: /\.svg$/i,
issuer: svgLoaderRule.issuer,
resourceQuery: { not: [...svgLoaderRule.resourceQuery.not, /url/] }, // exclude if *.svg?url
use: ['@svgr/webpack'],
},
)

// Modify the file loader rule to ignore *.svg, since we have it handled now.
svgLoaderRule.exclude = /\.svg$/i

return config
/* eslint-enable @typescript-eslint/no-unsafe-assignment, @typescript-eslint/no-unsafe-member-access, @typescript-eslint/no-unsafe-call, @typescript-eslint/no-unsafe-return */
}
webpack: (config) => {
const svgLoaderRule = config.module.rules.find((/** @type {any} */ rule) =>
rule.test?.test?.(".svg"),
);
config.module.rules.push(
// Reapply the existing rule, but only for svg imports ending in ?url
{
...svgLoaderRule,
test: /\.svg$/i,
resourceQuery: /url/, // *.svg?url
},
// Convert all other *.svg imports to React components
{
test: /\.svg$/i,
issuer: svgLoaderRule.issuer,
resourceQuery: { not: [...svgLoaderRule.resourceQuery.not, /url/] }, // exclude if *.svg?url
use: ["@svgr/webpack"],
},
);

// Modify the file loader rule to ignore *.svg, since we have it handled now.
svgLoaderRule.exclude = /\.svg$/i;

return config;
},
};

export default config;
Loading
Loading