Skip to content

Conversation

@bmuenzenmeyer
Copy link
Contributor

Description

This should fix the reported slowness of lint-staged commands.

The previous config was calling an npm script which itself is globbing up all files. lint-staged works by appending staged files as arguments to whatever commands you provide. I've copied a solution referenced in the below story.

See lint-staged/lint-staged#869 for more info.

Related Issues

Check List

  • I have read the Contributing Guidelines and made commit messages that follow the guideline.
  • I have run npx turbo lint to ensure the code follows the style guide. And run npx turbo lint:fix to fix the style errors if necessary.
  • I have run npx turbo format to ensure the code follows the style guide.
  • I have run npx turbo test to check if all tests are passing, and/or npx turbo test:snapshot to update snapshots if I created and/or updated React Components.
  • I've covered new added functionality with unit tests if necessary.

@bmuenzenmeyer bmuenzenmeyer requested a review from a team as a code owner July 10, 2023 11:06
@vercel
Copy link

vercel bot commented Jul 10, 2023

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

Name Status Preview Comments Updated (UTC)
nodejs-org ✅ Ready (Inspect) Visit Preview 💬 Add feedback Jul 10, 2023 11:07am
nodejs-org-stories ✅ Ready (Inspect) Visit Preview 💬 Add feedback Jul 10, 2023 11:07am

@bmuenzenmeyer bmuenzenmeyer added the fast-track Fast Tracking PRs label Jul 10, 2023
@vercel vercel bot temporarily deployed to Preview – nodejs-org-stories July 10, 2023 11:06 Inactive
@bmuenzenmeyer
Copy link
Contributor Author

requesting fasttrack, this is small and causing developer experience pain

@vercel vercel bot temporarily deployed to Preview – nodejs-org July 10, 2023 11:07 Inactive
Copy link
Contributor

@HinataKah0 HinataKah0 left a comment

Choose a reason for hiding this comment

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

LGTM!

Copy link
Member

@ovflowd ovflowd left a comment

Choose a reason for hiding this comment

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

LGTM!

@ovflowd ovflowd merged commit fe7ea82 into nodejs:main Jul 11, 2023
@bmuenzenmeyer bmuenzenmeyer deleted the lint-staged-fix branch July 11, 2023 12:55
umairraza96 pushed a commit to umairraza96/nodejs.org that referenced this pull request Jul 12, 2023
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.

3 participants