Skip to content

Latest commit

 

History

History
102 lines (75 loc) · 2.02 KB

File metadata and controls

102 lines (75 loc) · 2.02 KB

no-blank-blocks

Reports and optionally removes blocks with whitespace only.

Fixer

Auto-removes blank blocks with whitespace only.

Options

A single options object has the following properties.

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
 */