Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: disallow empty files #216

Conversation

sasial-dev
Copy link
Contributor

Adds a lint to disallow empty files:

πŸ’Ό 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

https://github.com/sindresorhus/eslint-plugin-unicorn/blob/main/docs/rules/no-empty-file.md

Copy link

netlify bot commented Nov 17, 2024

βœ… Deploy Preview for beamish-daffodil-b0f61d ready!

Name Link
πŸ”¨ Latest commit eede4fc
πŸ” Latest deploy log https://app.netlify.com/sites/beamish-daffodil-b0f61d/deploys/6739787d9f643d0008e1ba57
😎 Deploy Preview https://deploy-preview-216--beamish-daffodil-b0f61d.netlify.app
πŸ“± Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify site configuration.

@christopher-buss christopher-buss merged commit 7335b3d into christopher-buss:main Dec 4, 2024
8 checks passed
@sasial-dev sasial-dev deleted the disallow/unicorn/no-empty-file branch December 4, 2024 22:14
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants