-
-
Couldn't load subscription status.
- Fork 1.5k
Open
Labels
Description
version 2.27.5
https://github.com/import-js/eslint-plugin-import/blob/main/docs/rules/no-duplicates.md#inline-type-imports
The documentation states that adding {"prefer-inline": true} as shown below will cause errors and autofixes if there are duplicate imports. However, this was not possible in my environment.
{
"import/no-duplicates": ["error", {"prefer-inline": true}],
}It should look like the following, but there is no error or anything.
import NextErrorComponent from 'next/error';
import { type ErrorProps } from 'next/error';
// ↓
import NextErrorComponent, { type ErrorProps } from 'next/error';Is this currently being corrected?
niklasnatter, sxzz, isaacparker-at, AndreaPontrandolfo, alecmev and 8 more
