Skip to content

chore(eslint): fix type checking#107190

Merged
natemoo-re merged 6 commits intomasterfrom
scraps/lint/tsc
Jan 29, 2026
Merged

chore(eslint): fix type checking#107190
natemoo-re merged 6 commits intomasterfrom
scraps/lint/tsc

Conversation

@natemoo-re
Copy link
Member

@natemoo-re natemoo-re commented Jan 28, 2026

Follow-up to #107187, which added // @ts-nocheck

The violations were removed in #107212.

I originally tried configuring tsconfig to include only static/eslint/eslintPluginSentry, but the eslint.config.mjs file is typechecked so static/eslint/eslintPluginScraps gets included regardless

Since pnpm run typecheck passes, we can enable type checking again.

@natemoo-re natemoo-re enabled auto-merge (squash) January 28, 2026 22:08
@JonasBa
Copy link
Member

JonasBa commented Jan 28, 2026

The easier fix is to just fix the rule violations in eslintPluginScraps so that pnpm run typecheck passes.

I'm a bit afraid that we'll break this again in the future without knowing, and we'll be back to where we started :)

@natemoo-re natemoo-re disabled auto-merge January 28, 2026 23:58
@natemoo-re natemoo-re changed the title chore(eslint): remove type checking chore(eslint): fix type checking Jan 29, 2026
@natemoo-re
Copy link
Member Author

natemoo-re commented Jan 29, 2026

@JonasBa I'd argue that not running typecheck in CI to catch this is more of the root cause there? Not sure why tsgo caught this but tsc didn't...

Regardless, the violations were removed in #107212 so this just removes the disable comment for now.

@JonasBa
Copy link
Member

JonasBa commented Jan 29, 2026

@JonasBa I'd argue that not running typecheck in CI to catch this is more of the root cause there? Not sure why tsgo caught this but tsc didn't...

Yeah, you are not wrong, it's just that we can't do that in practice (unless we make it non required) as it's not stable yet. If we make it a non required check, then I think thats probably a good way to go, but we should monitor if it starts to create a lot of noise

@natemoo-re natemoo-re enabled auto-merge (squash) January 29, 2026 19:50
@natemoo-re natemoo-re merged commit 99e2b90 into master Jan 29, 2026
49 checks passed
@natemoo-re natemoo-re deleted the scraps/lint/tsc branch January 29, 2026 19:57
priscilawebdev pushed a commit that referenced this pull request Feb 2, 2026
Follow-up to #107187, which added `// @ts-nocheck`

The violations were removed in #107212.

I originally tried configuring `tsconfig` to include only
`static/eslint/eslintPluginSentry`, but the `eslint.config.mjs` file is
typechecked so `static/eslint/eslintPluginScraps` gets included
regardless

Since `pnpm run typecheck` passes, we can enable type checking again.
@github-actions github-actions bot locked and limited conversation to collaborators Feb 14, 2026
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

Scope: Frontend Automatically applied to PRs that change frontend components

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants