Repository navigation
Ban any, unknown and casts through unknown in the server's lint (GRYT-1792) - #299
Merged
Merged
Conversation
…-1792) any becomes an error (it was a warning). unknown, casts through unknown, nested ternaries, non-null assertions, reassigned parameters and unmarked type-only imports are errors too, along with eqeqeq, no-else-return and prefer-const. Existing debt is listed per rule in the config, so no code file changes here; review-required paths are exempt until a reviewed PR fixes them. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
The server half of Gryt-chat/client#890. This changes one file,
eslint.config.mjs, and no code.New errors
@typescript-eslint/no-explicit-any(was a warning)@typescript-eslint/no-restricted-typeswithunknownno-restricted-syntaxforx as unknown as Yno-nested-ternary@typescript-eslint/no-non-null-assertionno-param-reassign@typescript-eslint/consistent-type-imports(inline style;typeof import()stays allowed for the lazily loaded MLS packages)eqeqeq(smart),no-else-return,prefer-const. These have no existing violations.Existing debt is listed per rule as
filesoverrides, so nothing is autofixed and no code file changes:unknown(grouped by why: socket payloads, requests, stored data, caught errors, tests, not typed yet)unknownanyReview-required paths (
src/auth,src/middleware,src/db,src/storage) are exempt from the new rules, withanykept as a warning there, until a reviewed PR fixes them.npx eslint .andcheck-comment-lengthpass.Vikunja: GRYT-1792
🤖 Generated with Claude Code