import-js/eslint-plugin-import
GitHub で見るMixed `type` imports does not trigger `import/no-duplicates`
Open
#3,035 opened on 2024年8月15日
bughelp wantedtypescript
Repository metrics
- Stars
- (4,946 stars)
- PR merge metrics
- (平均マージ 138d 22h) (30d で 3 merged PRs)
説明
This correctly triggers import/no-duplicates:
import { useEffect } from "react";
import { useState } from "react";
But this doesn't:
import { type ComponentProps, useEffect } from "react";
import { useState } from "react";
The rule should merge the imports above into:
import { type ComponentProps, useEffect, useState } from "react";