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 violations:

\t\t
\n

The following patterns are not considered violations:

a {}
/* Only comments */