sindresorhus/eslint-plugin-unicorn

Warn about misuse of `import-style` rule

クローズ

#924 opened on 2020/12/07

 (1 件のコメント) (2 件のリアクション) (0 人の担当者)JavaScript (468 件のフォーク)user submission
help wanted

Repository metrics

Stars
 (5,022 個のスター)
PR merge metrics
 (平均マージ 4h 30m) (30d で 26 merged PRs)

説明

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

コントリビューターガイド