Skip to content

Commit d9bf658

Browse files
committed
chore(project): reinitialized Project(nextjs-config 사용)
1 parent f22fe8a commit d9bf658

29 files changed

+1378
-394
lines changed

.eslintrc.json

+36
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,36 @@
1+
{
2+
"plugins": ["@typescript-eslint"],
3+
"extends": [
4+
"next/core-web-vitals",
5+
"plugin:@typescript-eslint/recommended",
6+
"prettier"
7+
],
8+
"rules": {
9+
"@typescript-eslint/no-unused-vars": "error",
10+
"@typescript-eslint/no-explicit-any": "error",
11+
"react/function-component-definition": [
12+
2,
13+
{ "namedComponents": "arrow-function" }
14+
],
15+
"import/prefer-default-export": "off",
16+
"react/require-default-props": "off",
17+
"react/jsx-props-no-spreading": "warn",
18+
"import/order": [
19+
"error",
20+
{
21+
"groups": [
22+
"builtin",
23+
"external",
24+
"internal",
25+
["parent", "sibling"],
26+
"index"
27+
],
28+
"alphabetize": {
29+
"order": "asc",
30+
"caseInsensitive": true
31+
},
32+
"newlines-between": "always"
33+
}
34+
]
35+
}
36+
}

pns-front/.gitignore .gitignore

File renamed without changes.

.husky/pre-commit

+4
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
#!/usr/bin/env sh
2+
. "$(dirname -- "$0")/_/husky.sh"
3+
4+
yarn lint-staged

.prettierrc.json

+13
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
{
2+
"printWidth": 80,
3+
"tabWidth": 2,
4+
"singleQuote": true,
5+
"semi": true,
6+
"bracketSpacing": true,
7+
"bracketSameLine": false,
8+
"jsxSingleQuote": true,
9+
"trailingComma": "all",
10+
"useTabs": false,
11+
"singleAttributePerLine": true,
12+
"endOfLine": "auto"
13+
}

README.md

+1
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,3 @@
11
# PNS
2+
23
반도체 업체 페이지

lint-staged.config.js

+14
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
module.exports = {
2+
// Type check TypeScript files
3+
'**/*.(ts|tsx)': () => 'yarn tsc --noEmit',
4+
5+
// Lint then format TypeScript and JavaScript files
6+
'**/*.(ts|tsx|js)': (filenames) => [
7+
`yarn eslint --fix ${filenames.join(' ')}`,
8+
`yarn prettier --write ${filenames.join(' ')}`,
9+
],
10+
11+
// Format MarkDown and JSON
12+
'**/*.(md|json)': (filenames) =>
13+
`yarn prettier --write ${filenames.join(' ')}`,
14+
};

next.config.js

+29
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,29 @@
1+
/** @type {import('next').NextConfig} */
2+
3+
module.exports = {
4+
compiler: {
5+
// emotion:
6+
// boolean |
7+
// {
8+
// // default is true. It will be disabled when build type is production.
9+
// sourceMap: boolean,
10+
// // default is 'dev-only'.
11+
// autoLabel: 'never' | 'dev-only' | 'always',
12+
// // default is '[local]'.
13+
// // Allowed values: `[local]` `[filename]` and `[dirname]`
14+
// // This option only works when autoLabel is set to 'dev-only' or 'always'.
15+
// // It allows you to define the format of the resulting label.
16+
// // The format is defined via string where variable parts are enclosed in square brackets [].
17+
// // For example labelFormat: "my-classname--[local]", where [local] will be replaced with the name of the variable the result is assigned to.
18+
// labelFormat: string,
19+
// },
20+
reactStrictMode: true,
21+
swcMinify: true,
22+
},
23+
};
24+
25+
module.exports = {
26+
compiler: {
27+
emotion: true,
28+
},
29+
};

pns-front/package.json package.json

+10-3
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
{
2-
"name": "pns-front",
2+
"name": "ambition",
33
"version": "0.1.0",
44
"private": true,
55
"scripts": {
@@ -14,11 +14,18 @@
1414
"react-dom": "18.2.0"
1515
},
1616
"devDependencies": {
17-
"@types/node": "18.7.23",
17+
"@emotion/react": "^11.10.4",
18+
"@emotion/styled": "^11.10.4",
19+
"@types/node": "18.11.0",
1820
"@types/react": "18.0.21",
1921
"@types/react-dom": "18.0.6",
20-
"eslint": "8.24.0",
22+
"@typescript-eslint/eslint-plugin": "^5.40.0",
23+
"eslint": "8.25.0",
2124
"eslint-config-next": "12.3.1",
25+
"eslint-config-prettier": "^8.5.0",
26+
"husky": "^8.0.1",
27+
"lint-staged": "^13.0.3",
28+
"prettier": "^2.7.1",
2229
"typescript": "4.8.4"
2330
}
2431
}

pns-front/.eslintrc.json

-3
This file was deleted.

pns-front/README.md

-34
This file was deleted.

pns-front/next.config.js

-7
This file was deleted.

pns-front/src/pages/_app.tsx

-8
This file was deleted.

pns-front/src/pages/index.tsx

-72
This file was deleted.

pns-front/src/styles/Home.module.css

-129
This file was deleted.

0 commit comments

Comments
 (0)