From c83186eef3a507da26caefee8fb31e5dddf0d5e1 Mon Sep 17 00:00:00 2001 From: Nikolay Gagarinov Date: Fri, 11 Sep 2026 17:59:43 +0500 Subject: [PATCH] =?UTF-8?q?fix(linting):=20FEEDBACK-443=20=D0=B2=D0=B5?= =?UTF-8?q?=D1=80=D0=BD=D1=83=D1=82=D1=8C=20=D0=BD=D0=B5=D0=B0=D0=BA=D0=BA?= =?UTF-8?q?=D1=83=D1=80=D0=B0=D1=82=D0=BD=D1=8B=D0=B5=20=D0=BF=D1=80=D0=B8?= =?UTF-8?q?=D0=BC=D0=B5=D1=80=D1=8B=20=D0=B2=20=D1=83=D1=80=D0=BE=D0=BA=20?= =?UTF-8?q?=D0=B8=20=D0=B7=D0=B0=D0=B4=D0=B0=D0=BD=D0=B8=D0=B5?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Прогон форматтера привёл к стилю оба блока урока, и он показывал два одинаковых примера под словами «вот такой код» и «форматтер сам превратит в такой». В задании вышло хуже: условие просит исправить пробелы вокруг операторов, а код под ним прогон уже исправил. Выполнить такое задание нельзя. Неаккуратные версии возвращены во всех трёх локалях, блоки помечены как антипримеры (`docs/markdown.md` кита, § «Антипример идёт в ```text»), поэтому следующий прогон их не тронет. Co-Authored-By: Claude Opus 5 (1M context) --- modules/20-arithmetics/80-linting/en/EXERCISE.md | 6 ++++-- modules/20-arithmetics/80-linting/en/README.md | 6 ++++-- modules/20-arithmetics/80-linting/es/EXERCISE.md | 6 ++++-- modules/20-arithmetics/80-linting/es/README.md | 6 ++++-- modules/20-arithmetics/80-linting/ru/EXERCISE.md | 6 ++++-- modules/20-arithmetics/80-linting/ru/README.md | 6 ++++-- 6 files changed, 24 insertions(+), 12 deletions(-) diff --git a/modules/20-arithmetics/80-linting/en/EXERCISE.md b/modules/20-arithmetics/80-linting/en/EXERCISE.md index 845d48ff..abfdb6cf 100644 --- a/modules/20-arithmetics/80-linting/en/EXERCISE.md +++ b/modules/20-arithmetics/80-linting/en/EXERCISE.md @@ -1,7 +1,9 @@ You received some code from a colleague — it works correctly, but it violates the formatting standard. Fix the spaces around the operators without changing the logic: -```javascript -console.log(5 ** 2 - 3 * 7); + + +```text +console.log( (5 **2)-(3* 7)); ``` The result must stay `4`. diff --git a/modules/20-arithmetics/80-linting/en/README.md b/modules/20-arithmetics/80-linting/en/README.md index 6797b1d7..fa191d2a 100644 --- a/modules/20-arithmetics/80-linting/en/README.md +++ b/modules/20-arithmetics/80-linting/en/README.md @@ -42,8 +42,10 @@ Code Linter Result Placing spaces and indentation is a separate task, and the linter does not solve it. That is what a formatter is for, and in oxc it is [oxfmt](https://oxc.rs/docs/guide/usage/formatter.html). This code: -```javascript -const result = 1 + 3; + + +```text +const result = 1+ 3; ``` The formatter turns into this one: diff --git a/modules/20-arithmetics/80-linting/es/EXERCISE.md b/modules/20-arithmetics/80-linting/es/EXERCISE.md index 191ad2fc..93027ff4 100644 --- a/modules/20-arithmetics/80-linting/es/EXERCISE.md +++ b/modules/20-arithmetics/80-linting/es/EXERCISE.md @@ -1,7 +1,9 @@ Recibiste código de un colega: funciona correctamente, pero viola el estándar de formato. Corrige los espacios alrededor de los operadores sin cambiar la lógica: -```javascript -console.log(5 ** 2 - 3 * 7); + + +```text +console.log( (5 **2)-(3* 7)); ``` El resultado debe seguir siendo `4`. diff --git a/modules/20-arithmetics/80-linting/es/README.md b/modules/20-arithmetics/80-linting/es/README.md index ae0345c2..0c26cdd0 100644 --- a/modules/20-arithmetics/80-linting/es/README.md +++ b/modules/20-arithmetics/80-linting/es/README.md @@ -42,8 +42,10 @@ Código Linter Resultado La colocación de espacios e indentación es una tarea aparte, y el linter no la resuelve. Para eso está el formateador, que en oxc es [oxfmt](https://oxc.rs/docs/guide/usage/formatter.html). Este código: -```javascript -const result = 1 + 3; + + +```text +const result = 1+ 3; ``` El formateador lo convierte en este otro: diff --git a/modules/20-arithmetics/80-linting/ru/EXERCISE.md b/modules/20-arithmetics/80-linting/ru/EXERCISE.md index 92cd479e..80fd7dda 100644 --- a/modules/20-arithmetics/80-linting/ru/EXERCISE.md +++ b/modules/20-arithmetics/80-linting/ru/EXERCISE.md @@ -1,7 +1,9 @@ Вы получили код от коллеги — он работает правильно, но нарушает стандарт оформления. Исправьте пробелы вокруг операторов, не меняя логику: -```javascript -console.log(5 ** 2 - 3 * 7); + + +```text +console.log( (5 **2)-(3* 7)); ``` Результат должен остаться `4`. diff --git a/modules/20-arithmetics/80-linting/ru/README.md b/modules/20-arithmetics/80-linting/ru/README.md index fd4621bc..e2597f74 100644 --- a/modules/20-arithmetics/80-linting/ru/README.md +++ b/modules/20-arithmetics/80-linting/ru/README.md @@ -42,8 +42,10 @@ const result = 1 + 3; Расстановка пробелов и отступов это отдельная задача, и линтер её не решает. Для неё есть форматтер, у oxlint это [oxfmt](https://oxc.rs/docs/guide/usage/formatter.html). Вот такой код: -```javascript -const result = 1 + 3; + + +```text +const result = 1+ 3; ``` Форматтер сам превратит в такой: