Skip to content

Conversation

@PAVLUXAN
Copy link
Contributor

@PAVLUXAN PAVLUXAN commented Jul 18, 2025

@keksobot keksobot changed the title feat: create function slider-effects Помощь друга Jul 18, 2025
keksobot pushed a commit that referenced this pull request Jul 18, 2025
@keksobot
Copy link
Contributor

♻️ Я собрал ваш пулреквест. Посмотреть можно здесь.

};

const scaleDownImage = () => {
if(scale > SCALE_STEP){

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);

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,

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

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

после двоеточия ожидается пробел

@keksobot keksobot merged commit 171ba8a into htmlacademy-javascript:master Jul 18, 2025
1 check passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants