Skip to content

Files

Latest commit

 

History

History
49 lines (33 loc) · 698 Bytes

check-syntax.md

File metadata and controls

49 lines (33 loc) · 698 Bytes

Pattern: Invalid Closure syntax

Issue: -

Description

Reports against Google Closure Compiler syntax.

Context everywhere
Tags N/A

The following patterns are considered problems:

/**
 * @param {string=} foo
 */
function quux (foo) {

}
// Message: Syntax should not be Google Closure Compiler style.

The following patterns are not considered problems:

/**
 * @param {string} [foo]
 */
function quux (foo) {

}

/**
 *
 */
function quux (foo) {

}

Further Reading