-
Notifications
You must be signed in to change notification settings - Fork 1
Помощь друга #11
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
Помощь друга #11
Conversation
|
♻️ Я собрал ваш пулреквест. Посмотреть можно здесь. |
| }; | ||
|
|
||
| const scaleDownImage = () => { | ||
| if(scale > SCALE_STEP){ |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
надо найти правило линтера, отслеживающее пробелы - условие отделяем пробелам:
if (scale > SCALE_STEP) {
|
|
||
| inputHashtag.addEventListener('change', handleTagChange); | ||
| smallerButton.addEventListener('click', scaleDownImage); | ||
|
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
много пустых строк. Пустые строки оставляем между объявлениями функций, отделяем крупные логические блоки и после импортов. В остальном, чаще всего пишем плотный код, строка за строкой
| min:0, | ||
| max:1 | ||
| }, | ||
| start : 0, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
пробел перед двоеточием избыточный
start: 0,
| slider.noUiSlider.updateOptions({ | ||
| range:{ | ||
| min:1, | ||
| max:3 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
после двоеточия ожидается пробел
🎓 Помощь друга
💥 https://htmlacademy-javascript.github.io/2607777-kekstagram-2/11/