Conversation
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
There was a problem hiding this comment.
Cursor Bugbot has reviewed your changes and found 1 potential issue.
❌ Bugbot Autofix is OFF. To automatically fix reported issues with cloud agents, enable autofix in the Cursor dashboard.
Reviewed by Cursor Bugbot for commit 4a9ff99. Configure here.
| description: This hook runs Prettier on JavaScript files | ||
| entry: prettier | ||
| language: node | ||
| files: '\.jsx?$' |
There was a problem hiding this comment.
Pre-commit hooks skip all TypeScript files
High Severity
The files: '\.jsx?$' pattern only matches .js and .jsx files, but this is a TypeScript/Next.js project where the vast majority of source files are .ts and .tsx (e.g., app/layout.tsx, src/utils.ts, middleware.ts). Both the prettier and eslint hooks will silently skip all TypeScript files, effectively disabling pre-commit linting and formatting for most of the codebase. The pattern needs to include TypeScript extensions, e.g., '\.[jt]sx?$'.
Additional Locations (1)
Reviewed by Cursor Bugbot for commit 4a9ff99. Configure here.


DESCRIBE YOUR PR
Faster execution than
pre-commit. Thesentryandself-hostedrepo are already using it right now.IS YOUR CHANGE URGENT?
Help us prioritize incoming PRs by letting us know when the change needs to go live.
SLA
Thanks in advance for your help!
PRE-MERGE CHECKLIST
Make sure you've checked the following before merging your changes:
LEGAL BOILERPLATE
Look, I get it. The entity doing business as "Sentry" was incorporated in the State of Delaware in 2015 as Functional Software, Inc. and is gonna need some rights from me in order to utilize my contributions in this here PR. So here's the deal: I retain all rights, title and interest in and to my contributions, and by keeping this boilerplate intact I confirm that Sentry can use, modify, copy, and redistribute my contributions, under Sentry's choice of terms.
EXTRA RESOURCES