-
-
Notifications
You must be signed in to change notification settings - Fork 864
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Fixed ESLint bugs that required ts-specific rules for js functions and added prettier formatting (re-open #3184) #3229
Changes from 3 commits
9a7f11a
bdd13e8
f8d20e3
0e62ab8
b25b4b2
13bddb3
0c30382
b026480
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,5 @@ | ||
{ | ||
"**/*.{ts,tsx,yml}": "eslint --fix", | ||
"**/*.{ts,tsx,json,scss,css,yml}": "prettier --write", | ||
"**/*.{ts,tsx}": "node scripts/githooks/check-localstorage-usage.js" | ||
"**/*.{ts,tsx}": "tsx scripts/githooks/check-localstorage-usage.ts" | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Fix the pipeline failure by installing tsx. The pipeline is failing because the Add +"tsx": "^4.7.0",
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. I added npx tsx instead, so it doesnot need to have tsx installed in the CI workflow There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. @yugal07 You're absolutely right! Using (`・ω・´)ゞ 🔗 Analysis chain🏁 Scripts executedThe following scripts were executed for the analysis: Script:
Length of output: 15463 |
||
} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
🛠️ Refactor suggestion
Update file permissions handling.
The current approach of using
chmod
on a TypeScript file is unconventional.Consider one of these approaches:
npx
to execute the TypeScript file directly:📝 Committable suggestion
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Done
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@yugal07 Perfect! The changes have been implemented correctly. The workflow now uses
npx tsx
directly, which is a cleaner approach.🔗 Analysis chain
@yugal07 Perfect! The changes have been implemented correctly. The workflow now uses
npx tsx
directly, which is a cleaner approach.🏁 Scripts executed
The following scripts were executed for the analysis:
Script:
Length of output: 203
If you found this review helpful, would you consider giving us a shout-out on X?
Thank you for using CodeRabbit!