Skip to content

Commit

Permalink
πŸŒ… upd(app): global update
Browse files Browse the repository at this point in the history
  • Loading branch information
blefnk committed Aug 15, 2023
1 parent 67a68f4 commit 6247d5c
Show file tree
Hide file tree
Showing 144 changed files with 4,127 additions and 11,836 deletions.
19 changes: 0 additions & 19 deletions .editorconfig

This file was deleted.

49 changes: 49 additions & 0 deletions .env.example
Original file line number Diff line number Diff line change
@@ -0,0 +1,49 @@
# !! PLANETSCALE CREDENTIALS (https://planetscale.com)
# Connect -> Connect with `@planetscale/database`:
DATABASE_HOST="" # ?? aws.connect.psdb.cloud
DATABASE_USERNAME="" # ?? ********************
DATABASE_PASSWORD="" # ?? pscale_pw_*******************************************
# Connect -> Connect with `Prisma`:
NEXT_SECRET_URL_PSCALE=""

# !! CLERK CREDENTIALS (https://clerk.com)
# These values should be replaced with production keys on the deployed site
NEXT_PUBLIC_CLERK_PUBLISHABLE_KEY="" # ?? pk_test_********************************
CLERK_SECRET_KEY="" # ?? sk_test_********************************

# !! AUTH.JS CREDENTIALS (https://authjs.dev)
NEXT_PUBLIC_URL_AUTHJS="http://localhost:3000" # ?? http://localhost:3000 when in development

# !! FILE UPLOADING (https://uploadthing.com)
UPLOADTHING_SECRET="" # ?? sk_live_********************************
UPLOADTHING_APP_ID="" # ?? **********

# !! STRIPE CREDENTIALS (https://stripe.com)
# These values should be replaced with production keys on the deployed site to accept real payments
NEXT_PUBLIC_STRIPE_PUBLISHABLE_KEY="" # ?? pk_test_********************************
STRIPE_SECRET_KEY="" # ?? sk_test_********************************

# !! STRIPE WEBHOOK SECRET (https://stripe.com)
# Create a webhook inside the stripe dashboard. Make sure to listen to the `payment_intent.succeeded` event.
# The webhook URL should be: https://<INSERT_YOUR_DOMAIN_HERE>/api/stripe/webhook
STRIPE_WEBHOOK_SECRET="" # ?? whsec***********************

# !! OTHER ENV VARS
POSTMARK_SIGN_IN_TEMPLATE="" # ?? ==
POSTMARK_API_TOKEN="" # ?? ==
CLOUDFLARE_API="" # ?? ==
CLOUDFLARE_USER="" # ?? ==
NEXTAUTH_SECRET="" # ?? ==
SMTP_FROM="" # ?? ==
AUTH_SECRET="" # ?? ==
NEXTAUTH_SECRET="" # ?? ==
NEXTAUTH_URL="http://localhost:3000" # ?? ==
DISCORD_CLIENT_ID="" # ?? ==
DISCORD_CLIENT_SECRET="" # ?? ==
GITHUB_ID="" # ?? ==
GITHUB_SECRET="" # ?? ==
GITHUB_CLIENT_ID="" # ?? ==
GITHUB_CLIENT_SECRET="" # ?? ==
GITHUB_ACCESS_TOKEN="" # ?? ==
GOOGLE_CLIENT_ID="" # ?? ==
GOOGLE_CLIENT_SECRET="" # ?? ==
33 changes: 9 additions & 24 deletions .eslintignore
Original file line number Diff line number Diff line change
@@ -1,32 +1,17 @@
/node_modules
/.pnp
.pnp.js
# ?? https://eslint.org/docs/latest/use/configure/ignore#the-eslintignore-file

/coverage
# dependencies
/node_modules

# next.js
/.next/
/out/

# production
/build

.DS_Store
*.pem

npm-debug.log*
yarn-debug.log*
yarn-error.log*
.pnpm-debug.log*

pnpm-lock.yaml
package-lock.json
yarn.lock

.env*.local

.vercel

*.tsbuildinfo
# typescript
next-env.d.ts

