💼 This rule is enabled in the ✅ recommended
config.
Meaningless files clutter a codebase.
Disallow any files only containing the following:
- Whitespace
- Comments
- Directives
- Empty statements
- Empty block statements
- Hashbang
// Comment
/* Comment */
'use strict';
;
{
}
#!/usr/bin/env node
const x = 0;
'use strict';
const x = 0;
;;
const x = 0;
{
const x = 0;
}