diff --git a/.eslintrc b/.eslintrc new file mode 100644 index 0000000000..a26af98101 --- /dev/null +++ b/.eslintrc @@ -0,0 +1,19 @@ +{ + "env": { + "browser": true, + "es2021": true + }, + "extends": ["airbnb-base", "plugin:prettier/recommended"], + "parserOptions": { + "sourceType": "module", + "ecmaVersion": "latest" + }, + "rules": { + "prettier/prettier": ["error"], + "max-depth": ["error", 1], + "no-new": "off", + "import/extensions": "off", + "max-lines-per-function": ["error", 15], + "printWidth": 100 + } +} \ No newline at end of file diff --git a/.prettierrc b/.prettierrc new file mode 100644 index 0000000000..92cde390ac --- /dev/null +++ b/.prettierrc @@ -0,0 +1,3 @@ +{ + "singleQuote": true +} \ No newline at end of file diff --git a/docs/README.md b/docs/README.md new file mode 100644 index 0000000000..4e36dd0359 --- /dev/null +++ b/docs/README.md @@ -0,0 +1,13 @@ +## 기능 명세 + +- [x] 구입할 금액을 입력할 수 있어야 한다 + - [x] 금액은 천 단위로 입력해야 한다 + - [x] 금액은 빈값으로 입력할 수 없다 + - [x] 금액은 음수를 입력할 수 없다 +- [x] 구입한 로또 금액만큼 로또를 발급할 수 있어야 한다 + - [x] 발급 후 로또의 번호를 볼 수 없다 + - [x] 로또 한장의 가격은 1000원이다 + - [x] 로또의 번호는 자동으로 정해진다 + - [x] 로또의 번호는 중복없이 1이상 45이하이다 +- [x] 구입한 로또 금액만큼 로또 개수를 확인할 수 있어야 한다 +- [x] 번호 보기 토글 버튼을 클릭해 로또 번호를 볼 수 있어야 한다. \ No newline at end of file diff --git a/index.html b/index.html index 6b7c4f4e23..3b673493bc 100644 --- a/index.html +++ b/index.html @@ -10,8 +10,27 @@
아직 구매하신 로또가 없습니다.
+ +번호보기
+ +