fix: update linting commands to use npx for better compatibility#6840
Conversation
WalkthroughReplaced the Changes
Estimated code review effort🎯 2 (Simple) | ⏱️ ~10 minutes Suggested reviewers
Poem
🚥 Pre-merge checks | ✅ 3✅ Passed checks (3 passed)
✏️ Tip: You can configure your own custom pre-merge checks in the settings. Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
|
@coderabbitai review |
✅ Actions performedReview triggered.
|
There was a problem hiding this comment.
Pull request overview
This pull request updates the ESLint invocation commands in package.json to use npx's built-in --node-options flag instead of shell command substitution, improving cross-platform compatibility while maintaining the same memory allocation configuration.
Changes:
- Replaced shell command substitution syntax with npx native option passing for both lint and lint:fix commands
- Maintained the same memory allocation setting (4096MB) for ESLint execution
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
|
I've made changes, can you verify it's working for you on Windows? |
There was a problem hiding this comment.
Actionable comments posted: 1
🤖 Fix all issues with AI agents
In `@package.json`:
- Around line 86-87: Update the package.json npm scripts "lint" and "lint:fix"
to use JSON-escaped double quotes for NODE_OPTIONS instead of single quotes so
Windows cmd.exe parses the option correctly; locate the "lint" and "lint:fix"
script entries and replace NODE_OPTIONS='--max_old_space_size=4096' with the
JSON-escaped form NODE_OPTIONS=\"--max_old_space_size=4096\" in both scripts.
Yes they are working! @sid-bruno |
…bruno#6840) * fix: update linting commands to use npx for better compatibility * chore: update cross-env version and adjust lint scripts * Fix lint command syntax in package.json --------- Co-authored-by: Sid <siddharth@usebruno.com>
Description
fix for #6839
Contribution Checklist:
Note: Keeping the PR small and focused helps make it easier to review and merge. If you have multiple changes you want to make, please consider submitting them as separate pull requests.
Publishing to New Package Managers
Please see here for more information.
Summary by CodeRabbit
✏️ Tip: You can customize this high-level summary in your review settings.