sindresorhus/eslint-plugin-unicorn

Warn about misuse of `import-style` rule

Geschlossen

#924 geöffnet am 07.12.2020

 (1 Kommentar) (2 Reaktionen) (0 zugewiesene Personen)JavaScript (468 Forks)user submission
help wanted

Repository-Metriken

Stars
 (5.022 Sterne)
PR-Merge-Metriken
 (Durchschn. Merge 1T 16h) (399 gemergte PRs in 30 T)

Beschreibung

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