Run lint-staged on files in root directory#5867
Conversation
|
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## main #5867 +/- ##
=========================================
Coverage 38.64% 38.64%
=========================================
Files 2742 2742
Lines 43228 43228
Branches 9801 9801
=========================================
Hits 16707 16707
- Misses 25209 26491 +1282
+ Partials 1312 30 -1282 ☔ View full report in Codecov by Sentry. 🚀 New features to boost your workflow:
|
There was a problem hiding this comment.
Pull Request Overview
This PR addresses an issue where lint-staged wasn't processing files in the root directory by switching from .js to .cjs configuration format and adding explicit patterns for root-level JavaScript files.
- Renamed lint-staged.config.js to lint-staged.config.cjs with CommonJS module syntax
- Added pattern to include root directory JavaScript files in lint-staged processing
- Updated ESLint configuration to properly handle .cjs files with Node.js globals
Reviewed Changes
Copilot reviewed 3 out of 3 changed files in this pull request and generated 2 comments.
| File | Description |
|---|---|
| lint-staged.config.js | Removed original JavaScript configuration file |
| lint-staged.config.cjs | Added new CommonJS configuration with root directory pattern |
| eslint.config.mjs | Added Node.js globals configuration for .cjs files and improved message formatting |
Tip: Customize your code reviews with copilot-instructions.md. Create the file or learn how to get started.
There was a problem hiding this comment.
Pull Request Overview
Copilot reviewed 2 out of 2 changed files in this pull request and generated no new comments.
Tip: Customize your code reviews with copilot-instructions.md. Create the file or learn how to get started.
There was a problem hiding this comment.
Pull Request Overview
Copilot reviewed 2 out of 2 changed files in this pull request and generated 1 comment.
Tip: Customize your code reviews with copilot-instructions.md. Create the file or learn how to get started.
This PR fixes an issue where lint-staged wouldn't run on files in root directory (e.g.
eslint.config.js)