**/*.js
**/*.cjs
**/*.mjs
# temporary
*.tson
119 changes: 38 additions & 81 deletions .eslintrc.cjs
Original file line number Diff line number Diff line change
@@ -1,97 +1,54 @@
// @ts-expect-error
/** @type {import("eslint").Linter.Config} */
module.exports = {
// @ts-check
const { defineConfig } = require("eslint-define-config");

module.exports = defineConfig({
env: { es2023: true, browser: true, node: true },
settings: {
"import/resolver": {
typescript: { project: ["./tsconfig.json"] },
},
tailwindcss: {
callees: ["cn"],
config: "tailwind.config.ts",
},
},
env: {
node: true,
es2022: true,
browser: true,
"import/resolver": { typescript: { project: ["./tsconfig.json"] } },
tailwindcss: { callees: ["cn"], config: "tailwind.config.ts" }
},
overrides: [
//! ========================================
//! | TypeScript EsLint Configuration File |
//! ========================================
{
// =================================================================
// TypeScript EsLint (Configuration File)
// =================================================================
files: ["*.ts", "*.tsx", "*.mts", "*.cts"],
parser: "@typescript-eslint/parser",
parserOptions: {
project: ["./tsconfig.json"],
ecmaVersion: "latest",
sourceType: "module",
sourceType: "module"
},
extends: ["next/core-web-vitals"],
plugins: ["@tanstack/query"],
extends: [
"next/core-web-vitals",
"plugin:@tanstack/eslint-plugin-query/recommended",
"plugin:@typescript-eslint/recommended-requiring-type-checking"
],
rules: {
// !! Turn Back on When Things are Stable !!
"@next/next/no-html-link-for-pages": "off",
"react/no-unescaped-entities": "off",
"@next/next/no-img-element": "off",
"@tanstack/query/exhaustive-deps": "error",
"@tanstack/query/prefer-query-object-syntax": "error",
"@typescript-eslint/no-explicit-any": "off",
"@typescript-eslint/no-misused-promises": "off",
"@typescript-eslint/no-unnecessary-type-assertion": "off",
"@typescript-eslint/no-unsafe-argument": "off",
"@typescript-eslint/no-unsafe-assignment": "off",
"@typescript-eslint/no-unsafe-call": "off",
"@typescript-eslint/no-unsafe-return": "off",
"@typescript-eslint/require-await": "off",
"react-hooks/exhaustive-deps": "off",
"react/display-name": "off",
},
"react/no-unescaped-entities": "off"
}
},
//! ========================================
//! | JavaScript EsLint Configuration File |
//! ========================================
{
// =================================================================
// JavaScript EsLint (Configuration File)
// =================================================================
files: ["*.js", "*.jsx", "*.mjs", "*.cjs"],
extends: ["next/core-web-vitals"],
},
],
};

//! {
//! "$schema": "https://json.schemastore.org/eslintrc",
//! "extends": [
//! "eslint:recommended",
//! "plugin:@typescript-eslint/recommended",
//! "prettier",
//! "next/core-web-vitals",
//! "plugin:jsx-a11y/recommended"
//! ],
//! "parser": "@typescript-eslint/parser",
//! "plugins": [
//! "@typescript-eslint",
//! "import-helpers",
//! "unused-imports",
//! "jsx-a11y"
//! ],
//! "rules": {
//! "quotes": ["warn", "double"],
//! "semi": ["warn", "always"],
//! "arrow-parens": ["warn", "always"],
//! "@typescript-eslint/no-unused-vars": "off",
//! "unused-imports/no-unused-imports-ts": "warn",
//! "unused-imports/no-unused-vars": "warn",
//! "@typescript-eslint/array-type": "error",
//! "prefer-const": "error",
//! "no-console": [
//! "warn",
//! {
//! "allow": ["warn", "error"]
//! }
//! ],
//! "import-helpers/order-imports": [
//! "warn",
//! {
//! "newlinesBetween": "always",
//! "groups": [
//! "/^react/",
//! "module",
//! "/^~/",
//! ["parent", "sibling", "index"]
//! ],
//! "alphabetize": {
//! "order": "asc",
//! "ignoreCase": true
//! }
//! }
//! ],
//! "@next/next/no-html-link-for-pages": "off"
//! }
//! }
extends: ["next/core-web-vitals"]
}
]
});
50 changes: 50 additions & 0 deletions .eslintrc.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,50 @@
{
"$schema": "https://json.schemastore.org/eslintrc",
"extends": [
"eslint:recommended",
"plugin:@typescript-eslint/recommended",
"prettier",
"next/core-web-vitals",
"plugin:jsx-a11y/recommended"
],
"parser": "@typescript-eslint/parser",
"plugins": [
"@typescript-eslint",
"import-helpers",
"unused-imports",
"jsx-a11y"
],
"rules": {
"quotes": ["warn", "double"],
"semi": ["warn", "always"],
"arrow-parens": ["warn", "always"],
"@typescript-eslint/no-unused-vars": "off",
"unused-imports/no-unused-imports-ts": "warn",
"unused-imports/no-unused-vars": "warn",
"@typescript-eslint/array-type": "error",
"prefer-const": "error",
"no-console": [
"warn",
{
"allow": ["warn", "error"]
}
],
"import-helpers/order-imports": [
"warn",
{
"newlinesBetween": "always",
"groups": [
"/^react/",
"module",
"/^~/",
["parent", "sibling", "index"]
],
"alphabetize": {
"order": "asc",
"ignoreCase": true
}
}
],
"@next/next/no-html-link-for-pages": "off"
}
}
43 changes: 5 additions & 38 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,19 +1,16 @@
# ?? https://docs.github.com/en/get-started/getting-started-with-git/ignoring-files

# dependencies
/node_modules
.pnp.js
/.pnp
.pnp.js

# testing
/coverage

# database
/prisma/db.sqlite
/prisma/db.sqlite-journal

# next.js
/out/
/.next/
next-env.d.ts
/out/

# production
/build
Expand All @@ -26,48 +23,18 @@ next-env.d.ts
npm-debug.log*
yarn-debug.log*
yarn-error.log*
.pnpm-debug.log*

# local env files
.env.temporary
.env*.local
.env

# vercel
.vercel
.turbo

# typescript
*.tsbuildinfo
next-env.d.ts

# postbuild
robots.txt
sitemap.xml
sitemap-*.xml

# supabase
.branches
.temp

# PWA files
**/public/sw.js
**/public/workbox-*.js
**/public/worker-*.js
**/public/sw.js.map
**/public/workbox-*.js.map
**/public/worker-*.js.map

# other
.firebase
*.tw.*

# another
.contentlayer
/pb_data
/playwright-report/
/playwright/.cache/
/test-results/
pb_migrations
pocketbase.exe
pocketbase/pb_data
/drizzle.config.json
Loading

0 comments on commit 6247d5c

Please sign in to comment.