Skip to content

Lint to recommend using the direct file instead of library exporters #58778

@jodinathan

Description

@jodinathan

We are trying to improve the time to build our web apps.

In a talk with @jakemac53 at Gitter we found out that it is better to import only the file that has the Component you need to use instead of the whole library.

So it would be very helpful to have a lint to recommend to import the direct file instead of the library exporter.

Ie:

// lints to import the material_button file directly instead of the library
import 'package:angular_components/angular_components.dart'; 

@Component(directives: [MaterialButtonComponent])

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 packagelinter-lint-proposaltype-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