Skip to content

Lint proposal: prefer normalised paths in exportsΒ #57095

@ash14

Description

@ash14

The following are equivalent:

export 'a.dart';
export './a.dart';

The first form seems to be preferred across Dart sources and tooling (although this doesn't seem to be documented explicitly anywhere?).

Having a lint rule enforce consistency here would be great to have.

Metadata

Metadata

Assignees

No one assigned

    Labels

    P3A lower priority bug or feature requestarea-devexpFor issues related to the analysis server, IDE support, linter, `dart fix`, and diagnostic messages.devexp-linterIssues with the analyzer's support for the linter packagetype-enhancementA request for a change that isn't a bug

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions