Skip to content
Oxc
Search
K
Main Navigation
Guide
Learn
Contribute
Playground
Resources
Blog
Team
Branding
Website GitHub
Sponsor
Appearance
Menu
Return to top
On this page
unicorn/no-empty-file
Correctness
✅
This rule is turned on by default.
What it does
Disallows any files only containing the following:
Whitespace
Comments
Directives
Empty statements
Empty blocks
Hashbang
Why is this bad?
Meaningless files clutter a codebase.
References
Rule Source