Skip to content

feat(eslint): prevent duplicate module import paths #22049

@Hotell

Description

@Hotell

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

#21924 (comment)

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions