-
Notifications
You must be signed in to change notification settings - Fork 887
whitespace rule enhancements #628
Comments
This should be an extension of the current |
@adidahiya It's not only for braces. Right now this is valid: if (1) {
let x;
} else {
let x;
} That looks quite awful. Perhaps each However, I would imagine that in 99% of cases, a single space is used/required, so another option would be to just add a In a perfect world, it would be able to keep track of groups of assignments and report on misalignment, but that may not be simple. |
function init() {}
// vs
function init () {} |
function() {}
// vs
function () {} |
@myitcv Thanks for the suggestion, but I'd prefer to use linting in this case. |
Closing per #4534. Thanks for the discussion folks! |
Create some sort of rule for maximum spacing between characters in a single line I think. For example,
The text was updated successfully, but these errors were encountered: