/**
* Missing space between colon & return type is detected
* -> GOOD
*/
function error_is_reported_ok():void {
//
}
An error is displayed as expected:
If I wrap the return type in parentheses, like so:
/**
* If return type is wrapped in parentheses,
* missing space after colon is not detected
* -> BAD
*/
function error_is_not_reported_not_ok():(void) {
//
}
No violation is detected anymore. Is this intended behavior? I would expect the rule to report a violation, parentheses or not.
Validations
Describe the bug
Hi there!
This is my eslint config:
And this is my code:
An error is displayed as expected:![image](https://github.com/eslint-stylistic/eslint-stylistic/assets/110408767/f849f461-578e-4fbd-8459-337501d5285c)
If I wrap the return type in parentheses, like so:
No violation is detected anymore. Is this intended behavior? I would expect the rule to report a violation, parentheses or not.
Thanks a lot in advance!
Reproduction
https://stackblitz.com/edit/github-dgu1fv-ymqf1g
Contributes