Repository navigation
chore: remove else after return and JSDoc type braces - #2987
Merged
Merged
Conversation
Applies the safe autofixes for no-else-return, jsdoc/no-types and jsdoc/require-hyphen-before-param-description. Drops @returns tags that only carried a type. No behavior change.
peter-tudosa
approved these changes
Nov 9, 2026
|
noahwaldner
approved these changes
Nov 9, 2026
Contributor
Author
|
mergin as this is essentially linting autofix stuff with no impact on behavior |
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.
Clears the autofixable warnings that the code-quality rules in Frontify/code-style#161 raise in fondue, ahead of that config landing here.
no-else-return: 13elseblocks after areturnbecome plain code after theif. No behavior change.jsdoc/no-types: removes{Type}braces from@paramand@returnsin TypeScript files, since TypeScript already carries the types.@returnstags that held only a type are removed.jsdoc/require-hyphen-before-param-description:@param name textbecomes@param name - text.The other new warnings (complexity, nesting depth, parameter count, parameter reassignment, import cycles) need hand refactoring and are not part of this change. The
switch-exhaustiveness-checkautofix is left out because it inserts cases that throw at runtime.