Skip to content

Ban nested ternaries and non-null assertions in the client's lint (GRYT-1792) - #891

Merged
grytchat merged 1 commit into
mainfrom
claude/GRYT-1792-client-more-rules
Oct 19, 2026
Merged

grytchat merged 1 commit into
mainfrom
claude/GRYT-1792-client-more-rules

Conversation

@grytchat

Copy link
Copy Markdown
Contributor

Follow-up to #890. One file, .eslintrc.cjs, and no code changes.

New errors: no-nested-ternary, @typescript-eslint/no-non-null-assertion, no-param-reassign, eqeqeq (smart), no-else-return, prefer-const, and consistent-type-imports (inline; typeof import() allowed). These match the server, ui, core, voice and mobile.

Existing debt is listed per rule in overrides:

  • nested ternaries: 101 files
  • x!: 45
  • type-only imports: 33 (one mechanical PR later)
  • else after return: 3
  • reassigned parameters: 2

yarn lint and check-comment-length pass.

Vikunja: GRYT-1792

🤖 Generated with Claude Code

…YT-1792)

The rest of the rules the server, ui, core, voice and mobile now share:
nested ternaries, non-null assertions, reassigned parameters, loose
equality, else after return, let that could be const, and unmarked
type-only imports. Existing debt is listed per rule in .eslintrc.cjs; no
code file changes.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@grytchat
grytchat merged commit 757aecc into main Oct 19, 2026
20 checks passed
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