mirror of
https://github.com/vector-im/element-web.git
synced 2025-12-08 10:51:36 +01:00
Merge pull request #4610 from matrix-org/t3chguy-patch-1
Update code style to mention switch statements
This commit is contained in:
commit
d0451fcd80
@ -151,6 +151,7 @@ General Style
|
|||||||
Don't set things to undefined. Reserve that value to mean "not yet set to anything."
|
Don't set things to undefined. Reserve that value to mean "not yet set to anything."
|
||||||
Boolean objects are verboten.
|
Boolean objects are verboten.
|
||||||
- Use JSDoc
|
- Use JSDoc
|
||||||
|
- Use switch-case statements where there are 5 or more branches running against the same variable.
|
||||||
|
|
||||||
ECMAScript
|
ECMAScript
|
||||||
----------
|
----------
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user