feat(eslint): prevent duplicate module import paths
Author: HotellCreated Mar 10, 2022Updated Sep 29, 2026
LabelsArea: Build SystemPackage: eslint-pluginResolution: Soft CloseArea: Linting
Describe the issue:
Actual behavior:
Following code wont' be autofix nor triggers lint warnings:
import {Foo} from '@fluentui/hello'
import {Yolo} from '../life'
import {Bar} from '@fluentui/hello'
import {Long} from '../life'Expected behavior:
module path duplicates should trigger lint warnings, ideally should be autofixed on save/pre-commit
import {Foo} from '@fluentui/hello'
import {Yolo} from '../life'
import {Bar} from '@fluentui/hello'
import {Long} from '../life'↓↓↓
import {Foo, Bar} from '@fluentui/hello'
import {Yolo, Long} from '../life'Related
https://github.com/microsoft/fluentui/pull/21924#issuecomment-1063217633
Source: microsoft/fluentui