You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
* Built in Electron Modules (such as `ipc`, `app`)
56
-
* Local Modules (using relative paths)
57
-
* Place class properties in the following order:
58
-
* Class methods and properties (methods starting with a `@`)
59
-
* Instance methods and properties
60
-
* Avoid platform-dependent code:
61
-
* Use `path.join()` to concatenate filenames.
62
-
* Use `os.tmpdir()` rather than `/tmp` when you need to reference the
63
-
temporary directory.
64
-
* Using a plain `return` when returning explicitly at the end of a function.
65
-
* Not `return null`, `return undefined`, `null`, or `undefined`
53
+
## Style Guides
66
54
67
-
### Git Commit Messages
55
+
See [Coding Style](https://electronjs.org/docs/development/coding-style) for information about which standards Electron adheres to in different parts of its codebase.
68
56
69
-
* Use the present tense ("Add feature" not "Added feature")
70
-
* Use the imperative mood ("Move cursor to..." not "Moves cursor to...")
71
-
* Limit the first line to 72 characters or less
72
-
* Reference issues and pull requests liberally
73
-
* When only changing documentation, include `[ci skip]` in the commit description
74
-
* Consider starting the commit message with an applicable emoji:
75
-
*:art:`:art:` when improving the format/structure of the code
76
-
*:racehorse:`:racehorse:` when improving performance
77
-
*:non-potable_water:`:non-potable_water:` when plugging memory leaks
78
-
*:memo:`:memo:` when writing docs
79
-
*:penguin:`:penguin:` when fixing something on Linux
80
-
*:apple:`:apple:` when fixing something on macOS
81
-
*:checkered_flag:`:checkered_flag:` when fixing something on Windows
82
-
*:bug:`:bug:` when fixing a bug
83
-
*:fire:`:fire:` when removing code or files
84
-
*:green_heart:`:green_heart:` when fixing the CI build
85
-
*:white_check_mark:`:white_check_mark:` when adding tests
86
-
*:lock:`:lock:` when dealing with security
87
-
*:arrow_up:`:arrow_up:` when upgrading dependencies
88
-
*:arrow_down:`:arrow_down:` when downgrading dependencies
0 commit comments