Skip to content

Conversation

@fregante
Copy link
Member

The config already has css/no-duplicate-imports, but no-duplicate-imports is mysteriously missing.

https://eslint.org/docs/latest/rules/no-duplicate-imports

'no-duplicate-imports': [
'error',
{
allowSeparateTypeImports: true,
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Allows:

import type React from 'react';
import {useMemo} from 'react';

because nobody knows this:

import {useMemo, type default as React} from 'react';

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants