How to configure eslint to catch duplicate import on same line?

Viewed 176

Consider the following Javascript import:

import { merge } from 'module';
import { find } from 'module';

eslint will give warning/error on rule no-duplicate-imports

but, how can I configure eslint to warns/error if I write code like:

import { merge, find, merge } from 'module'; // should have error because of double "merge" import
0 Answers
Related