Skip to content

feat: linter suppressions #440

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

Open
wants to merge 23 commits into
base: main
Choose a base branch
from
Open

feat: linter suppressions #440

wants to merge 23 commits into from

Conversation

juleswritescode
Copy link
Collaborator

@juleswritescode juleswritescode commented Jul 3, 2025

This makes it possible to suppress linting rules 👍🏻

They mostly work like biome's suppressions, except that you don't have to provide an explanation, and you can use multiple suppressions above a diagnostic:

-- pgt-ignore lint/safety/banDropNotNull
-- pgt-ignore lint/safety/banDropTable
<query causing both diagnostics>

We can't suppress type-check diagnostics yet, but I'd like to implement that in a future PR.
Suppressing typechecks and other diagnostics was easier than I thought, so I added it to this PR

Also, we need to add this to the docs – also future PR!

@juleswritescode juleswritescode marked this pull request as draft July 3, 2025 06:36
Copy link
Collaborator Author

@juleswritescode juleswritescode left a comment

Choose a reason for hiding this comment

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

@juleswritescode juleswritescode requested a review from psteinroe July 5, 2025 08:06
@juleswritescode juleswritescode marked this pull request as ready for review July 5, 2025 08:06
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant