Skip to content

Disallow arrow function return type hints#1860

Open
simPod wants to merge 1 commit into
slevomat:masterfrom
simPod:feat/disallow-arrow-function-return-typehint
Open

Disallow arrow function return type hints#1860
simPod wants to merge 1 commit into
slevomat:masterfrom
simPod:feat/disallow-arrow-function-return-typehint

Conversation

@simPod

@simPod simPod commented Jul 5, 2026

Copy link
Copy Markdown
Contributor
  • Adds optional default-disabled disallowReturnTypeHint setting to ArrowFunctionDeclarationSniff.
  • Reports fixable return type hints on arrow functions when enabled.
  • Removes the colon/type hint while preserving arrow spacing.
  • Updates focused sniff tests, fixtures, and documentation for the new setting.

@simPod simPod force-pushed the feat/disallow-arrow-function-return-typehint branch from ac10bb1 to 5caa34b Compare July 5, 2026 09:16
@simPod simPod marked this pull request as ready for review July 5, 2026 10:19
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