eslint-plugin-unicorn
                                
                                 eslint-plugin-unicorn copied to clipboard
                                
                                    eslint-plugin-unicorn copied to clipboard
                            
                            
                            
                        `no-empty-file`: Added option to allow comments
Hello, this is my first experience in open source. Could you see the implementation?
Fix https://github.com/sindresorhus/eslint-plugin-unicorn/issues/2218
Allow only comments in files
"unicorn/no-empty-file": {
    "allow": [
        "comments"
	]
}
Thanks for contributing. There are linting issues that needs to be resolved.
Hello! Can you please tell me how to fix linting issues? I tried running the command to update snapshots
npm run test:js -- test/no-empty-file.mjs -u
but it didn't help. Are there any other ways to fix them?
@sindresorhus
You need Node.js 20 to update snapshots https://github.com/sindresorhus/eslint-plugin-unicorn/blob/231529aee793251f30416b93dc3d5f9bfa27ee47/.github/workflows/main.yml#L44-L45
You need Node.js 20 to update snapshots
https://github.com/sindresorhus/eslint-plugin-unicorn/blob/231529aee793251f30416b93dc3d5f9bfa27ee47/.github/workflows/main.yml#L44-L45
Thank you! This helped solve the linting problem. Could you please help with "Integration Test 3"? Another PR has the same problem with this test.
Also on the main branch I have the same issue with a "Integration Test 3"
@fisker Hello, could you check this PR again please?
@AekoArray Bump
Maybe the option should be allowComments: true?
Maybe the option should be allowComments: true?
Yeah, I was thinking that too 👍
Can you remove .idea/* files?
Bump :)