sindresorhus / eslint-plugin-unicorn

More than 100 powerful ESLint rules

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

no-empty-file rule seems not support some commonjs modules.

jason-chang opened this issue · comments

<! -- 1️⃣ Explain here what's wrong -->
it seems like that if a file no var definition. will report warning.

image

version: "^48.0.1"
rule: no-empty-file

module.exports = {
  extends: [
    '@lemonbot.fun/eslint-config-base', 
  ],
};

same issue here!

Try to uninstall-reinstall your plugin, it's fixed in 28.0.1 https://github.com/sindresorhus/eslint-plugin-unicorn/releases/tag/v48.0.1

Try to uninstall-reinstall your plugin, it's fixed in 28.0.1 https://github.com/sindresorhus/eslint-plugin-unicorn/releases/tag/v48.0.1