Skip to content

Commit

Permalink
Adhere to new jsdoc linting no-defaults default
Browse files Browse the repository at this point in the history
  • Loading branch information
otacke committed Jun 6, 2023
1 parent 92932c7 commit d79f633
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 6 deletions.
2 changes: 1 addition & 1 deletion src/scripts/h5p-dictation-sentence.js
Original file line number Diff line number Diff line change
Expand Up @@ -419,7 +419,7 @@ class Sentence {
* Add spaces between text and punctuation.
* @param {string} text Text to add spaces to.
* @param {object} [options] Options.
* @param {boolean} [options.autosplit=true] If true, automatically split respective symbols.
* @param {boolean} [options.autosplit] If true, automatically split respective symbols.
* @returns {string} [options.wordSeparator=' '] Text with spaces and symbols.
*/
static addSpaces(text, options = {}) {
Expand Down
6 changes: 3 additions & 3 deletions src/scripts/h5p-dictation-solution.js
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ import Util from '@services/util';
class Solution {
/**
* @class
* @param {object} [params={}] Parameters.
* @param {object} [params] Parameters.
*/
constructor(params = {}) {
this.params = params;
Expand Down Expand Up @@ -100,7 +100,7 @@ class Solution {
* @param {string} word.type Status about missing, typo, ...
* @param {string} word.solution Correct spelling of the word.
* @param {string} word.answer User input for this word.
* @param {boolean} [trailingGap=true] True if wrapper should have trailing gap.
* @param {boolean} [trailingGap] True if wrapper should have trailing gap.
* @returns {HTMLElement} DOM for solution words.
*/
createSolutionWordDOM(index, word, trailingGap = true) {
Expand Down Expand Up @@ -237,7 +237,7 @@ class Solution {

/**
* Replace symbols with a11y readably words.
* @param {string} [text=''] Text to make readable.
* @param {string} [text] Text to make readable.
* @returns {string} Readable text.
*/
makeReadable(text) {
Expand Down
2 changes: 1 addition & 1 deletion src/scripts/h5p-dictation.js
Original file line number Diff line number Diff line change
Expand Up @@ -668,7 +668,7 @@ class Dictation extends H5P.Question {
* This may not be completely true, because we can't sensibly compile all
* possible answers for a sentence if we accept small mistakes.
* @param {object[]} gapsVariations Sentences gaps.
* @param {boolean} [complete=false] If true, will build complete CRP.
* @param {boolean} [complete] If true, will build complete CRP.
* @returns {object[]} Correct responses pattern.
*/
this.buildxAPICRP = (gapsVariations, complete = false) => {
Expand Down
2 changes: 1 addition & 1 deletion src/scripts/services/util.js
Original file line number Diff line number Diff line change
Expand Up @@ -94,7 +94,7 @@ class Util {
* ['a', 'b', 'c'] and ['d', 'e'] become ['a d', 'a e', 'b d', 'b e', 'c d', 'c e']
* @param {object[]} words1 First set of strings.
* @param {object[]} words2 Second set of strings.
* @param {string} [delimiter=' '] Delimiter between each string.
* @param {string} [delimiter] Delimiter between each string.
* @returns {object[]} Result.
*/
static buildCombinations(words1, words2, delimiter = ' ') {
Expand Down

0 comments on commit d79f633

Please sign in to comment.