Skip to content

Commit

Permalink
feat: initialize project
Browse files Browse the repository at this point in the history
  • Loading branch information
mateuszaliyev committed May 17, 2024
0 parents commit 1eee4a9
Show file tree
Hide file tree
Showing 32 changed files with 4,916 additions and 0 deletions.
4 changes: 4 additions & 0 deletions .env.example
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
NEXT_PUBLIC_BASE_URL=https://example.com
NEXT_PUBLIC_EMAIL_ADDRESS=[email protected]
NEXT_PUBLIC_GITHUB_URL=https://github.com/example
NEXT_PUBLIC_LINKEDIN_URL=https://linkedin.com/in/example
36 changes: 36 additions & 0 deletions .eslintignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,36 @@
# See https://help.github.com/articles/ignoring-files/ for more about ignoring files.

# dependencies
/node_modules
/.pnp
.pnp.js

# testing
/coverage

# next.js
/.next/
/out/

# production
/build

# misc
.DS_Store
*.pem

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

# local env files
.env*.local

# vercel
.vercel

# typescript
*.tsbuildinfo
next-env.d.ts
28 changes: 28 additions & 0 deletions .eslintrc.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
/** @type {import("eslint").Linter.Config} */
const eslintConfig = {
extends: [
"next/core-web-vitals",
"plugin:@typescript-eslint/recommended-type-checked",
],
parser: "@typescript-eslint/parser",
parserOptions: {
project: true,
},
plugins: ["@typescript-eslint"],
rules: {
"@typescript-eslint/consistent-type-imports": [
"warn",
{
disallowTypeAnnotations: false,
fixStyle: "inline-type-imports",
prefer: "type-imports",
},
],
"@typescript-eslint/no-unused-vars": [
"warn",
{ argsIgnorePattern: "^_", varsIgnorePattern: "^_" },
],
},
};

module.exports = eslintConfig;
36 changes: 36 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,36 @@
# See https://help.github.com/articles/ignoring-files/ for more about ignoring files.

# dependencies
/node_modules
/.pnp
.pnp.js

# testing
/coverage

# next.js
/.next/
/out/

# production
/build

# misc
.DS_Store
*.pem

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

# local env files
.env*.local

# vercel
.vercel

# typescript
*.tsbuildinfo
next-env.d.ts
36 changes: 36 additions & 0 deletions .prettierignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,36 @@
# See https://help.github.com/articles/ignoring-files/ for more about ignoring files.

# dependencies
/node_modules
/.pnp
.pnp.js

# testing
/coverage

# next.js
/.next/
/out/

# production
/build

# misc
.DS_Store
*.pem

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

# local env files
.env*.local

# vercel
.vercel

# typescript
*.tsbuildinfo
next-env.d.ts
25 changes: 25 additions & 0 deletions next.config.mjs
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
import { environment } from "./src/environment.mjs";

/** @type {import('next').NextConfig} */
const nextConfig = {
/* eslint-disable-next-line @typescript-eslint/require-await */
redirects: async () => [
{
destination: `https://github.com/skni-kod/spacetag`,
permanent: false,
source: "/github/spacetag",
},
{
destination: `${environment.NEXT_PUBLIC_GITHUB_URL}/:path*`,
permanent: false,
source: "/github/:path*",
},
{
destination: environment.NEXT_PUBLIC_LINKEDIN_URL,
permanent: false,
source: "/linkedin",
},
],
};

export default nextConfig;
37 changes: 37 additions & 0 deletions package.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,37 @@
{
"name": "mata.li",
"scripts": {
"build": "next build",
"dev": "next dev",
"format": "prettier --config ./prettier.config.mjs --write \"**/*.{css,js,md,mjs,ts,tsx}\"",
"lint": "next lint",
"start": "next start"
},
"dependencies": {
"@t3-oss/env-nextjs": "0.10.1",
"cva": "1.0.0-beta.1",
"next": "14.2.3",
"react": "18.3.1",
"react-dom": "18.3.1",
"zod": "3.23.8"
},
"devDependencies": {
"@ianvs/prettier-plugin-sort-imports": "4.2.1",
"@tailwindcss/typography": "0.5.13",
"@types/eslint": "8.56.10",
"@types/node": "20.12.12",
"@types/react": "18.3.2",
"@types/react-dom": "18.3.0",
"@typescript-eslint/eslint-plugin": "7.9.0",
"@typescript-eslint/parser": "7.9.0",
"autoprefixer": "10.4.19",
"eslint": "8.56.0",
"eslint-config-next": "14.2.3",
"postcss": "8.4.38",
"prettier": "3.2.5",
"prettier-plugin-tailwindcss": "0.5.14",
"tailwindcss": "3.4.3",
"typescript": "5.4.5"
},
"private": true
}
Loading

0 comments on commit 1eee4a9

Please sign in to comment.