This repository has been archived by the owner on Mar 25, 2021. It is now read-only.
No spaces between property access #4565
Labels
Formatting rule
Relates to a rule which enforces code formatting and likely overlaps with prettier
Resolution: Declined
Type: Rule Suggestion
Rule Suggestion
I suggest a rule which disallows spaces or tabs between property accesses. Newlines would still be allowed.
I imagine a similar behaviour to the spaces before and after arithmetic symbols.
Is your rule for a general problem or is it specific to your development style?
General problem -
.
and,
look very similar so a bug might easily be overlooked.What does your suggested rule do?
Inform the user about the whitespace.
List several examples where your rule could be used
Example1
vs
Example2
vs
Example3
Example4
In example 1 & 2 the user would be notified about the space between the property accesses.
In example 3 & 4 the rule would not apply as newline between property access would be allowed.
Additional context
This rule is intended to warn the user about a potential access to undefined during runtime.
The text was updated successfully, but these errors were encountered: