Skip to content

[10기 이연권] TodoList with CRUD #209

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 5 commits into
base: dalcon10028
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
44 changes: 44 additions & 0 deletions .eslintrc.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,44 @@
module.exports = {
// 코드 포맷을 prettier로 설정
plugins: ['prettier'],
// eslint의 룰을 기본 권장설정으로 설정
extends: ['eslint:recommended', 'plugin:prettier/recommended'],
// 코드를 해석하는 parser에 대한 설정
parserOptions: {
// 자바스크립트 버전, 7은 ECMA2016
ecmaVersion: 7,
// 모듈 export를 위해 import, export를 사용 가능여부를 설정, script는 사용불가
sourceType: 'module',
// jsx 허용을 설정, back-end 설정이기 때문에 사용 안함
ecmaFeatures: {
jsx: false,
},
},
// linter가 파일을 분석할 때, 미리 정의된 전역변수에 무엇이 있는지 명시하는 속성
env: {
// 브라우저의 document와 같은 객체 사용 여부
browser: true,
// node.js에서 console과 같은 전역변수 사용 여부
node: true,
},
// ESLint가 무시할 디렉토리, 파일을 설정
ignorePatterns: ['node_modules/'],
// ESLint 룰을 설정
rules: {
'no-console': 'off',
'prettier/prettier': [
'error',
{
singleQuote: true,
semi: true,
useTabs: false,
tabWidth: 2,
trailingComma: 'all',
printWidth: 80,
bracketSpacing: true,
arrowParens: 'avoid',
endOfLine: 'auto',
},
],
},
};
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
node_modules
6 changes: 6 additions & 0 deletions .prettierrc
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
{
"trailingComma": "es5",
"tabWidth": 2,
"semi": true,
"singleQuote": true
}
29 changes: 2 additions & 27 deletions index.html
Original file line number Diff line number Diff line change
Expand Up @@ -7,32 +7,7 @@
<link rel="stylesheet" href="./src/css/style.css" />
</head>
<body>
<div class="todoapp">
<h1>TODOS</h1>
<input
id="new-todo-title"
class="new-todo"
placeholder="할일을 추가해주세요"
autofocus
/>
<main>
<input class="toggle-all" type="checkbox" />
<ul id="todo-list" class="todo-list"></ul>
<div class="count-container">
<span class="todo-count">총 <strong>0</strong> 개</span>
<ul class="filters">
<li>
<a class="all selected" href="#">전체보기</a>
</li>
<li>
<a class="active" href="#active">해야할 일</a>
</li>
<li>
<a class="completed" href="#completed">완료한 일</a>
</li>
</ul>
</div>
</main>
</div>
<div class="todoapp"></div>
<script type="module" src="./src/main.js"></script>
</body>
</html>
Loading