Skip to main content

no-empty-source

Disallow empty sources.

  ···\n\t
/** ↑
* This empty source */

A source containing only whitespace is considered empty.

Options

true

The following patterns are considered problems:

\t\t
\n

The following patterns are not considered problems:

a {}
/* Only comments */