-
Notifications
You must be signed in to change notification settings - Fork 887
[Rule request] Single spaces #3787
Comments
i guess, we are speaking about the rule as @rhys-vdw check this package tslint-eslint-rules, it seems one can have the best from both worlds. |
Also tslint (and seems that eslint too) allows using tabs as separator: const abc = 123; // actually here are tabs instead of spaces around `=` I guess it will be useful to enforce to use spaces (or tabs? 🙂). |
imo, it is better be an option, rather than a restriction. Because using |
This would be so nice, my company is looking for a way to block multiple spaces before and after the equals operator (like this: ' = ') for variable declarations. I think this could be done by borrowing from the rule for typedef-whitespace but I haven't looked into it extensively. |
We've now solved this issue by handing all aesthetic issues with prettier and tslint-config-prettier. |
Since this is already in Relevant discussion around where these kinds of formatting rules should live: #628 |
I would like a rule to enforce the following:
It seems
whitespace
will add a minimum spacing for many operators, but not limit a maximum number of spaces.The text was updated successfully, but these errors were encountered: