Skip to content

Commit 85514a9

Browse files
Merge pull request #224 from Heedong0924/React-김동희-sprint5
[김동희] Sprint5
2 parents 66f3ba6 + 81fc34d commit 85514a9

74 files changed

Lines changed: 7067 additions & 16486 deletions

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

.gitignore

Lines changed: 21 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -1,23 +1,24 @@
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-
# production
12-
/build
13-
14-
# misc
15-
.DS_Store
16-
.env.local
17-
.env.development.local
18-
.env.test.local
19-
.env.production.local
20-
1+
# Logs
2+
logs
3+
*.log
214
npm-debug.log*
225
yarn-debug.log*
236
yarn-error.log*
7+
pnpm-debug.log*
8+
lerna-debug.log*
9+
10+
node_modules
11+
dist
12+
dist-ssr
13+
*.local
14+
15+
# Editor directories and files
16+
.vscode/*
17+
!.vscode/extensions.json
18+
.idea
19+
.DS_Store
20+
*.suo
21+
*.ntvs*
22+
*.njsproj
23+
*.sln
24+
*.sw?

.prettierrc.json

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
{
2+
"printWidth": 80,
3+
"tabWidth": 2,
4+
"useTabs": false,
5+
"semi": true,
6+
"singleQuote": true,
7+
"trailingComma": "es5",
8+
"bracketSpacing": true,
9+
"bracketSameLine": false,
10+
"arrowParens": "always",
11+
"endOfLine": "lf"
12+
}

.stylelintrc.json

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
{
2+
"extends": ["stylelint-config-standard"],
3+
"rules": {
4+
"indentation": 2,
5+
"color-named": "never",
6+
"declaration-block-single-line-max-declarations": 1,
7+
"max-empty-lines": 1
8+
}
9+
}

eslint.config.js

Lines changed: 107 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,107 @@
1+
import globals from 'globals';
2+
import pluginReact from 'eslint-plugin-react';
3+
import pluginReactHooks from 'eslint-plugin-react-hooks';
4+
import pluginJsxA11y from 'eslint-plugin-jsx-a11y';
5+
import pluginPrettier from 'eslint-plugin-prettier';
6+
import pluginImport from 'eslint-plugin-import';
7+
import reactRefresh from 'eslint-plugin-react-refresh';
8+
import js from '@eslint/js';
9+
10+
export default [
11+
js.configs.recommended,
12+
13+
{
14+
ignores: ['dist/', 'node_modules/', '**/*.config.js'],
15+
},
16+
17+
{
18+
files: ['**/*.{js,jsx,mjs,cjs}'],
19+
languageOptions: {
20+
parserOptions: {
21+
ecmaFeatures: {
22+
jsx: true,
23+
},
24+
ecmaVersion: 'latest',
25+
sourceType: 'module',
26+
},
27+
globals: {
28+
...globals.browser,
29+
...globals.node,
30+
},
31+
},
32+
plugins: {
33+
react: pluginReact,
34+
'react-hooks': pluginReactHooks,
35+
'jsx-a11y': pluginJsxA11y,
36+
prettier: pluginPrettier,
37+
import: pluginImport,
38+
'react-refresh': reactRefresh,
39+
},
40+
rules: {
41+
...pluginReact.configs.recommended.rules,
42+
...pluginReactHooks.configs.recommended.rules,
43+
'react/react-in-jsx-scope': 'off',
44+
'react/prop-types': 'warn',
45+
'react/jsx-uses-react': 'off',
46+
'react/prop-types': 'off',
47+
48+
...pluginJsxA11y.configs.recommended.rules,
49+
50+
'import/order': [
51+
'warn',
52+
{
53+
groups: [
54+
'builtin',
55+
'external',
56+
'internal',
57+
['parent', 'sibling', 'index'],
58+
'object',
59+
'type',
60+
],
61+
'newlines-between': 'always',
62+
alphabetize: {
63+
order: 'asc',
64+
caseInsensitive: true,
65+
},
66+
},
67+
],
68+
'import/no-unresolved': 'error',
69+
'import/named': 'error',
70+
'import/namespace': 'error',
71+
'import/default': 'error',
72+
'import/export': 'error',
73+
74+
'prettier/prettier': [
75+
'error',
76+
{
77+
endOfLine: 'lf',
78+
tabWidth: 2,
79+
semi: true,
80+
singleQuote: true,
81+
printWidth: 80,
82+
trailingComma: 'es5',
83+
arrowParens: 'always',
84+
},
85+
],
86+
87+
'react-refresh/only-export-components': [
88+
'warn',
89+
{ allowConstantExport: true },
90+
],
91+
92+
'no-unused-vars': 'warn',
93+
'no-console': ['warn', { allow: ['warn', 'error'] }],
94+
'prefer-const': 'error',
95+
},
96+
settings: {
97+
react: {
98+
version: 'detect',
99+
},
100+
'import/resolver': {
101+
node: {
102+
extensions: ['.js', '.jsx'],
103+
},
104+
},
105+
},
106+
},
107+
];

index.html

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
<!DOCTYPE html>
2+
<html lang="ko">
3+
<head>
4+
<meta charset="UTF-8" />
5+
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
6+
<title></title>
7+
</head>
8+
<body>
9+
<div id="root"></div>
10+
<script type="module" src="/src/main.jsx"></script>
11+
</body>
12+
</html>

0 commit comments

Comments
 (0)