Why this matters
Destructuring improves readability by clearly defining which properties are accessed and their default values.
Check for cases of string concatenation using +. Template literals improve readability and are less error-prone.
Destructuring improves readability by clearly defining which properties are accessed and their default values.
Side-by-side examples engineers can pattern-match during review.
const message = "Hello, " + title + "!"
const message = `Hello, ${title}!`;
const message = "Hello, " + title + "!"
const message = `Hello, ${title}!`;
From the same buckets as this rule.
All static JS/CSS/font/image files MUST use content-hashed filenames (e.g., app.9c1a7b.js) and be served with "Cache-Control: public, max-age=31536000, immutable". HTML and other non-fingerprinted documents MUST be served with "Cache-Control: no-cache" (or equivalent) to enable conditional revalidation.