-
Notifications
You must be signed in to change notification settings - Fork 5
docs(guardrails): enforce JSDoc on every new or modified function #3555
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Changes from 9 commits
9ad5072
26cc510
f92224a
1876e49
22f8f48
ed8bc1d
df69430
8fb05f8
5db5e65
6599c76
bae93cf
568f2b3
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change | ||||||||||||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| @@ -1,19 +1,20 @@ | ||||||||||||||||||||||||
| /** | ||||||||||||||||||||||||
| * @desc Function to return actual theme | ||||||||||||||||||||||||
| * @param {String} option in config | ||||||||||||||||||||||||
| * @return {Boolean} dark value | ||||||||||||||||||||||||
| * @param {String|Boolean} theme - Theme option: 'dark'|true for dark, 'light'|false for light, 'auto' for system | ||||||||||||||||||||||||
| * @returns {Boolean} true if dark mode is active, false otherwise | ||||||||||||||||||||||||
| */ | ||||||||||||||||||||||||
| export const isDark = (theme) => { | ||||||||||||||||||||||||
|
Comment on lines
+3
to
6
|
||||||||||||||||||||||||
| * @param {String} theme - Theme option from config ('dark', 'light', or 'auto') | |
| * @returns {Boolean} true if dark mode is active, false otherwise | |
| */ | |
| export const isDark = (theme) => { | |
| * @param {Boolean|String} theme - Theme option from config: boolean (true = dark, false = light) or string ('dark', 'light', or 'auto') | |
| * @returns {Boolean} true if dark mode is active, false otherwise | |
| */ | |
| export const isDark = (theme) => { | |
| if (typeof theme === 'boolean') { | |
| return theme; | |
| } |
| Original file line number | Diff line number | Diff line change | ||||
|---|---|---|---|---|---|---|
|
|
@@ -4,8 +4,8 @@ | |||||
|
|
||||||
| /** | ||||||
| * @desc Function to evaluate numbers of release from last release | ||||||
| * @param {String} 2.3.4 | ||||||
| * @return {String} 23 | ||||||
| * @param {String} release - Version string (e.g. '2.3.4' or 'v2.3.4') | ||||||
| * @returns {Array} Array of version number parts | ||||||
|
||||||
| * @returns {Array} Array of version number parts | |
| * @returns {Array<String>} Array of version number parts as strings: [majorAdjusted, minor] (patch segment is dropped) |
| Original file line number | Diff line number | Diff line change | ||||
|---|---|---|---|---|---|---|
|
|
@@ -4,10 +4,10 @@ | |||||
| import _ from 'lodash'; | ||||||
|
|
||||||
| /** | ||||||
| * @desc Function to clean object (pick from model, remove null / undefined) | ||||||
| * @param {Object} data | ||||||
| * @param {[String]} model | ||||||
| * @return {Object} result | ||||||
| * @desc Function to clean object (pick from model, remove null values) | ||||||
| * @param {Object} data - Source object to clean | ||||||
| * @param {Array} model - Array of keys to pick from data | ||||||
|
||||||
| * @param {Array} model - Array of keys to pick from data | |
| * @param {Array<string>} model - Array of keys to pick from data |
Uh oh!
There was an error while loading. Please reload this page.