Skip to content

Commit a49ec2c

Browse files
authored
Initial commit
0 parents  commit a49ec2c

23 files changed

+7825
-0
lines changed

.eslintignore

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
.next
2+
node_modules
3+
docs
4+
*.config.js
5+
.github

.eslintrc.json

Lines changed: 72 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,72 @@
1+
{
2+
"root": true,
3+
"env": {
4+
"browser": true,
5+
"commonjs": true,
6+
"es6": true,
7+
"node": true,
8+
"es2021": true
9+
},
10+
"extends": [
11+
"next/core-web-vitals",
12+
"airbnb",
13+
"prettier",
14+
"plugin:react/jsx-runtime"
15+
],
16+
"ignorePatterns": ["node_modules/", ".next/"],
17+
18+
"rules": {
19+
"arrow-body-style": 0,
20+
"no-console": "off",
21+
"class-methods-use-this": 0,
22+
"import/imports-first": 0,
23+
"import/newline-after-import": 0,
24+
"import/no-dynamic-require": 0,
25+
"import/no-named-as-default": 0,
26+
"import/no-webpack-loader-syntax": 0,
27+
"import/prefer-default-export": 0,
28+
"max-len": 0,
29+
"newline-per-chained-call": 0,
30+
"no-confusing-arrow": 0,
31+
"no-unused-vars": 2,
32+
"no-use-before-define": 0,
33+
"prefer-template": 2,
34+
"react/destructuring-assignment": 0,
35+
"react/require-default-props": 0,
36+
"react/require-extension": 0,
37+
"react/self-closing-comp": 0,
38+
"react/sort-comp": 0,
39+
"react/prop-types": 0,
40+
"react/jsx-closing-tag-location": 0,
41+
"react/jsx-first-prop-new-line": [2, "multiline"],
42+
"react/jsx-filename-extension": [1, { "extensions": [".js", ".jsx"] }],
43+
"react/jsx-props-no-spreading": 0,
44+
"react/jsx-no-target-blank": 0,
45+
"react/react-in-jsx-scope": 0,
46+
"react/jsx-uses-vars": 2,
47+
"react/function-component-definition": 0,
48+
"react/button-has-type": 0,
49+
"jsx-a11y/aria-props": 2,
50+
"jsx-a11y/heading-has-content": 0,
51+
"jsx-a11y/label-has-associated-control": [
52+
2,
53+
{
54+
"controlComponents": ["Input"]
55+
}
56+
],
57+
"jsx-a11y/label-has-for": 0,
58+
"jsx-a11y/mouse-events-have-key-events": 2,
59+
"jsx-a11y/role-has-required-aria-props": 2,
60+
"jsx-a11y/role-supports-aria-props": 2,
61+
"react-hooks/rules-of-hooks": 0,
62+
"import/no-unresolved": [
63+
2,
64+
{ "ignore": ["^@/", "^~/", "^\\.", "^\\.\\."] }
65+
],
66+
"import/extensions": [
67+
2,
68+
// "ignorePackages",
69+
{ "js": "never", "jsx": "never", "mjs": "never" }
70+
]
71+
}
72+
}

.github/workflows/eslint.yml

Lines changed: 45 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,45 @@
1+
# This workflow uses actions that are not certified by GitHub.
2+
# They are provided by a third-party and are governed by
3+
# separate terms of service, privacy policy, and support
4+
# documentation.
5+
# ESLint is a tool for identifying and reporting on patterns
6+
# found in ECMAScript/JavaScript code.
7+
# More details at https://github.com/eslint/eslint
8+
# and https://eslint.org
9+
10+
name: ESLint
11+
12+
on:
13+
push:
14+
branches:
15+
- main
16+
- dev
17+
18+
pull_request:
19+
types: [opened, synchronize, reopened]
20+
21+
issue_comment:
22+
types: [created, edited, deleted]
23+
24+
jobs:
25+
eslint:
26+
name: Run eslint scanning
27+
runs-on: ubuntu-latest
28+
permissions:
29+
contents: read
30+
security-events: write
31+
actions: read # only required for a private repository by github/codeql-action/upload-sarif to get the Action run status
32+
steps:
33+
- name: Checkout code
34+
uses: actions/checkout@v3
35+
36+
- name: Set up Node.js
37+
uses: actions/setup-node@v3
38+
with:
39+
node-version: 21.4.0
40+
41+
- name: Install dependencies
42+
run: npm install
43+
44+
- name: Run ESLint
45+
run: npm run lint

