sindresorhus/eslint-plugin-unicorn

Warn about misuse of `import-style` rule

Open

#924 opened on Dec 7, 2020

View on GitHub
 (1 comment) (2 reactions) (0 assignees)JavaScript (5,022 stars) (468 forks)user submission
help wanted

Description

Follow-up to #899 and #910:

[…] Configurations like below in my opinion present a misuse of this rule.

      fs: {
        unassigned: false,
        default: false,
        namespace: false,
        named: false,
      },

I think it should be simply disallowed and no-restricted-imports or no-restricted-modules rules should be recommended to the user when such configuration is detected.

Originally posted by @futpib in https://github.com/sindresorhus/eslint-plugin-unicorn/issues/899#issuecomment-735985491

Contributor guide

Warn about misuse of `import-style` rule · sindresorhus/eslint-plugin-unicorn#924 | Good First Issue