Skip to content

Commit 5cae394

Browse files
initial setup
0 parents  commit 5cae394

15 files changed

+3221
-0
lines changed

.eslintrc.json

+47
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,47 @@
1+
{
2+
"env": {
3+
"browser": true,
4+
"es2021": true
5+
},
6+
"extends": ["plugin:react/recommended", "airbnb", "airbnb-typescript", "next", "prettier"],
7+
"parser": "@typescript-eslint/parser",
8+
"parserOptions": {
9+
"ecmaFeatures": {
10+
"jsx": true
11+
},
12+
"project": "tsconfig.json",
13+
"ecmaVersion": "latest",
14+
"sourceType": "module"
15+
},
16+
"plugins": ["react", "@typescript-eslint"],
17+
"rules": {
18+
"consistent-return": "off",
19+
"no-param-reassign": "off",
20+
"no-restricted-syntax": "off",
21+
"global-require": "off",
22+
"no-console": "off",
23+
"import/prefer-default-export": "off",
24+
"import/extensions": "off",
25+
"import/no-dynamic-require": "off",
26+
"import/no-extraneous-dependencies": "off",
27+
"@typescript-eslint/no-shadow": "off",
28+
"react/jsx-props-no-spreading": "off",
29+
"react/no-array-index-key": "off",
30+
"react/require-default-props": "off",
31+
"react/jsx-no-useless-fragment": "off",
32+
"react/function-component-definition": "off",
33+
"react/react-in-jsx-scope": "off",
34+
"react/destructuring-assignment": "off"
35+
},
36+
"settings": {
37+
"import/parsers": {
38+
"@typescript-eslint/parser": [".ts", ".tsx"]
39+
},
40+
"import/resolver": {
41+
"typescript": {
42+
"alwaysTryTypes": true,
43+
"project": "./tsconfig.json"
44+
}
45+
}
46+
}
47+
}

.gitignore

+35
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,35 @@
1+
# See https://help.github.com/articles/ignoring-files/ for more about ignoring files.
2+
3+
# dependencies
4+
/node_modules
5+
/.pnp
6+
.pnp.js
7+
8+
# testing
9+
/coverage
10+
11+
# next.js
12+
/.next/
13+
/out/
14+
15+
# production
16+
/build
17+
18+
# misc
19+
.DS_Store
20+
*.pem
21+
22+
# debug
23+
npm-debug.log*
24+
yarn-debug.log*
25+
yarn-error.log*
26+
27+
# local env files
28+
.env*.local
29+
30+
# vercel
31+
.vercel
32+
33+
# typescript
34+
*.tsbuildinfo
35+
next-env.d.ts

.prettierrc.json

+12
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
{
2+
"arrowParens": "avoid",
3+
"semi": true,
4+
"singleQuote": true,
5+
"bracketSpacing": true,
6+
"trailingComma": "none",
7+
"printWidth": 100,
8+
"useTabs": false,
9+
"tabWidth": 2,
10+
"quoteProps": "as-needed",
11+
"jsxSingleQuote": false
12+
}

README.md

+34
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,34 @@
1+
This is a [Next.js](https://nextjs.org/) project bootstrapped with [`create-next-app`](https://github.com/vercel/next.js/tree/canary/packages/create-next-app).
2+
3+
## Getting Started
4+
5+
First, run the development server:
6+
7+
```bash
8+
npm run dev
9+
# or
10+
yarn dev
11+
# or
12+
pnpm dev
13+
```
14+
15+
Open [http://localhost:3000](http://localhost:3000) with your browser to see the result.
16+
17+
You can start editing the page by modifying `app/page.tsx`. The page auto-updates as you edit the file.
18+
19+
This project uses [`next/font`](https://nextjs.org/docs/basic-features/font-optimization) to automatically optimize and load Inter, a custom Google Font.
20+
21+
## Learn More
22+
23+
To learn more about Next.js, take a look at the following resources:
24+
25+
- [Next.js Documentation](https://nextjs.org/docs) - learn about Next.js features and API.
26+
- [Learn Next.js](https://nextjs.org/learn) - an interactive Next.js tutorial.
27+
28+
You can check out [the Next.js GitHub repository](https://github.com/vercel/next.js/) - your feedback and contributions are welcome!
29+
30+
## Deploy on Vercel
31+
32+
The easiest way to deploy your Next.js app is to use the [Vercel Platform](https://vercel.com/new?utm_medium=default-template&filter=next.js&utm_source=create-next-app&utm_campaign=create-next-app-readme) from the creators of Next.js.
33+
34+
Check out our [Next.js deployment documentation](https://nextjs.org/docs/deployment) for more details.

next.config.js

+4
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
/** @type {import('next').NextConfig} */
2+
const nextConfig = {}
3+
4+
module.exports = nextConfig

package.json

+43
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,43 @@
1+
{
2+
"name": "hookla",
3+
"version": "0.1.0",
4+
"private": true,
5+
"scripts": {
6+
"dev": "next dev",
7+
"build": "next build",
8+
"start": "next start",
9+
"lint": "eslint .",
10+
"lint:fix": "eslint . --fix",
11+
"prettier": "prettier --write ."
12+
},
13+
"dependencies": {
14+
"@types/node": "20.2.5",
15+
"@types/react": "18.2.9",
16+
"@types/react-dom": "18.2.4",
17+
"eslint-config-next": "13.4.4",
18+
"next": "13.4.4",
19+
"react": "18.2.0",
20+
"react-dom": "18.2.0",
21+
"typescript": "5.1.3"
22+
},
23+
"devDependencies": {
24+
"eslint": "8.42.0",
25+
"eslint-config-prettier": "^8.8.0",
26+
"eslint-plugin-prettier": "^4.2.1",
27+
"husky": "^8.0.3",
28+
"lint-staged": "^13.2.2",
29+
"prettier": "^2.8.8"
30+
},
31+
"husky": {
32+
"hooks": {
33+
"pre-commit": "lint-staged"
34+
}
35+
},
36+
"lint-staged": {
37+
"*.{js,jsx,ts,tsx,json,css,scss,md}": [
38+
"npm run lint:fix",
39+
"npm run prettier",
40+
"git add"
41+
]
42+
}
43+
}

0 commit comments

Comments
 (0)