Skip to content

Conversation

@avivkeller
Copy link
Member

While doing #7937, I realized that our .lintstagedrc.json files were not performing automatic stylelint fixes when possible

Copilot AI review requested due to automatic review settings July 3, 2025 01:06
@avivkeller avivkeller requested a review from a team as a code owner July 3, 2025 01:06
@vercel
Copy link

vercel bot commented Jul 3, 2025

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Updated (UTC)
nodejs-org ✅ Ready (Inspect) Visit Preview Jul 3, 2025 1:06am

Copy link
Contributor

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 ensures that CSS files are automatically fixed by Stylelint when staged.

  • Added --fix flag to Stylelint commands in lint-staged configs.
  • Updated both packages/ui-components and apps/site configurations.

Reviewed Changes

Copilot reviewed 2 out of 2 changed files in this pull request and generated no comments.

File Description
packages/ui-components/.lintstagedrc.json Add --fix to Stylelint for CSS files
apps/site/.lintstagedrc.json Add --fix to Stylelint for CSS files
Comments suppressed due to low confidence (2)

packages/ui-components/.lintstagedrc.json:3

  • [nitpick] The CSS lint-staged command is duplicated in multiple packages; consider centralizing this into a shared root configuration to reduce duplication and simplify future updates.
  "**/*.css": ["stylelint --allow-empty-input --fix", "prettier --write"],

@codecov
Copy link

codecov bot commented Jul 3, 2025

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 75.43%. Comparing base (a591c0c) to head (8d0fdf1).
Report is 6 commits behind head on main.

✅ All tests successful. No failed tests found.

Additional details and impacted files
@@            Coverage Diff             @@
##             main    #7938      +/-   ##
==========================================
+ Coverage   75.40%   75.43%   +0.03%     
==========================================
  Files          96       96              
  Lines        8354     8354              
  Branches      219      219              
==========================================
+ Hits         6299     6302       +3     
+ Misses       2053     2050       -3     
  Partials        2        2              

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

@ovflowd
Copy link
Member

ovflowd commented Jul 3, 2025

Fast-tracking as hot-fix! cc @nodejs/nodejs-website

@ovflowd ovflowd added fast-track Fast Tracking PRs github_actions:pull-request Trigger Pull Request Checks labels Jul 3, 2025
@github-actions github-actions bot removed the github_actions:pull-request Trigger Pull Request Checks label Jul 3, 2025
@github-actions
Copy link
Contributor

github-actions bot commented Jul 3, 2025

Lighthouse Results

URL Performance Accessibility Best Practices SEO Report
/en 🟢 100 🟢 100 🟢 100 🟢 91 🔗
/en/about 🟢 100 🟢 96 🟢 100 🟠 82 🔗
/en/about/previous-releases 🟢 100 🟢 96 🟢 100 🟠 83 🔗
/en/download 🟢 98 🟢 100 🟢 100 🟢 91 🔗
/en/blog 🟢 100 🟢 100 🟢 96 🟢 92 🔗

@ovflowd ovflowd enabled auto-merge July 3, 2025 10:38
@ovflowd ovflowd disabled auto-merge July 3, 2025 10:38
@ovflowd ovflowd merged commit cc5c262 into main Jul 3, 2025
24 checks passed
@ovflowd ovflowd deleted the fix/lintstaged branch July 3, 2025 10:39
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

fast-track Fast Tracking PRs

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants