Skip to content

chore(linters): update stylelint, enable linters in github actions#39

Open
baevm wants to merge 2 commits intoconsta-design-system:devfrom
baevm:update-and-enable-linters
Open

chore(linters): update stylelint, enable linters in github actions#39
baevm wants to merge 2 commits intoconsta-design-system:devfrom
baevm:update-and-enable-linters

Conversation

@baevm
Copy link
Copy Markdown
Contributor

@baevm baevm commented Apr 13, 2026

Описание изменений

Обновил stylelint и prettier. Добавил запуск линтеров в CI. Исправил линт ошибки. Конфиг для stylelint использовал из основного репозитория

Чек-лист

  • PR: направлен в правильную ветку
  • PR: назначен исполнитель PR и указаны нужные лейблы
  • PR: проверен diff, ничего лишнего в PR не попало
  • PR: прилинкованы затронутые issue и связанные PR
  • PR: есть описание изменений
  • JS: нет варнингов и ошибок в консоли браузера
  • Тесты: новый функционал и исправленные баги покрыты тестами
  • Документация: отражены все изменения в API компонентов и описаны важные особенности реализации или использования
  • Сторибук: для компонентов написаны или обновлены stories
  • Верстка: используются переменные
  • Верстка: проверена с разным количеством контента

Опционально

  • Доработки: заведены задачи для дальнейшей работы, если что-то решено не править в текущем пулл-реквесте
  • Коммиты: проименованы в соответствии с правилами

@baevm baevm requested a review from alyonurchick1 as a code owner April 13, 2026 14:58
Copilot AI review requested due to automatic review settings April 13, 2026 14:58
@baevm baevm requested a review from gizeasy as a code owner April 13, 2026 14:58
Copy link
Copy Markdown

Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull request overview

This PR updates the frontend linting toolchain (Stylelint/Prettier + related ESLint packages), aligns Stylelint configuration with the new versions, and wires linting/typecheck into GitHub Actions CI. It also includes formatting-only code/CSS changes to satisfy the updated linters.

Changes:

  • Upgraded Stylelint/Prettier and related lint deps; adjusted .stylelintrc.js rules for the new Stylelint baseline.
  • Added non-fixing and fixing variants for JS/CSS lint scripts in package.json.
  • Updated CI workflow to run TypeScript check, unit tests, and linting; applied formatting fixes across TS/CSS/MDX.

Reviewed changes

Copilot reviewed 17 out of 19 changed files in this pull request and generated 1 comment.

Show a summary per file
File Description
yarn.lock Regenerated lockfile for updated linting/formatting dependencies.
package.json Bumped lint/format deps; split lint scripts into check vs fix variants.
.stylelintrc.js Updated/relaxed rules to be compatible with newer Stylelint + project CSS patterns.
.github/workflows/tests.yml CI now runs TS check, unit tests, and linting (in addition to dependency install changes).
src/utils/type-guards.ts Minor TS cleanup: removed unused generic on isFunction.
src/utils/object/get/get.ts Formatting-only indentation fix.
src/utils/array.ts Formatting-only change for groupBy implementation.
src/utils/__tests__/array.test.ts TS type expression formatting fix.
src/components/Pagination/Pagination.tsx Removed unused setter variables from useAtom destructuring.
src/components/Toolbar/Toolbar.css Stylelint-driven formatting changes to declarations.
src/components/TextFieldCell/TextFieldCell.css Reordered/adjusted declarations per lint rules.
src/components/Table/TableRow/TableRow.css Reformatted complex color-mix(...) custom property values.
src/components/Table/TableResizers/TableResizers.css Reformatted calc(...) custom properties/declarations.
src/components/Table/TableData/TableData.css Reformatted complex color-mix(...) custom property values.
src/components/Table/TableCell/TableCell.css Reformatted multi-value box-shadow declaration.
src/components/Table/helpers.ts Added parentheses for clarity in nullish-coalescing expression.
src/components/DataCell/DataCell.css Removed blank line; added rule-disable comment for deprecated word-break value.
src/components/Collapse/__stand__/examples/CollapseExampleFullscreenContainer/CollapseExampleFullscreenContainer.css Replaced grid-gap with gap; reformatted calc(...) expression.
src/components/Collapse/__stand__/Collapse.dev.stand.mdx Kept MDX snippet consistent with the updated CSS formatting (gap, calc(...)).

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

@@ -35,5 +35,9 @@ jobs:
${{ runner.os }}-yarn-
- name: Установка зависимостей
run: yarn add "install-peers-cli@https://github.com/evless/install-peers-cli#fix-yarn-policies" && yarn --frozen-lockfile
Copy link

Copilot AI Apr 13, 2026

Choose a reason for hiding this comment

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

The workflow installs dependencies by running yarn add "install-peers-cli@...#fix-yarn-policies" inside CI. This mutates package.json/yarn.lock during the job and means CI is no longer validating the dependency graph that’s actually committed (and it adds extra network/registry variability). Prefer pinning the required install-peers-cli source in package.json (e.g., update the dependency to the GitHub URL or a published version) and then using a plain yarn --frozen-lockfile here.

Suggested change
run: yarn add "install-peers-cli@https://github.com/evless/install-peers-cli#fix-yarn-policies" && yarn --frozen-lockfile
run: yarn --frozen-lockfile

Copilot uses AI. Check for mistakes.
@baevm baevm changed the title chore(linters): update styleint, enable linters in github actions chore(linters): update stylelint, enable linters in github actions Apr 18, 2026
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.

2 participants