Skip to content

Commit b7a8049

Browse files
committed
Configure project base
1 parent 2a43698 commit b7a8049

29 files changed

+1545
-785
lines changed

.prettierignore

Lines changed: 38 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,38 @@
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+
/.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+
# local env files
29+
.env.local
30+
.env.development.local
31+
.env.test.local
32+
.env.production.local
33+
34+
# vercel
35+
.vercel
36+
37+
# changelog
38+
CHANGELOG.md

components/Account.tsx

Lines changed: 0 additions & 113 deletions
This file was deleted.

components/Auth.tsx

Lines changed: 0 additions & 52 deletions
This file was deleted.

components/List.tsx

Lines changed: 0 additions & 19 deletions
This file was deleted.

components/ListDetail.tsx

Lines changed: 0 additions & 16 deletions
This file was deleted.

components/ListItem.tsx

Lines changed: 0 additions & 18 deletions
This file was deleted.

eslintrc.js

Lines changed: 60 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,60 @@
1+
module.exports = {
2+
env: {
3+
browser: true,
4+
es2021: true,
5+
node: true,
6+
},
7+
plugins: ["@typescript-eslint", "simple-import-sort"],
8+
extends: [
9+
"eslint:recommended",
10+
"next",
11+
"next/core-web-vitals",
12+
"plugin:@typescript-eslint/recommended",
13+
"prettier",
14+
],
15+
rules: {
16+
"no-unused-vars": "off",
17+
"no-console": "warn",
18+
"@typescript-eslint/explicit-module-boundary-types": "off",
19+
20+
// Sort
21+
"simple-import-sort/exports": "warn",
22+
"simple-import-sort/imports": [
23+
"warn",
24+
{
25+
groups: [
26+
// ext library & side effect imports
27+
["^@?\\w", "^\\u0000"],
28+
// {s}css files
29+
["^.+\\.s?css$"],
30+
// Lib and hooks
31+
["^@/lib", "^@/hooks"],
32+
// static data
33+
["^@/data"],
34+
// components
35+
["^@/components"],
36+
// Other imports
37+
["^@/"],
38+
// relative paths up until 3 level
39+
[
40+
"^\\./?$",
41+
"^\\.(?!/?$)",
42+
"^\\.\\./?$",
43+
"^\\.\\.(?!/?$)",
44+
"^\\.\\./\\.\\./?$",
45+
"^\\.\\./\\.\\.(?!/?$)",
46+
"^\\.\\./\\.\\./\\.\\./?$",
47+
"^\\.\\./\\.\\./\\.\\.(?!/?$)",
48+
],
49+
["^@/types"],
50+
// other that didnt fit in
51+
["^"],
52+
],
53+
},
54+
],
55+
},
56+
globals: {
57+
React: true,
58+
JSX: true,
59+
},
60+
};

next-sitemap.js

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
// !STARTERCONF Change the siteUrl
2+
module.exports = {
3+
siteUrl: "https://move2val.com/",
4+
generateRobotsTxt: true,
5+
robotsTxtOptions: {
6+
policies: [{ userAgent: "*", allow: "/" }],
7+
},
8+
};

next.config.js

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
/** @type {import('next').NextConfig} */
2+
module.exports = {
3+
eslint: {
4+
dirs: ["src"],
5+
},
6+
7+
reactStrictMode: true,
8+
9+
// Uncoment to add domain whitelist
10+
// images: {
11+
// domains: [
12+
// 'res.cloudinary.com',
13+
// ],
14+
// },
15+
};

package.json

Lines changed: 14 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,7 @@
11
{
22
"private": true,
3+
"name": "move-to-vlc",
4+
"version": "0.0.1",
35
"scripts": {
46
"dev": "next",
57
"build": "next build",
@@ -14,11 +16,22 @@
1416
},
1517
"devDependencies": {
1618
"@fullhuman/postcss-purgecss": "^4.1.3",
19+
"@tailwindcss/forms": "^0.4.0",
1720
"@types/node": "^12.12.21",
1821
"@types/react": "^17.0.2",
1922
"@types/react-dom": "^17.0.1",
23+
"@types/tailwindcss": "^2.2.4",
24+
"@typescript-eslint/eslint-plugin": "^4.33.0",
25+
"@typescript-eslint/parser": "^4.33.0",
26+
"eslint": "^7.32.0",
27+
"eslint-config-next": "^11.1.3",
28+
"eslint-config-prettier": "^8.3.0",
29+
"eslint-plugin-simple-import-sort": "^7.0.0",
30+
"next-sitemap": "^1.6.203",
31+
"prettier": "^2.5.1",
32+
"prettier-plugin-sort-class-names": "^3.0.1",
2033
"postcss-preset-env": "^7.1.0",
2134
"tailwindcss": "^3.0.7",
22-
"typescript": "4.0"
35+
"typescript": "4.5.4"
2336
}
2437
}

0 commit comments

Comments
 (0)