Skip to content

Commit 581ab53

Browse files
committed
style [no ci]
1 parent 481f2ed commit 581ab53

1 file changed

Lines changed: 19 additions & 1 deletion

File tree

Lines changed: 19 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,27 @@
11
---
22
name: coding-style
3-
description: Coding style for every case when coding. Use when coding.
3+
description: General coding style for this project
44
---
55

6+
# Overview
7+
68
This project is deployed in static fashion.
79
Also this project is deliberately structured to support standalone html files representing pages.
810

911
So whatever you do always do style in it's own <style> tag in the same html file.
12+
13+
# Error messages
14+
15+
Preffer messages
16+
17+
```ts
18+
19+
throw new Error(`${this module name.ts} error: ${errorMessage}`);
20+
21+
// instead of
22+
23+
throw new Error(`${errorMessage}`);
24+
25+
```
26+
27+
... make sure each error clearly states it's origin

0 commit comments

Comments
 (0)