Skip to content

chore(eslint): ban non-null assertion operators in source files#791

Merged
danadajian merged 1 commit into
mainfrom
feat/ban-non-null-assertions
Jun 24, 2026
Merged

chore(eslint): ban non-null assertion operators in source files#791
danadajian merged 1 commit into
mainfrom
feat/ban-non-null-assertions

Conversation

@danadajian

Copy link
Copy Markdown
Contributor

Summary

  • Adds the @typescript-eslint/no-non-null-assertion ESLint rule as an error for all TypeScript source files, excluding test files
  • Prevents future use of ! non-null assertions, enforcing explicit null checks instead
  • Fixes the existing violation in the app entry point by replacing the assertion with a proper null guard that throws a descriptive error

Adds @typescript-eslint/no-non-null-assertion as an error for all TS/TSX
source files (excluding test files), and fixes the existing violation in
app/client.tsx with an explicit null guard.

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
@danadajian danadajian changed the title feat(eslint): ban non-null assertion operators in source files chore(eslint): ban non-null assertion operators in source files Jun 24, 2026
@danadajian danadajian merged commit 6af98d8 into main Jun 24, 2026
3 checks passed
@danadajian danadajian deleted the feat/ban-non-null-assertions branch June 24, 2026 19:52
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