Skip to content

Latest commit

 

History

History
98 lines (73 loc) · 1.88 KB

no-blank-blocks.md

File metadata and controls

98 lines (73 loc) · 1.88 KB

no-blank-blocks

Reports and optionally removes blocks with whitespace only.

Fixer

(TODO)

Options

enableFixer

Whether or not to auto-remove the blank block. Defaults to false.

Context everywhere
Tags N/A
Recommended false
Settings
Options enableFixer

Failing examples

The following patterns are considered problems:

/** */
// "jsdoc/no-blank-blocks": ["error"|"warn", {"enableFixer":true}]
// Message: No empty blocks

/**
 */
// "jsdoc/no-blank-blocks": ["error"|"warn", {"enableFixer":true}]
// Message: No empty blocks

/**
 *
 */
// "jsdoc/no-blank-blocks": ["error"|"warn", {"enableFixer":true}]
// Message: No empty blocks

/**
 *
 *
 */
// "jsdoc/no-blank-blocks": ["error"|"warn", {"enableFixer":true}]
// Message: No empty blocks

/**
 *
 *
 */
// "jsdoc/no-blank-blocks": ["error"|"warn", {"enableFixer":false}]
// Message: No empty blocks

/**
 *
 *
 */
// Message: No empty blocks

Passing examples

The following patterns are not considered problems:

/** @tag */

/**
 * Text
 */

/**
 * @tag
 */