.gitignore

Lines changed: 37 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,37 @@
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+
.yarn/install-state.gz
8+
9+
# testing
10+
/coverage
11+
12+
# next.js
13+
/.next/
14+
/out/
15+
16+
# production
17+
/build
18+
19+
# misc
20+
.DS_Store
21+
*.pem
22+
23+
# debug
24+
npm-debug.log*
25+
yarn-debug.log*
26+
yarn-error.log*
27+
28+
# env files
29+
.env*.local
30+
.env
31+
32+
# vercel
33+
.vercel
34+
35+
# typescript
36+
*.tsbuildinfo
37+
next-env.d.ts

.husky/pre-commit

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
pnpm lint
2+
pnpm exec lint-staged

.prettierignore

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
node_modules
2+
.next
3+
public

.prettierrc.json

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
{
2+
"tabWidth": 2,
3+
"useTabs": false,
4+
"printWidth": 80,
5+
"semi": true,
6+
"singleQuote": false,
7+
"trailingComma": "all",
8+
"bracketSameLine": false
9+
}

README.md

Lines changed: 36 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,36 @@
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+
# or
14+
bun dev
15+
```
16+
17+
Open [http://localhost:3000](http://localhost:3000) with your browser to see the result.
18+
19+
You can start editing the page by modifying `app/page.js`. The page auto-updates as you edit the file.
20+
21+
This project uses [`next/font`](https://nextjs.org/docs/basic-features/font-optimization) to automatically optimize and load Inter, a custom Google Font.
22+
23+
## Learn More
24+
25+
To learn more about Next.js, take a look at the following resources:
26+
27+
- [Next.js Documentation](https://nextjs.org/docs) - learn about Next.js features and API.
28+
- [Learn Next.js](https://nextjs.org/learn) - an interactive Next.js tutorial.
29+
30+
You can check out [the Next.js GitHub repository](https://github.com/vercel/next.js/) - your feedback and contributions are welcome!
31+
32+
## Deploy on Vercel
33+
34+
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.
35+
36+
Check out our [Next.js deployment documentation](https://nextjs.org/docs/deployment) for more details.

jsconfig.json

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
{
2+
"compilerOptions": {
3+
"paths": {
4+
"@/*": ["./src/*"]
5+
}
6+
}
7+
}

next.config.js

Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
const nextConfig = {};
2+
3+
const withPWA =
4+
process.env.NODE_ENV === "production"
5+
? require("next-pwa")({
6+
dest: "public",
7+
})
8+
: {};
9+
10+
module.exports = {
11+
...nextConfig,
12+
...withPWA,
13+
images: {
14+
remotePatterns: [
15+
{
16+
protocol: "https",
17+
hostname: "**",
18+
pathname: "**",
19+
},
20+
],
21+
},
22+
};

package.json

Lines changed: 36 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,36 @@
1+
{
2+
"name": "template-sahin",
3+
"version": "0.1.0",
4+
"private": true,
5+
"scripts": {
6+
"dev": "next dev",
7+
"build": "next build",
8+
"start": "next start",
9+
"lint": "next lint",
10+
"pretty": "prettier --write .",
11+
"prepare": "husky"
12+
},
13+
"dependencies": {
14+
"eslint-config-airbnb": "^19.0.4",
15+
"next": "14.1.0",
16+
"next-pwa": "^5.6.0",
17+
"react": "^18",
18+
"react-dom": "^18",
19+
"sass": "^1.71.1"
20+
},
21+
"devDependencies": {
22+
"@types/react": "18.3.2",
23+
"autoprefixer": "^10.0.1",
24+
"eslint": "^8",
25+
"eslint-config-next": "14.1.0",
26+
"eslint-config-prettier": "^9.1.0",
27+
"husky": "^9.0.11",
28+
"lint-staged": "^15.2.2",
29+
"postcss": "^8",
30+
"prettier": "3.2.5",
31+
"tailwindcss": "^3.3.0"
32+
},
33+
"lint-staged": {
34+
"**/*": "prettier --write --ignore-unknown"
35+
}
36+
}

0 commit comments

Comments
 (0)