Skip to content

Sync HEA task status rules and Discussion on JavaScript rule

Meeting Info

Date 2022-06-14
Topic Sync HEA task status rules and Discussion on JavaScript rule
Attendee Calvin Yan, Selly Huang, Rocky Chi, Daniel Zhou, Ted Zhao, Jackson Liu, Albert Wang
Note Taker Albert Wang
Timer Ted Zhao
Duration 35 minutes

Meeting Agenda

  1. Sync HEA task status (5 minutes)
  2. Discussion on JavaScript rule (30 minutes)

Meeting Minutes / Action Items:

Summary and finalize JavaScript rule

  • DB ORM rule survey result :
Rule Name Result Comments
Always use const or let to declare variables Mandatory
Use one const or let declaration per variable or assignment Mandatory
Use single quotes '' for strings Mandatory
Only quote properties that are invalid identifiers Mandatory
When programmatically building up strings, use template strings instead of concatenation Mandatory
Use object destructuring when accessing and using multiple properties of an object Mandatory
Use array destructuring Recommended
No eval Mandatory
Always put default parameters last Mandatory
Spacing in a function signature Mandatory
If the function body consists of a single statement returning an expression without side effects, omit the braces and use the implicit return. Otherwise, keep the braces and use a return statement Mandatory
Always include parentheses around arguments for clarity and consistency Recommended
Don't use iterators. Prefer JavaScript's higher-order functions instead of loops like for-in or for-of Recommended
Avoid using unary increments and decrements(++, --) Recommended
Use === and !== over == and != Mandatory
Use shortcuts for booleans, but explicit comparisons for strings and numbers Recommended

Action output

  1. The rules discussed should be integrated into the IDE.