@itrocks/handbook 0.0.15 → 0.0.16

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -11,6 +11,9 @@ For the structure of new object views, lists, forms and structured modal content
11
11
  Author page and fragment markup in HTML templates. Server actions prepare data; browser code enhances the rendered DOM.
12
12
  Do not assemble view markup in TypeScript strings or construct entire views with DOM creation calls.
13
13
 
14
+ Keep HTML nesting as shallow as possible and favour native semantic elements.
15
+ Use CSS for layout and visual styling. Remove wrappers that serve only a visual purpose.
16
+
14
17
  The rendered standalone document and the DOM after fragment insertion must pass the
15
18
  [W3C Nu HTML Checker](https://validator.w3.org/nu/). Validate rendered output, with template expressions resolved,
16
19
  including conditional branches and representative dynamic values. Check source templates for valid HTML structure too.
@@ -37,8 +37,9 @@ inferring placement from position thresholds.
37
37
  - Put `{` on the next line for classes, interfaces, functions, methods and constructors.
38
38
  - Keep `{` on the control line for conditions, loops, `switch`, `try`, `catch` and `finally`.
39
39
  - Put `else`, `catch` and `finally` on a new line after the preceding `}`.
40
- - Use braces and a separate body line for conditional returns. Otherwise prefer braces; very short flow guards such
41
- as `if (condition) continue` may remain on one line.
40
+ - An `if` or `else` body may stay on the same line without braces only if the line fits within 120 columns and the
41
+ body is a single control-flow exit, such as `break`, `continue` or a `return` of nothing, a variable or a literal.
42
+ Otherwise, use braces and start the body on the next line. In an `if`/`else` pair, use braces for both or neither.
42
43
  - For empty constructors, keep `{}` on the closing parameter line, including after a multiline parameter list.
43
44
  - Leave a blank line after a non-empty class opening brace and before its closing brace.
44
45
 
package/package.json CHANGED
@@ -25,5 +25,5 @@
25
25
  "type": "git",
26
26
  "url": "git+https://github.com/itrocks-ts/handbook.git"
27
27
  },
28
- "version": "0.0.15"
28
+ "version": "0.0.16"
29
29
  }